:root {
    --color-background: #f7f5f0;
    --color-surface: #ffffff;
    --color-text: #2f3138;
    --color-text-secondary: #686b73;
    --color-accent: #5f65b2;
    --color-accent-strong: #454b93;
    --color-warm: #8b4639;
    --color-separator: #d9d6cf;
    --color-focus: #2832bd;
    --shadow-soft: 0 18px 50px rgba(49, 47, 40, 0.09);
    --radius-small: 8px;
    --radius-large: 20px;
    --content-width: 1080px;
    --reading-width: 760px;
    --page-gutter: clamp(20px, 5vw, 56px);
    --section-gap: clamp(36px, 7vw, 72px);
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: light;
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--color-background);
    color: var(--color-text);
    font-family: "Vollkorn", Georgia, serif;
    font-size: 19px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}

body::before {
    content: "";
    display: block;
    height: 5px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-warm));
}

a {
    color: var(--color-warm);
    text-decoration-color: rgba(139, 70, 57, 0.35);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.16em;
    transition: color 160ms ease, text-decoration-color 160ms ease;
}

a:hover {
    color: var(--color-accent-strong);
    text-decoration-color: currentColor;
}

a:focus-visible {
    border-radius: 3px;
    outline: 3px solid var(--color-focus);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    z-index: 10;
    top: -100px;
    left: 20px;
    padding: 8px 14px;
    border-radius: 0 0 var(--radius-small) var(--radius-small);
    background: var(--color-text);
    color: #fff;
}

.skip-link:focus {
    top: 0;
}

.site-header,
.page,
footer {
    width: min(100%, var(--content-width));
    margin-inline: auto;
    padding-inline: var(--page-gutter);
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding-block: 22px;
    border-bottom: 1px solid var(--color-separator);
}

