/* Palette:
   Background: #121720 (Midnight Navy)
   Surface:    #1b222d (Slate Blue Surface)
   Text:       #e2e8f0 (Cool White)
   Muted:      #94a3b8 (Blue-Gray)
   Accent:     #60a5fa (Bright Sky Blue)
   Border:     #2e3a4d (Deep Slate Border)
*/

body {
    font-family: system-ui, -apple-system, sans-serif;
    max-width: 800px;
    margin: 0 0 0 10%; 
    padding: 2rem;
    line-height: 1.6;
    background-color: #121720;
    color: #e2e8f0;
}

@media (max-width: 600px) {
    body {
        margin: 0;
        padding: 1.5rem;
    }
}

/* Navigation */
header {
    text-align: left;
    margin-bottom: 3rem;
    border-bottom: 1px solid #2e3a4d;
    padding-bottom: 1.5rem;
}

header h1 {
    color: #ffffff;
    margin: 0 0 0.5rem 0;
}

nav {
    display: flex;
    gap: 1.5rem;
}

nav a {
    color: #94a3b8;
    font-weight: 500;
    text-decoration: none;
    padding-bottom: 4px;
    background-image: linear-gradient(#60a5fa, #60a5fa);
    background-position: 0% 100%;
    background-repeat: no-repeat;
    background-size: 0% 2px;
    transition: background-size 0.2s, color 0.2s;
}

nav a:hover, nav a.current {
    color: #60a5fa;
    background-size: 100% 2px;
}

/* Typography */
h2, h3, h4 {
    color: #ffffff;
    margin-top: 2.5rem;
}

a {
    color: #60a5fa;
    text-decoration: none;
    border-bottom: 1px solid rgba(96, 165, 250, 0.2);
}

blockquote {
    border-left: 4px solid #60a5fa;
    padding: 0.75rem 1.5rem;
    background: #1b222d;
    font-style: italic;
    margin: 2rem 0;
    color: #cbd5e1;
    border-radius: 0 8px 8px 0;
}

/* Special Single Column Environment */
.full-width {
    display: block; /* No grid, just stack them vertically */
    margin-top: 2rem;
}

.full-width p {
    margin-bottom: 2.5rem; /* More space between people in long-form */
    overflow: hidden;
    line-height: 1.7; /* Slightly more breathing room for long text */
}

/* Image behavior same as before, but bigger if you like */
.full-width p img:first-child {
    float: left;
    width: 100px;  /* Slightly larger for single-column layout */
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 1.5rem 0.5rem 0 !important;
    border: 1px solid #2e3a4d;
}

.full-width strong {
    display: block;
    color: #ffffff;
    font-size: 1.2rem; /* Make the name slightly more prominent */
    margin-bottom: 0.3rem;
}

/* THE PERSON/DOUBLE COLUMN LOGIC */
/* 1. The outer wrapper creates the 2-column grid */
.columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 3rem;
    margin-top: 2rem;
}

/* 2. Target the paragraph (each person block) */
.columns p {
    margin-bottom: 0;
    overflow: hidden; /* Clearfix for the float */
    display: block;   /* Reset from any previous flex/grid attempts */
}

/* 3. The Image: Float it left to let text stack beside it */
.columns p img:first-child {
    float: left;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 1.2rem 0.5rem 0 !important; /* Space on right and bottom */
    border: 1px solid #2e3a4d;
}

/* 4. Ensure the name (strong) and description stack correctly */
.columns strong {
    display: block; 
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 4px;
}

/* This handles links and other text following the image */
.columns p br + a, 
.columns p a + br {
    display: inline-block;
}

/* Responsive collapse */
@media (max-width: 700px) {
    .columns {
        grid-template-columns: 1fr;
    }
}
