:root {
  --bg: #fbf8f2;
  --surface: #fffdf8;
  --soft: #f1ede4;
  --text: #172b3a;
  --body: #344b55;
  --muted: #53636a;
  --faint: #667274;
  --line: #d8d0c2;
  --line-strong: #8e877e;
  --accent: #1d6664;
  --accent-dark: #0e4548;
  --accent-soft: #e2eeeb;
  --bronze: #815426;
  --header: #172b3a;
  --header-muted: #c8d4d4;
  --shadow: 0 10px 30px rgba(23, 43, 58, .08);
  --max: 980px;
  --reading: 760px;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; color-scheme: light; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(29, 102, 100, .18); color: var(--text); }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
main p a, main li a, .cv-entry h3 a { text-decoration: underline; text-decoration-color: rgba(129, 84, 38, .5); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
img, svg { max-width: 100%; }
button { font: inherit; }
.container { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.narrow { width: min(calc(100% - 40px), var(--reading)); margin: 0 auto; }

.skip-link { position: fixed; top: -60px; left: 16px; z-index: 1000; background: var(--accent-dark); color: var(--surface); padding: 8px 12px; border-radius: 4px; }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid rgba(255,255,255,.1); background: rgba(23,43,58,.97); box-shadow: 0 6px 24px rgba(23,43,58,.12); backdrop-filter: blur(14px) saturate(120%); }
.nav-wrap { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { color: var(--surface); font-family: var(--serif); font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; color: #ffffff; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--header-muted); font-size: 14px; padding: 23px 0 19px; border-bottom: 2px solid transparent; }
.nav-links a:hover { color: #ffffff; text-decoration: none; }
.nav-links a[aria-current="page"] { color: #ffffff; border-bottom-color: #c7965d; }
.menu-button { display: none; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.06); border-radius: 6px; }
.menu-button span, .menu-button::before, .menu-button::after { content: ""; display: block; width: 18px; height: 2px; background: var(--surface); margin: 4px auto; }

.home-intro { padding: 76px 0 42px; background: linear-gradient(120deg, rgba(29,102,100,.095), rgba(129,84,38,.06) 58%, transparent 90%); border-bottom: 1px solid var(--line); }
.home-intro h1 { margin: 0 0 8px; font-family: var(--serif); font-size: clamp(38px, 5vw, 54px); line-height: 1.1; letter-spacing: -.025em; }
.home-role { margin: 0; font-size: 20px; color: var(--accent-dark); font-weight: 600; }
.home-affiliation { margin: 3px 0 0; color: var(--muted); }
.home-summary { margin: 26px 0 0; max-width: 800px; font-size: 18px; color: var(--body); }
.profile-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 20px; font-size: 14px; }
.profile-links a { font-weight: 650; }
.updated { color: var(--faint); font-size: 13px; margin-top: 24px; }

.academic-section { padding: 34px 0; border-top: 1px solid var(--line); }
.academic-section h2, .page-hero h1, .case-hero h1 { font-family: var(--serif); color: var(--text); font-weight: 700; letter-spacing: -.018em; }
.academic-section h2 { font-size: 28px; line-height: 1.25; margin: 0 0 20px; }
.home-intro h1::after, .page-hero h1::after, .case-hero h1::after, .academic-section h2::after, .section-title::after, .cv-section > h2::after { content: ""; display: block; width: 38px; height: 2px; margin-top: 9px; background: var(--bronze); }
.home-intro h1::after, .page-hero h1::after, .case-hero h1::after { width: 54px; }
.academic-section h3 { font-size: 17px; line-height: 1.4; margin: 0 0 5px; }
.academic-section p { margin: 7px 0; }
.section-note { color: var(--muted); max-width: 780px; margin: -8px 0 24px; }

.interest-list { display: grid; gap: 12px; }
.interest-item { display: grid; grid-template-columns: 245px 1fr; gap: 28px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: 0 5px 18px rgba(23,43,58,.04); }
.interest-item strong { color: var(--text); }
.interest-item p { margin: 0; color: var(--body); }

.selected-list, .news-list { list-style: none; margin: 0; }
.selected-list { padding: 4px 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: 0 5px 20px rgba(23,43,58,.04); }
.news-list { padding: 0; }
.selected-list li { padding: 15px 0; border-top: 1px solid var(--line); }
.selected-list li:first-child { border-top: 0; padding-top: 0; }
.item-title { font-weight: 650; color: var(--text); }
.item-meta { color: var(--muted); font-size: 14px; margin-top: 2px; }
.item-note { color: var(--body); margin-top: 4px; }
.news-list li { display: grid; grid-template-columns: 120px 1fr; gap: 18px; padding: 10px 0; }
.news-date { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 14px; }
.two-column-list { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 42px; }
.simple-entry { padding-top: 16px; border-top: 1px solid var(--line); }
.simple-entry h3 { margin: 0 0 4px; }
.simple-entry p { margin: 3px 0; color: var(--body); }

.page-hero { padding: 66px 0 38px; background: linear-gradient(120deg, rgba(29,102,100,.075), rgba(129,84,38,.045) 58%, transparent 90%); border-bottom: 1px solid var(--line); }
.page-hero .eyebrow { display: none; }
.page-hero h1 { font-size: clamp(36px, 5vw, 50px); line-height: 1.12; margin: 0 0 14px; max-width: 880px; }
.page-hero h1 em { font-style: normal; color: inherit; }
.page-hero .lead { font-size: 18px; color: var(--body); max-width: 820px; margin: 0; }
.meta-line { color: var(--muted); font-size: 14px; margin-top: 15px; }
.section, .section.compact { padding: 34px 0 58px; }
.section-head { margin-bottom: 26px; }
.section-title { font-family: var(--serif); font-size: 30px; line-height: 1.25; margin: 0 0 8px; }
.section-intro, .hero-lead { color: var(--body); font-size: 17px; max-width: 800px; }
.eyebrow { color: var(--bronze); font-size: 13px; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }

.methods-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--accent-soft); }
.methods-row { padding: 11px 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.method { font-size: 13px; color: var(--muted); }

.research-block { display: grid; grid-template-columns: 170px 1fr; gap: 42px; padding: 38px 0; border-top: 1px solid var(--line); }
.research-block:first-child { border-top: 0; padding-top: 4px; }
.research-index { color: var(--bronze); font-size: 13px; font-weight: 650; padding-top: 7px; }
.research-content h2 { font-family: var(--serif); font-size: 30px; line-height: 1.25; margin: 0 0 10px; }
.research-question { font-size: 18px; color: var(--body); margin: 0 0 22px; }
.research-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.research-columns h3 { font-size: 15px; margin: 0 0 4px; }
.research-columns p { color: var(--body); margin: 0; }
.related-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 20px; font-size: 14px; }
.callout, .disclosure-box { border: 1px solid var(--line); border-left: 4px solid var(--bronze); border-radius: 0 8px 8px 0; background: var(--surface); padding: 18px 20px; color: var(--body); box-shadow: 0 5px 20px rgba(23,43,58,.04); }

.filter-bar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.filter-button { min-height: 36px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); padding: 6px 12px; border-radius: 999px; font-size: 13px; cursor: pointer; }
.filter-button:hover { border-color: var(--accent); background: var(--soft); color: var(--text); }
.filter-button.active, .filter-button.active:hover { border-color: var(--accent); background: var(--accent); color: var(--surface); }
.publication-group + .publication-group { margin-top: 38px; }
.publication-group-heading { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; }
.publication-group-heading h2 { margin: 0; color: var(--text); font-family: var(--serif); font-size: 25px; line-height: 1.3; }
.publication-count { display: inline-grid; place-items: center; min-width: 26px; height: 24px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.publication-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.pub-card { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 20px 24px; border-bottom: 1px solid var(--line); transition: box-shadow .18s ease, background-color .18s ease; }
.pub-card:last-child { border-bottom: 0; }
.pub-card:hover { background: rgba(29,102,100,.035); box-shadow: inset 3px 0 0 var(--bronze); }
.pub-number { color: var(--bronze); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; padding-top: 2px; text-align: right; }
.pub-year { color: var(--bronze); font-style: normal; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pub-citation { min-width: 0; }
.pub-card h3 { font-family: var(--serif); font-size: 19px; line-height: 1.42; font-weight: 700; margin: 0 0 4px; }
.pub-authors, .pub-venue, .pub-note { font-size: 14px; }
.pub-authors { color: var(--body); margin-bottom: 2px; }
.pub-author-me { color: var(--accent-dark); font-weight: 750; background: linear-gradient(to top, rgba(199,150,93,.24) 0 36%, transparent 36%); padding: 0 .04em; }
.pub-venue { color: var(--muted); font-style: italic; margin-top: 2px; }
.pub-note { color: var(--body); margin-top: 8px; max-width: 760px; }
.pub-links { display: flex; gap: 16px; margin-top: 8px; font-size: 13px; }
.hidden-item { display: none !important; }

.project-grid { display: grid; gap: 16px; }
.project-card { display: block; padding: 24px 26px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: inherit; box-shadow: 0 6px 22px rgba(23,43,58,.055); transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease; }
.project-card:hover { text-decoration: none; }
.project-card:hover { transform: translateY(-2px); background: rgba(255,253,248,.96); box-shadow: 0 12px 30px rgba(23,43,58,.11), inset 3px 0 0 var(--bronze); }
.project-card:hover h2 { color: var(--accent-dark); }
.project-card h2 { font-family: var(--serif); font-size: 25px; line-height: 1.3; margin: 4px 0 7px; }
.project-card p { color: var(--body); max-width: 780px; margin: 0; }
.work-type { color: var(--bronze); font-weight: 650; text-transform: uppercase; letter-spacing: .07em; font-size: 11px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag { display: inline-block; border: 1px solid #c8bfae; background: #f4eee4; padding: 2px 8px; border-radius: 999px; font-size: 12px; color: var(--muted); }
.project-footer { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 12px; font-size: 13px; }
.confidential { color: var(--muted); }

.timeline { border-top: 1px solid var(--line); }
.timeline-item { display: grid; grid-template-columns: 150px 1fr; gap: 28px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.timeline-date { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.timeline-item h3 { font-family: var(--serif); font-size: 21px; margin: 0 0 2px; }
.org { color: var(--body); font-size: 14px; margin-bottom: 6px; }
.timeline-item p { margin: 5px 0; color: var(--body); }
.timeline-bullets { margin: 8px 0 0 18px; color: var(--body); }
.award-grid { display: block; border-top: 1px solid var(--line); }
.award { display: grid; grid-template-columns: 80px 1.15fr 1fr; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.award-year, .award span:last-child { color: var(--muted); font-size: 14px; }
.award-year { font-variant-numeric: tabular-nums; }

.case-hero { padding: 66px 0 36px; border-bottom: 1px solid var(--line); background: linear-gradient(120deg, rgba(29,102,100,.075), rgba(129,84,38,.045) 58%, transparent 90%); }
.case-type { color: var(--bronze); font-size: 13px; font-weight: 650; margin-bottom: 8px; }
.case-hero h1 { font-size: clamp(34px, 5vw, 48px); line-height: 1.16; margin: 0 0 12px; max-width: 900px; }
.case-lead { font-size: 18px; color: var(--body); max-width: 820px; }
.case-meta { display: flex; flex-wrap: wrap; gap: 7px 18px; margin-top: 16px; color: var(--muted); font-size: 13px; }
.case-body { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 58px; padding: 44px 0 70px; }
.case-copy h2 { font-family: var(--serif); font-size: 25px; margin: 34px 0 8px; }
.case-copy h2:first-child { margin-top: 0; }
.case-copy p, .case-copy li { color: var(--body); }
.case-copy blockquote { margin: 24px 0; padding: 10px 0 10px 20px; border-left: 3px solid var(--bronze); color: var(--body); font-family: var(--serif); font-size: 19px; }
.case-aside { align-self: start; padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: 0 6px 22px rgba(23,43,58,.055); }
.aside-card { padding: 16px 0; border-top: 1px solid var(--line); }
.aside-card:first-child { border-top: 0; padding-top: 0; }
.aside-card h3 { font-size: 14px; margin: 0 0 5px; }
.aside-card p, .aside-card li { font-size: 13px; color: var(--muted); }
.aside-card ul { margin: 6px 0 0 17px; padding: 0; }

.cv-shell { display: grid; grid-template-columns: 220px 1fr; gap: 48px; }
.cv-sidebar { position: sticky; top: 100px; align-self: start; }
.cv-panel { padding: 17px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: 0 5px 20px rgba(23,43,58,.055); }
.cv-name { font-family: var(--serif); font-size: 24px; margin: 0 0 4px; }
.cv-role { color: var(--muted); font-size: 14px; }
.cv-links { display: grid; gap: 4px; margin-top: 12px; font-size: 13px; }
.cv-main { min-width: 0; }
.cv-section { padding: 0 0 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.cv-section h2 { font-family: var(--serif); font-size: 25px; margin: 0 0 14px; }
.cv-entry { display: grid; grid-template-columns: 125px 1fr; gap: 22px; padding: 9px 0; }
.cv-entry .date { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.cv-entry h3 { font-size: 16px; margin: 0 0 2px; overflow-wrap: anywhere; }
.cv-affiliation { color: var(--accent-dark); font-size: 14px; font-weight: 650; margin: 1px 0 4px; }
.cv-entry p { color: var(--body); margin: 0; font-size: 14px; }
.cv-list { margin: 0; padding-left: 20px; }
.cv-list li { margin-bottom: 8px; }
.language-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.language-item { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.language-item strong { color: var(--text); }
.language-item span { color: var(--muted); font-size: 13px; }
.button { display: inline-block; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); padding: 7px 12px; border-radius: 999px; font-weight: 600; font-size: 13px; cursor: pointer; }
.button:hover { background: var(--soft); text-decoration: none; }
.button.primary { border-color: var(--accent); background: var(--accent); color: var(--surface); }
.button.primary:hover { background: var(--accent-dark); color: var(--surface); }

.site-footer { border-top: 1px solid rgba(255,255,255,.1); margin-top: 34px; background: var(--header); }
.footer-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--header-muted); font-size: 13px; }
.footer-links { display: flex; gap: 16px; }
.footer-links a { color: #e2ecea; }
.footer-links a:hover { color: #ffffff; }

@media (max-width: 760px) {
  .container, .narrow { width: min(calc(100% - 28px), var(--max)); }
  .nav-wrap { min-height: 64px; }
  .menu-button { display: block; width: 44px; height: 44px; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--header); border-bottom: 1px solid rgba(255,255,255,.12); box-shadow: var(--shadow); padding: 8px 14px 14px; flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links.open { display: flex; }
  .nav-links a { display: flex; align-items: center; min-height: 44px; padding: 8px 2px; border-bottom: 0; }
  .nav-links a[aria-current="page"] { color: #ffffff; }
  .home-intro { padding-top: 46px; }
  .interest-item, .research-block, .timeline-item, .cv-entry, .news-list li { grid-template-columns: 1fr; gap: 5px; }
  .research-columns, .two-column-list, .case-body, .cv-shell { grid-template-columns: 1fr; }
  .research-block { gap: 8px; padding: 28px 0; }
  .research-index { padding-top: 0; }
  .publication-list { border-radius: 8px; }
  .publication-group + .publication-group { margin-top: 30px; }
  .publication-group-heading h2 { font-size: 22px; }
  .pub-card { grid-template-columns: 32px minmax(0, 1fr); gap: 9px; padding: 18px 16px 18px 12px; }
  .project-card { padding: 20px; }
  .case-body { gap: 24px; }
  .case-aside { padding: 18px; }
  .cv-sidebar { position: static; }
  .language-grid { grid-template-columns: 1fr; }
  .award { grid-template-columns: 62px 1fr; }
  .award span:last-child { grid-column: 2; }
  .footer-inner { padding: 22px 0; align-items: flex-start; flex-direction: column; gap: 8px; }
  .footer-links { flex-wrap: wrap; }
  .filter-button { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@page { margin: 14mm; }

@media print {
  :root { --bg: #fff; --surface: #fff; --soft: #fff; --text: #111; --body: #222; --muted: #444; --faint: #555; --line: #bbb; --accent: #111; --accent-dark: #111; --bronze: #111; }
  * { box-shadow: none !important; text-shadow: none !important; }
  html, body { background: #fff !important; }
  body { font-size: 10.5pt; line-height: 1.45; }
  .site-header, .site-footer, .print-button, .filter-bar { display: none !important; }
  .home-intro, .page-hero, .case-hero { background: none !important; }
  .home-intro h1::after, .page-hero h1::after, .case-hero h1::after, .academic-section h2::after, .section-title::after, .cv-section > h2::after { display: none; }
  .page-hero { padding: 0 0 16px; }
  .section, .section.compact { padding: 12px 0; }
  a { color: inherit; }
  .cv-shell { grid-template-columns: 170px 1fr; gap: 28px; }
  .cv-sidebar { position: static; }
  .cv-panel { padding: 0 0 12px; background: transparent; border: 0; }
  .cv-entry, .cv-section, .pub-card, .project-card, .timeline-item, .award, .language-item { break-inside: avoid; page-break-inside: avoid; }
}