.site-brand {
    display: inline-flex;
    align-items: baseline;
    gap: 0.4em;
    color: var(--color-text);
    font-size: 22px;
    font-variant: small-caps;
    font-weight: 700;
    letter-spacing: 0.045em;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.site-brand small {
    color: var(--color-accent);
    font-size: 12px;
    font-variant: normal;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.site-header nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-header nav a {
    display: inline-block;
    padding: 7px 11px 5px;
    border-bottom: 2px solid transparent;
    color: var(--color-text-secondary);
    font-size: 17px;
    font-variant: small-caps;
    font-weight: 600;
    text-decoration: none;
}

.site-header nav a:hover,
.site-header nav .active a {
    border-bottom-color: var(--color-accent);
    color: var(--color-accent-strong);
}

.page {
    padding-block: var(--section-gap);
}

footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 10px;
    margin-top: 12px;
    padding-block: 24px 36px;
    border-top: 1px solid var(--color-separator);
    color: var(--color-text-secondary);
    font-size: 13px;
    text-align: center;
}

footer a {
    color: var(--color-text-secondary);
}

.hero {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    align-items: center;
    gap: clamp(28px, 6vw, 64px);
    padding: clamp(24px, 5vw, 48px);
    overflow: hidden;
    border: 1px solid rgba(95, 101, 178, 0.16);
    border-radius: var(--radius-large);
    background:
        radial-gradient(circle at 92% 10%, rgba(95, 101, 178, 0.16), transparent 31%),
        var(--color-surface);
    box-shadow: var(--shadow-soft);
}

.avatar {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 22%;
    border: 5px solid #fff;
    border-radius: 16px;
    box-shadow: 0 0 0 1px rgba(47, 49, 56, 0.16), 0 12px 30px rgba(47, 49, 56, 0.18);
}

.hero-copy h1 {
    max-width: 760px;
    margin: 0;
    color: var(--color-accent-strong);
    font-size: clamp(38px, 5.6vw, 62px);
    font-variant: small-caps;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 0.98;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.hero-subtitle {
    margin: 17px 0 0;
    color: var(--color-warm);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
}

.intro-statement {
    max-width: 900px;
    margin: var(--section-gap) auto 0;
}

.featured-quote {
    position: relative;
    max-width: 840px;
    margin: 0 auto;
    padding: clamp(18px, 4vw, 36px) clamp(28px, 6vw, 64px) 0;
}

.featured-quote::before {
    content: "\201C";
    position: absolute;
    top: -18px;
    left: 0;
    color: rgba(95, 101, 178, 0.18);
    font-size: clamp(92px, 12vw, 126px);
    font-style: italic;
    font-weight: 700;
    line-height: 1;
}

.featured-quote blockquote {
    position: relative;
    margin: 0;
}

.featured-quote p {
    margin: 0;
    color: #3e4048;
    font-size: clamp(21px, 2.35vw, 28px);
    font-style: italic;
    letter-spacing: -0.01em;
    line-height: 1.38;
}

.featured-quote figcaption {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 22px;
    color: var(--color-warm);
    font-size: 15px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.featured-quote figcaption::before {
    content: "";
    width: 42px;
    height: 1px;
    background: currentColor;
}

.quote-context {
    max-width: var(--reading-width);
    margin: clamp(30px, 5vw, 52px) auto 0;
    font-size: clamp(19px, 2vw, 21px);
}

.quote-context p {
    margin: 0 0 1.25em;
}

.quote-context p:last-child {
    margin-bottom: 0;
    padding-top: 1.2em;
    border-top: 1px solid var(--color-separator);
    color: var(--color-accent-strong);
    font-size: 1.08em;
    font-weight: 600;
}

.content-page {
    width: 100%;
    margin-inline: auto;
}

.content-page > * {
    max-width: var(--reading-width);
}

.content-page h1,
.cv-page h1 {
    margin: 0 0 0.8em;
    color: var(--color-warm);
    font-size: clamp(34px, 5vw, 50px);
    font-variant: small-caps;
    line-height: 1.05;
}

.content-page h2 {
    margin: 1.7em 0 0.45em;
    color: var(--color-accent-strong);
    font-size: 25px;
    font-variant: small-caps;
    line-height: 1.2;
}

.content-page h3 {
    margin: 1.4em 0 0.4em;
    font-size: 21px;
    line-height: 1.25;
}

.content-page p {
    max-width: 72ch;
    margin: 0 0 1.15em;
}

.content-page ul {
    margin: 0.4em 0 1.35em;
    padding-left: 1.25em;
}

.content-page li {
    margin: 0.2em 0;
    padding-left: 0.25em;
}

.content-page li::marker {
    color: var(--color-accent);
}

.cv-page {
    width: 100%;
}

.cv-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: clamp(24px, 5vw, 52px);
    max-width: 900px;
    margin-bottom: clamp(24px, 4vw, 36px);
}

.cv-intro p {
    margin: 0;
    color: var(--color-text-secondary);
}

.cv-intro .eyebrow {
    margin-bottom: 10px;
    color: var(--color-accent);
}

.cv-section-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 900px;
    margin-bottom: clamp(42px, 7vw, 70px);
    padding-bottom: 18px;
    border-bottom: 1px solid var(--color-separator);
}

.cv-section-nav a {
    padding: 7px 12px 5px;
    border: 1px solid var(--color-separator);
    border-radius: 999px;
    color: var(--color-text-secondary);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
}

.cv-section-nav a:hover {
    border-color: var(--color-accent);
    color: var(--color-accent-strong);
}

.cv-document {
    max-width: 900px;
}

.cv-section {
    scroll-margin-top: 28px;
}

.cv-section + .cv-section {
    margin-top: clamp(52px, 8vw, 82px);
}

.cv-section h2 {
    margin: 0 0 clamp(25px, 4vw, 36px);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-separator);
    color: var(--color-accent-strong);
    font-size: clamp(25px, 3.5vw, 34px);
    font-variant: small-caps;
    letter-spacing: 0.015em;
    line-height: 1.15;
}

