:root {
    color-scheme: light;
    --bg: #f5f5f7;
    --surface: #ffffff;
    --surface-soft: #fbfbfd;
    --text: #1d1d1f;
    --muted: #6e6e73;
    --line: #d9d9df;
    --accent: #0066cc;
    --accent-dark: #004f9e;
    --radius: 8px;
    --shadow: 0 22px 70px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.55;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--accent);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem clamp(1.25rem, 4vw, 4rem);
    background: rgba(245, 245, 247, 0.82);
    border-bottom: 1px solid rgba(217, 217, 223, 0.8);
    backdrop-filter: blur(22px);
}

.brand {
    font-size: 0.98rem;
    font-weight: 700;
    white-space: nowrap;
}

nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.25rem 1rem;
}

nav a {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
}

main {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
}

.hero {
    min-height: calc(100vh - 74px);
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    align-items: center;
    gap: clamp(2rem, 6vw, 5rem);
    padding: clamp(4rem, 8vw, 7rem) 0;
}

.hero-copy {
    max-width: 720px;
}

.eyebrow,
.section-label {
    margin: 0 0 0.8rem;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 1.25rem;
    font-size: clamp(3rem, 8vw, 5.9rem);
    line-height: 0.96;
    font-weight: 800;
}

h2 {
    margin-bottom: 1rem;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.04;
    font-weight: 800;
}

h3 {
    margin-bottom: 0.55rem;
    font-size: 1.12rem;
    line-height: 1.22;
}

.lead {
    max-width: 670px;
    margin-bottom: 2rem;
    color: var(--muted);
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    line-height: 1.45;
}

.actions,
.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.button,
.contact-links a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0.65rem 1rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 700;
}

.button.primary {
    border-color: var(--accent);
    background: var(--accent);
    color: white;
}

.button.primary:hover {
    background: var(--accent-dark);
    color: white;
}

.portrait {
    margin: 0;
    justify-self: center;
}

.portrait img {
    width: min(325px, 72vw);
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: var(--shadow);
}

.section,
.section-grid,
.contact {
    margin-bottom: 1rem;
    padding: clamp(2rem, 5vw, 4rem);
    border: 1px solid rgba(217, 217, 223, 0.78);
    border-radius: var(--radius);
    background: var(--surface);
}

.section-grid {
    display: grid;
    grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.3fr);
    gap: clamp(2rem, 5vw, 4rem);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 2rem;
}

.prose p,
.card p,
.publication-list p,
.timeline p,
.contact p,
.muted {
    color: var(--muted);
}

.prose p:last-child,
.card p:last-child,
.publication-list p:last-child,
.timeline p:last-child,
.contact p:last-child {
    margin-bottom: 0;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.card {
    min-height: 230px;
    padding: 1.35rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-soft);
}

.publication-list,
.timeline {
    display: grid;
    gap: 1rem;
}

.publication-list article,
.timeline article {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}

.publication-list article:last-child,
.timeline article:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.publication-list a {
    color: var(--text);
}

.publication-list a:hover {
    color: var(--accent);
}

.publication-list span {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.timeline span {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 800;
}

.contact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 2rem;
    background: var(--text);
    color: white;
}

.contact .section-label,
.contact p {
    color: rgba(255, 255, 255, 0.72);
}

.contact-links {
    justify-content: flex-end;
}

.contact-links a {
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.site-footer {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2rem 0 3rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.site-footer p {
    margin: 0;
}

@media (max-width: 860px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    nav {
        justify-content: flex-start;
    }

    .hero,
    .section-grid,
    .contact {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .portrait {
        justify-self: start;
        order: -1;
    }

    .portrait img {
        width: min(230px, 60vw);
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .card {
        min-height: auto;
    }

    .contact-links {
        justify-content: flex-start;
    }
}

@media (max-width: 520px) {
    body {
        font-size: 16px;
    }

    main,
    .site-footer {
        width: min(100% - 1rem, 1120px);
    }

    .site-header {
        padding: 0.9rem 1rem;
    }

    .section,
    .section-grid,
    .contact {
        padding: 1.4rem;
    }

    .actions,
    .contact-links {
        align-items: stretch;
        flex-direction: column;
    }

    .button,
    .contact-links a {
        justify-content: center;
        width: 100%;
    }

    .site-footer {
        flex-direction: column;
    }
}
