:root {
    color-scheme: light;
    --paper: #faf9f6;
    --ink: #292a27;
    --muted: #676962;
    --accent: #925039;
    --line: #dfdfd6;
    --tint: #efeee8;
    --page-width: 960px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
::selection { background: #e9d7c9; color: var(--ink); }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--ink); }
a, summary { -webkit-tap-highlight-color: #e9d7c9; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 2px; }
img { display: block; max-width: 100%; }
p, h1, h2, h3 { margin: 0; }
p + p { margin-top: 1em; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
h3 { font-size: 1.1rem; font-weight: 600; line-height: 1.45; letter-spacing: -.015em; }
.skip-link { position: fixed; z-index: 10; left: 20px; top: 12px; padding: 10px 18px; background: var(--ink); color: white; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); color: white; }
.site-header {
    width: min(var(--page-width), calc(100% - 64px));
    margin: 0 auto;
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid var(--line);
}
.wordmark { color: var(--ink); font-size: 1.1rem; font-weight: 600; text-decoration: none; letter-spacing: -.04em; white-space: nowrap; }
.wordmark-dot { color: var(--accent); }
.site-nav { display: flex; gap: 28px; }
.site-nav a { color: var(--muted); font-size: .875rem; text-decoration: none; padding: 12px 0; position: relative; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--ink); }
.site-nav a[aria-current]::after { content: ""; position: absolute; bottom: 5px; left: 0; right: 0; height: 1px; background: var(--accent); }
.page { width: min(var(--page-width), calc(100% - 64px)); margin: 0 auto; }
.intro { padding: 72px 0 0; }
.intro-top { display: grid; grid-template-columns: minmax(0, 1fr) 160px; align-items: center; gap: 48px; }
.intro-identity { min-width: 0; }
.eyebrow { font-size: .72rem; font-weight: 600; color: var(--muted); letter-spacing: .09em; text-transform: uppercase; line-height: 1.5; }
.intro h1 { font-size: clamp(2.5rem, 5.5vw, 4.25rem); letter-spacing: -.045em; line-height: 1.08; margin: 16px 0 0; }
.name-primary { display: block; }
.name-secondary { display: block; margin-top: 12px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: clamp(1.1rem, 1.6vw, 1.4rem); color: var(--muted); letter-spacing: -.01em; line-height: 1.4; }
.name-note { display: inline-block; font-size: .75em; color: #707269; letter-spacing: 0; }
.full-name { margin-top: 10px; font-size: 1rem; letter-spacing: .14em; color: var(--muted); }
.full-name a { color: var(--muted); text-decoration: none; }
.full-name a:hover { text-decoration: underline; }
.intro-line { margin-top: 22px; font-size: 1.35rem; letter-spacing: -.025em; }
.portrait { width: 160px; height: 160px; object-fit: cover; border-radius: 50%; }
.bio { max-width: 740px; margin-top: 18px; color: #4b4d46; }
.bio a { color: var(--ink); text-decoration-color: #b6b8ab; }
.bio a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.text-links { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 20px; }
.text-links a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; font-size: .83rem; font-weight: 500; text-decoration: none; }
.text-links a:hover { text-decoration: underline; }
.contact-links { margin: 20px 0 24px; gap: 2px 25px; }
.contact-links a { font-size: .875rem; min-height: 44px; }
.contact-links a span { font-size: .8em; }
.file-type { color: var(--muted); }
.disclosure { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.disclosure summary { list-style: none; display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 16px; row-gap: 2px; padding: 17px 0; cursor: pointer; font-size: .875rem; font-weight: 500; }
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary::before { content: "+"; color: var(--accent); font-size: 1.1rem; font-weight: 400; width: 12px; }
.disclosure[open] > summary::before { content: "−"; }
.summary-note { color: var(--muted); font-size: .78rem; font-weight: 400; margin-left: auto; }
.timeline { margin: 0; padding: 6px 0 26px 28px; }
.timeline > div { display: grid; grid-template-columns: 130px 1fr; gap: 24px; padding: 12px 0; }
.timeline dt { font-size: .8rem; font-weight: 400; color: var(--muted); padding-top: 2px; font-variant-numeric: tabular-nums; }
.timeline dd { margin: 0; font-size: .875rem; }
.timeline dd strong { font-weight: 500; display: block; }
.timeline dd span { display: block; color: var(--muted); margin-top: 3px; }
.section { padding-top: 70px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.section-heading h2 { font-size: 2.1rem; letter-spacing: -.035em; line-height: 1.2; }
.section-aside { color: var(--muted); font-size: .78rem; text-decoration: none; }
a.section-aside:hover { text-decoration: underline; }
.section-intro { color: var(--muted); font-size: .94rem; margin-top: 12px; margin-bottom: 14px; max-width: 700px; }
.news-list { list-style: none; padding: 0; margin: 22px 0 0; }
.news-list li { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 26px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.news-list time { color: var(--muted); font-size: .78rem; padding-top: 2px; font-variant-numeric: tabular-nums; }
.news-list p { font-size: .875rem; color: #4b4d46; }
.news-list strong { color: var(--ink); font-weight: 500; }
.publication { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 30px; padding: 30px 0; border-bottom: 1px solid var(--line); align-items: start; }
.publication-image { aspect-ratio: 4 / 3; background: #fff; border: 1px solid #e6e5df; border-radius: 4px; overflow: hidden; }
.publication-image img { width: 100%; height: 100%; object-fit: contain; }
.publication .eyebrow { font-size: .68rem; letter-spacing: .07em; margin-bottom: 8px; }
.publication h3 { font-size: 1.03rem; line-height: 1.45; }
.paper-summary { font-size: .875rem; color: #54564f; margin-top: 8px; }
.authors { font-size: .8rem; color: var(--muted); line-height: 1.65; margin-top: 8px; }
.me { color: var(--ink); font-weight: 500; }
.award { color: var(--accent); font-size: .76rem; font-weight: 500; margin-top: 10px; }
.award::before { content: "↳"; margin-right: 6px; }
.publication .text-links { margin-top: 5px; gap: 0 18px; }
.research-archive { border-top: 0; }
.research-archive .publication:last-child { border-bottom: 0; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; margin-top: 28px; }
.project { display: flex; flex-direction: column; gap: 18px; }
.project > img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; background: var(--tint); border-radius: 4px; }
.project > div { display: flex; flex-direction: column; flex: 1; align-items: flex-start; }
.project h3 { font-size: 1.1rem; }
.project p:not(.eyebrow) { font-size: .875rem; color: var(--muted); margin-top: 8px; }
.project .text-links { margin-top: auto; padding-top: 8px; }
.project-featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 34px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.project-featured .eyebrow { margin-bottom: 12px; }
.project-featured h3 { font-size: 1.5rem; }
.project-featured .text-links { padding-top: 12px; }
.project p.project-note { font-size: .76rem; margin-top: auto; padding-top: 15px; }
.software-note { border-left: 2px solid #c6ab96; margin-top: 36px; padding: 2px 0 2px 22px; max-width: 720px; font-size: .875rem; color: var(--muted); }
.software-note strong { font-weight: 500; color: var(--ink); }
.software-note p + p { margin-top: 5px; }
.writing-item { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 26px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.writing-item:first-of-type { margin-top: 12px; }
.writing-item time { font-size: .78rem; color: var(--muted); padding-top: 3px; }
.writing-item h3 { font-size: 1rem; font-weight: 500; }
.writing-item h3 a { color: var(--ink); text-decoration: none; }
.writing-item h3 a:hover { color: var(--accent); }
.writing-item h3 span { font-size: .85em; color: var(--accent); margin-left: 5px; }
.writing-item p { font-size: .875rem; color: var(--muted); margin-top: 5px; }
.site-footer { width: min(var(--page-width), calc(100% - 64px)); margin: 64px auto 0; padding: 0 0 30px; display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: .78rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }

@media (min-width: 1100px) {
    .intro { padding-top: 80px; }
}
@media (max-width: 700px) {
    html { scroll-padding-top: 24px; }
    .site-header, .page, .site-footer { width: calc(100% - 40px); }
    .site-header { min-height: 76px; gap: 12px; }
    .site-nav { gap: 18px; }
    .site-nav a { font-size: .8rem; }
    .wordmark { font-size: 1rem; }
    .intro { padding-top: 40px; }
    .intro-top { grid-template-columns: minmax(0, 1fr) 112px; gap: 24px; }
    .portrait { width: 112px; height: 112px; }
    .intro-line { font-size: 1.15rem; }
    .bio { margin-top: 24px; font-size: .94rem; }
    .section { padding-top: 52px; }
    .section-heading h2 { font-size: 1.8rem; }
    .publication { grid-template-columns: 150px minmax(0, 1fr); gap: 22px; padding: 26px 0; }
    .project-grid { gap: 28px 22px; }
    .project-featured { gap: 22px; }
}
@media (max-width: 480px) {
    .site-header { flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; padding: 17px 0 12px; }
    .site-nav { width: 100%; justify-content: space-between; gap: 14px; }
    .site-nav a { font-size: .83rem; padding: 10px 0; }
    .intro-top { grid-template-columns: minmax(0, 1fr) 80px; gap: 16px; }
    .intro h1 { margin-top: 14px; }
    .name-secondary { margin-top: 8px; }
    .intro .eyebrow { font-size: .62rem; letter-spacing: .06em; }
    .portrait { width: 80px; height: 80px; }
    .full-name { margin-top: 8px; font-size: .9rem; }
    .intro-line { font-size: 1.06rem; line-height: 1.5; }
    .contact-links { gap: 0 22px; margin-top: 16px; }
    .contact-links a { font-size: .82rem; }
    .summary-note { flex-basis: calc(100% - 28px); margin-left: 28px; }
    .timeline { padding-left: 0; }
    .timeline > div { grid-template-columns: 1fr; gap: 3px; }
    .section-heading { gap: 12px; flex-wrap: wrap; }
    .section-aside { font-size: .73rem; }
    .section-intro { font-size: .875rem; }
    .news-list li { grid-template-columns: 76px minmax(0, 1fr); gap: 16px; }
    .publication { grid-template-columns: 1fr; gap: 18px; }
    .publication-image { width: 100%; aspect-ratio: 16 / 9; }
    .publication h3 { font-size: 1.05rem; }
    .publication .text-links a { min-height: 44px; }
    .project-grid, .project-featured { grid-template-columns: 1fr; gap: 26px; }
    .project-featured { padding-bottom: 26px; }
    .project { gap: 16px; }
    .project-featured h3 { font-size: 1.25rem; }
    .project .text-links a { min-height: 44px; }
    .writing-item { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; }
    .site-footer { margin-top: 44px; font-size: .72rem; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
@media print {
    body { background: #fff; color: #000; }
    .site-header, .skip-link, .site-footer, .contact-links { display: none; }
    .page { width: 100%; }
    .intro, .section { padding-top: 24px; }
    .publication, .project, .writing-item { break-inside: avoid; }
    a { color: inherit; }
}
