:root {
    --bg: #f4f1ea;
    --surface: #fbfaf7;
    --surface-strong: #ffffff;
    --text: #1f2430;
    --muted: #5d6778;
    --line: #d7d0c5;
    --accent: #6f2c3f;
    --accent-soft: #efe4e7;
    --nav-height: 76px;
    --content-width: 1180px;
    --reading-width: 760px;
    --transition: 180ms ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(calc(100% - 48px), var(--content-width));
    margin: 0 auto;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--nav-height);
    background: rgba(251, 250, 247, 0.96);
    border-bottom: 1px solid rgba(31, 36, 48, 0.12);
    backdrop-filter: blur(10px);
}

.nav-content {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.logo {
    color: var(--text);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
}

.nav-links a {
    color: var(--muted);
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--text);
    text-decoration: none;
}

.hamburger {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(31, 36, 48, 0.14);
    border-radius: 999px;
    background: var(--surface-strong);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.hamburger span {
    position: absolute;
    width: 18px;
    height: 2px;
    background: var(--text);
    transition: transform var(--transition), opacity var(--transition);
}

.hamburger span:nth-child(1) {
    transform: translateY(-6px);
}

.hamburger span:nth-child(3) {
    transform: translateY(6px);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
}

.section-anchor {
    scroll-margin-top: calc(var(--nav-height) + 28px);
}

.hero {
    padding: 72px 0 56px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.hero-grid {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 72px;
    align-items: start;
}

.profile-photo {
    aspect-ratio: 4 / 5;
    width: 100%;
    object-fit: cover;
    border: 1px solid rgba(31, 36, 48, 0.1);
    display: block;
}

.eyebrow,
.section-kicker {
    margin-bottom: 14px;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.profile-copy h1 {
    font-size: clamp(2.8rem, 5vw, 4.75rem);
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.profile-title {
    max-width: 36rem;
    color: var(--muted);
    font-size: 1.15rem;
    margin-bottom: 20px;
}

.lead {
    max-width: 42rem;
    font-size: 1.12rem;
    color: var(--text);
}

.profile-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 24px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.profile-links a {
    font-size: 0.95rem;
    font-weight: 700;
}

.section {
    padding: 76px 0;
}

.section-muted {
    background: rgba(255, 255, 255, 0.45);
}

.content-shell {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

.section-heading {
    position: sticky;
    top: calc(var(--nav-height) + 28px);
}

.section-title {
    font-size: 2rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.content-body,
.research-list,
.work-list,
.timeline,
.contact-panel {
    max-width: var(--reading-width);
}

.prose p + p {
    margin-top: 18px;
}

.research-list,
.work-list,
.timeline {
    display: grid;
    gap: 0;
}

.research-item,
.work-item,
.timeline-item,
.contact-panel {
    padding: 24px 0;
    border-top: 1px solid var(--line);
}

.research-item:last-child,
.work-item:last-child,
.timeline-item:last-child,
.contact-panel {
    border-bottom: 1px solid var(--line);
}

.research-item h3,
.work-content h3,
.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.research-item p,
.work-content p,
.timeline-content p,
.contact-panel p,
.timeline-role {
    color: var(--muted);
}

.work-item,
.timeline-item {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 24px;
}

.work-meta,
.timeline-meta {
    color: var(--accent);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.work-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 12px;
}

.timeline-role {
    margin-bottom: 10px;
    font-style: italic;
}

.compact .timeline-item {
    padding: 20px 0;
}

.contact-panel {
    display: grid;
    gap: 24px;
}

.contact-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 14px 24px;
}

.contact-links a {
    font-weight: 700;
}

.footer {
    border-top: 1px solid var(--line);
    background: var(--surface);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 0 40px;
    color: var(--muted);
    font-size: 0.92rem;
}

@media (max-width: 960px) {
    .hero-grid,
    .content-shell,
    .work-item,
    .timeline-item {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .section-heading {
        position: static;
    }

    .profile-photo {
        max-width: 320px;
    }
}

@media (max-width: 820px) {
    .hamburger {
        position: relative;
        display: inline-flex;
        flex-shrink: 0;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 1px);
        left: 24px;
        right: 24px;
        padding: 18px 20px;
        background: var(--surface-strong);
        border: 1px solid rgba(31, 36, 48, 0.12);
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .nav-links.active {
        display: flex;
    }

    .hero {
        padding-top: 48px;
    }

    .profile-copy h1 {
        font-size: clamp(2.3rem, 10vw, 3.4rem);
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .container {
        width: min(calc(100% - 32px), var(--content-width));
    }

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

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}