.cv-section h3 {
    margin: 1.6em 0 0.45em;
    color: var(--color-accent-strong);
    font-size: 22px;
    line-height: 1.25;
}

.cv-details {
    display: grid;
    gap: 12px;
    margin: 0;
}

.cv-details > div {
    display: grid;
    grid-template-columns: 145px minmax(0, 1fr);
    gap: 24px;
}

.cv-details dt {
    color: var(--color-text-secondary);
    font-weight: 700;
}

.cv-details dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.cv-timeline {
    display: grid;
    gap: 24px;
}

.cv-timeline-row {
    display: grid;
    grid-template-columns: minmax(145px, 180px) minmax(0, 1fr);
    gap: clamp(20px, 4vw, 42px);
}

.cv-date {
    color: var(--color-text-secondary);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

.cv-timeline-content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    line-height: 1.45;
}

.cv-timeline-content strong {
    font-weight: 600;
}

.cv-timeline-content cite {
    font-style: italic;
}

.cv-role {
    margin-top: 2px;
    color: var(--color-text-secondary);
    font-size: 0.82em;
    font-weight: 700;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.cv-prose {
    max-width: 74ch;
    margin-top: clamp(38px, 6vw, 56px);
}

.cv-prose p {
    margin: 0 0 1.15em;
}

.cv-prose ul {
    margin: 0.4em 0 1.45em;
    padding-left: 1.25em;
}

.cv-prose li {
    margin: 0.3em 0;
    padding-left: 0.25em;
}

.cv-prose li::marker {
    color: var(--color-accent);
}

.cv-training {
    gap: 30px;
}

.cv-training .cv-timeline-row {
    grid-template-columns: 72px minmax(0, 1fr);
}

.cv-publications {
    display: grid;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cv-publications li {
    max-width: 76ch;
    padding-left: 20px;
    border-left: 3px solid rgba(95, 101, 178, 0.28);
    line-height: 1.5;
}

.cv-publication-authors {
    font-weight: 600;
}

.cv-publication-date {
    white-space: nowrap;
}

.cv-download {
    display: flex;
    justify-content: flex-end;
    padding-bottom: 3px;
}

.button {
    display: inline-block;
    padding: 11px 18px 9px;
    border: 1px solid var(--color-accent-strong);
    border-radius: var(--radius-small);
    background: var(--color-accent-strong);
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
}

.button:hover {
    background: var(--color-warm);
    border-color: var(--color-warm);
    color: #fff;
}

@media (max-width: 720px) {
    body {
        font-size: 18px;
    }

    .site-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .site-header nav ul {
        justify-content: flex-start;
    }

    .site-header nav a {
        padding-inline: 8px;
    }

    .hero {
        grid-template-columns: 140px minmax(0, 1fr);
        gap: 24px;
    }
}

@media (max-width: 520px) {
    .page {
        padding-top: 34px;
    }

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

    .avatar {
        width: 132px;
    }

    .hero-copy h1 {
        font-size: clamp(36px, 12vw, 48px);
    }

    .featured-quote {
        padding: 22px 14px 0 26px;
    }

    .featured-quote::before {
        top: -16px;
        left: -4px;
    }

    .cv-details > div,
    .cv-timeline-row,
    .cv-training .cv-timeline-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .cv-date {
        font-size: 0.9em;
    }

    .cv-section-nav {
        gap: 6px;
    }

    .cv-section-nav a {
        padding-inline: 10px;
    }

    .cv-intro {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .cv-download {
        justify-content: stretch;
    }

    .button {
        width: 100%;
        text-align: center;
    }

    footer {
        align-items: center;
        flex-direction: column;
    }

    footer span {
        display: none;
    }
}

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

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}

@media print {
    body::before,
    .skip-link,
    .site-header nav,
    footer {
        display: none;
    }

    body {
        background: #fff;
        color: #000;
        font-size: 12pt;
    }

    .hero {
        border: 1px solid #aaa;
        box-shadow: none;
    }

    .cv-section-nav,
    .cv-download {
        display: none;
    }
}
