/* ─── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ─── Base ──────────────────────────────────────────────────── */
body {
    font-family: 'EB Garamond', Georgia, serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.7;
    color: #2c2c2c;
    background: #faf9f7;
}

/* ─── Banner (uncomment in HTML to activate) ────────────────── */
.banner {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
}
.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, #faf9f7 100%);
}

/* ─── Layout ────────────────────────────────────────────────── */
.container {
    max-width: 680px;
    margin: 0 auto;
    padding: 5rem 2rem 4rem;
}

/* When banner is active, reduce top padding */
.banner + .container {
    padding-top: 2rem;
}

/* ─── Header ────────────────────────────────────────────────── */
header {
    margin-bottom: 4rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
}

/* Profile picture (uncomment in HTML to activate) */
.profile-pic-wrap {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #d8d3ca;
    flex-shrink: 0;
}
.profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.header-text {
    width: 100%;
}

h1 {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 3rem;
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 0.6rem;
    color: #1a1a1a;
    letter-spacing: -0.01em;
}

.subtitle {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.05rem;
    font-style: italic;
    color: #888;
    margin-bottom: 0;
    letter-spacing: 0.01em;
}

.header-rule {
    margin-top: 1.25rem;
    height: 1px;
    width: 3rem;
    background: #c8c2b8;
}

/* ─── Sections ──────────────────────────────────────────────── */
section {
    margin-bottom: 3rem;
}

h2 {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 1.5rem;
}

p {
    font-size: 1.05rem;
    margin-bottom: 0.9rem;
    color: #3a3a3a;
}

/* ─── Entries ───────────────────────────────────────────────── */
.entry {
    margin-bottom: 2.2rem;
    padding-bottom: 2.2rem;
    border-bottom: 1px solid #ece8e2;
}

.entry:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.entry-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.3rem;
    gap: 1rem;
}

.entry-header strong {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 500;
    color: #1a1a1a;
}

.year {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 0.95rem;
    font-style: italic;
    color: #aaa;
    white-space: nowrap;
}

.institution {
    font-size: 1rem !important;
    font-style: italic;
    color: #888 !important;
    margin-bottom: 0.4rem !important;
}

.entry > p:not(.institution) {
    font-size: 1rem;
    color: #555;
}

/* ─── Connect ───────────────────────────────────────────────── */
.connect p {
    font-size: 1.05rem;
    color: #555;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.dot {
    color: #ccc;
}

/* ─── Links ─────────────────────────────────────────────────── */
a {
    color: #2c2c2c;
    text-decoration: none;
    border-bottom: 1px solid #ccc;
    transition: border-color 0.2s, color 0.2s;
}

a:hover {
    color: #000;
    border-bottom-color: #2c2c2c;
}

/* ─── Footer ────────────────────────────────────────────────── */
footer {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #ece8e2;
}

.footer-badge {
    width: 56px;
    height: auto;
    opacity: 0.45;
    transition: opacity 0.25s;
}

.footer-badge:hover {
    opacity: 0.9;
}

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 600px) {
    body {
        font-size: 17px;
    }

    .container {
        padding: 3.5rem 1.5rem 3rem;
    }

    h1 {
        font-size: 2.4rem;
    }

    .entry-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }

    .connect p {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }

    .dot {
        display: none;
    }

    .banner {
        height: 180px;
    }
}
