:root {
  color-scheme: light dark;
  --canvas: #f1f0ec;
  --surface: #faf9f5;
  --surface-2: #e5e3dd;
  --ink: #20201e;
  --muted: #5c5b56;
  --line: #c8c5bd;
  --accent: #9d3028;
  --accent-ink: #fff8f2;
  --focus: #194f91;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  --measure: 70ch;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --page-gutter: max(1rem, var(--safe-left), var(--safe-right));
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #171816;
    --surface: #20211e;
    --surface-2: #2b2c28;
    --ink: #f0efe9;
    --muted: #b9b7ae;
    --line: #454640;
    --accent: #d66a5d;
    --accent-ink: #1c1715;
    --focus: #8db9ef;
  }
}

:root[data-theme="dark"] {
  --canvas: #171816;
  --surface: #20211e;
  --surface-2: #2b2c28;
  --ink: #f0efe9;
  --muted: #b9b7ae;
  --line: #454640;
  --accent: #d66a5d;
  --accent-ink: #1c1715;
  --focus: #8db9ef;
}

:root[data-theme="light"] {
  --canvas: #f1f0ec;
  --surface: #faf9f5;
  --surface-2: #e5e3dd;
  --ink: #20201e;
  --muted: #5c5b56;
  --line: #c8c5bd;
  --accent: #9d3028;
  --accent-ink: #fff8f2;
  --focus: #194f91;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: .2em; }
a:hover { color: var(--accent); }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }

.skip-link {
  position: fixed;
  left: max(1rem, var(--safe-left));
  top: calc(1rem + var(--safe-top));
  z-index: 10;
  padding: .7rem 1rem;
  background: var(--ink);
  color: var(--canvas);
  transform: translateY(-180%);
}
.skip-link:focus { transform: none; }

.site-header {
  min-height: calc(72px + var(--safe-top));
  padding-top: var(--safe-top);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--canvas) 94%, transparent);
}
.header-inner,
.site-footer,
.page-shell,
.home-section,
.hero {
  width: min(calc(100% - var(--page-gutter) - var(--page-gutter)), 1240px);
  margin-inline: auto;
}
.header-inner {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
}
.brand {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav { display: flex; justify-content: flex-end; gap: 1.4rem; }
.site-nav a { font-size: .91rem; text-decoration: none; white-space: nowrap; }
.site-nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; }
.header-actions { display: flex; align-items: center; gap: .65rem; }
.language-link,
.theme-toggle {
  min-height: 38px;
  padding: .45rem .7rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: .82rem;
  text-decoration: none;
  cursor: pointer;
}
.language-link:hover,
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.language-link:active,
.theme-toggle:active,
.button-link:active { transform: translateY(1px); }

.hero {
  min-height: min(760px, calc(100dvh - 72px));
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(340px, 1.18fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  padding-block: clamp(3rem, 8vh, 6rem);
}
.hero-copy { max-width: 600px; }
.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 12ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.2rem, 7vw, 6.3rem);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: .94;
}
.hero-summary {
  max-width: 20ch;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-family: var(--display);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.35;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button-link {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: .7rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.button-link:hover { background: transparent; color: var(--accent); }
.button-link.secondary { background: transparent; color: var(--accent); }
.button-link.secondary:hover { background: var(--accent); color: var(--accent-ink); }
.hero-media { position: relative; }
.hero-media::before {
  content: "";
  position: absolute;
  inset: 1rem -1rem -1rem 1rem;
  border: 1px solid var(--line);
  z-index: -1;
}
.hero-media img {
  width: 100%;
  height: min(60vh, 620px);
  object-fit: cover;
  object-position: 65% center;
}
.visual-note { margin: .8rem 0 0; color: var(--muted); font-size: .78rem; }

.profile-preview { overflow: hidden; }
.preview-notice {
  width: min(calc(100% - var(--page-gutter) - var(--page-gutter)), 1240px);
  margin: 1rem auto 0;
  padding: .65rem .85rem;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  font-size: .8rem;
}
.profile-hero,
.profile-section {
  width: min(calc(100% - var(--page-gutter) - var(--page-gutter)), 1240px);
  margin-inline: auto;
}
.profile-hero {
  min-height: min(780px, calc(100dvh - 120px));
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(380px, .72fr);
  align-items: start;
  gap: clamp(2rem, 8vw, 8rem);
  padding-block: clamp(2.5rem, 7vh, 5.5rem);
}
.profile-hero-copy { padding-top: clamp(2rem, 11vh, 6.5rem); }
.profile-hero-copy h1 {
  max-width: 12ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.4rem, 6vw, 5.8rem);
  font-weight: 500;
  letter-spacing: -.05em;
  line-height: .94;
}
.profile-hero-copy > p {
  max-width: 32ch;
  margin: 1.5rem 0 2rem;
  color: var(--muted);
  font-family: var(--display);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.35;
}
.profile-hero-visual { margin: 0; }
.profile-hero-visual img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.profile-hero-visual figcaption,
.profile-wide-visual figcaption {
  margin-top: .75rem;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.45;
}
.profile-section { padding-block: clamp(4rem, 9vw, 8rem); border-top: 1px solid var(--line); }
.profile-section h2 {
  max-width: 13ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1;
}
.profile-intro > p {
  max-width: 65ch;
  margin: 2rem 0 0 clamp(0rem, 12vw, 10rem);
  color: var(--muted);
  font-size: 1.15rem;
}
.profile-facts {
  display: grid;
  grid-template-columns: 1.2fr .8fr 1fr;
  gap: 1px;
  margin-top: 4rem;
  background: var(--line);
}
.profile-facts > div { min-height: 210px; padding: 1.5rem; background: var(--surface); }
.profile-facts strong { display: block; font-family: var(--display); font-size: clamp(2.8rem, 5vw, 4.8rem); font-weight: 500; line-height: 1; }
.profile-facts span { display: block; max-width: 25ch; margin-top: 1rem; color: var(--muted); }
.profile-section-heading p { max-width: 54ch; margin: 1.25rem 0 0; color: var(--muted); font-size: 1.08rem; }
.profile-wide-visual { margin: 3rem 0 0; }
.profile-wide-visual img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.publication-list {
  display: grid;
  grid-template-columns: 1.2fr .9fr .8fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  margin-top: 3rem;
}
.publication-list article { padding-top: 1.2rem; border-top: 1px solid var(--line); }
.publication-list article:nth-child(2) { margin-top: 3rem; }
.publication-list article:nth-child(3) { margin-top: 6rem; }
.record-date { margin: 0; color: var(--accent); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.publication-list h3,
.honor-pair h3 { margin: .75rem 0; font-family: var(--display); font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 500; line-height: 1.15; }
.publication-list article > p:last-child,
.honor-pair p { color: var(--muted); }
.honor-visual { width: min(100%, 980px); margin-left: auto; }
.honor-pair {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 10vw, 10rem);
  margin-top: 3.5rem;
}
.honor-pair article:last-child { margin-top: 4rem; }
.honor-pair strong { color: var(--accent); font-family: var(--display); font-size: clamp(2.8rem, 5vw, 4.4rem); font-weight: 500; line-height: 1; }
.outreach-band { padding-left: clamp(0rem, 16vw, 13rem); }
.outreach-band p { max-width: 58ch; margin: 2rem 0 0; color: var(--muted); font-family: var(--display); font-size: clamp(1.35rem, 2.8vw, 2.1rem); line-height: 1.4; }
.role-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1px; padding-block: 0; background: var(--line); }
.role-grid article { min-height: 390px; padding: clamp(2rem, 5vw, 4.5rem); background: var(--surface); }
.role-grid article h2 { font-size: clamp(2rem, 4vw, 3.6rem); }
.role-grid article p { max-width: 46ch; margin-top: 1.5rem; color: var(--muted); }
.role-grid .archive-hold { background: var(--surface-2); }
.role-grid.single-role { grid-template-columns: 1fr; }
.role-grid.single-role article { min-height: 0; }
.evidence-limits { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(2rem, 8vw, 8rem); }
.evidence-limits > div { min-width: 0; }
.evidence-limits > p { display: none; }
.evidence-limits ul { margin: 0; padding: 0; list-style: none; }
.evidence-limits li { padding: 1rem 0; border-bottom: 1px solid var(--line); }

.home-section { padding-block: clamp(4rem, 9vw, 8rem); }
.home-section + .home-section { border-top: 1px solid var(--line); }
.section-title {
  max-width: 15ch;
  margin: 0 0 1.25rem;
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.02;
}
.section-intro { max-width: 60ch; margin: 0; color: var(--muted); font-size: 1.12rem; }
.facts-band {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1px;
  margin-top: 3rem;
  background: var(--line);
}
.fact { min-height: 190px; padding: 1.5rem; background: var(--surface); }
.fact strong { display: block; font-family: var(--display); font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 500; line-height: 1; }
.fact span { display: block; max-width: 26ch; margin-top: 1rem; color: var(--muted); }
.route-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 1.25rem; margin-top: 3rem; }
.route-link {
  min-height: 280px;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--line);
  background: var(--surface);
  text-decoration: none;
}
.route-link:last-child { margin-top: 5rem; background: var(--surface-2); }
.route-link h3 { max-width: 14ch; margin: 0; font-family: var(--display); font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 500; line-height: 1.05; }
.route-link p { max-width: 42ch; color: var(--muted); }
.route-link:hover { border-color: var(--accent); color: inherit; }
.route-link:hover h3 { color: var(--accent); }
.provenance { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 8vw, 8rem); align-items: start; }
.provenance-list { margin: 0; padding: 0; list-style: none; }
.provenance-list li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.provenance-list strong { display: block; color: var(--accent); }

.page-shell { display: grid; grid-template-columns: minmax(180px, .3fr) minmax(0, 1fr); gap: clamp(2rem, 7vw, 7rem); padding-block: clamp(3rem, 8vw, 7rem); }
.article-aside { position: sticky; top: 2rem; align-self: start; }
.article-aside p { color: var(--muted); font-size: .85rem; }
.article-aside a { font-weight: 700; }
.article { min-width: 0; max-width: 860px; }
.article > h1 {
  max-width: 16ch;
  margin: 0 0 2rem;
  font-family: var(--display);
  font-size: clamp(2.7rem, 6vw, 5.4rem);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1;
}
.article h2 { margin: 4rem 0 1rem; font-family: var(--display); font-size: clamp(1.75rem, 3vw, 2.6rem); font-weight: 500; line-height: 1.12; }
.article h3 { margin: 2.3rem 0 .6rem; font-size: 1.1rem; line-height: 1.35; }
.article p, .article ul, .article ol { max-width: var(--measure); }
.article blockquote {
  margin: 2rem 0 3rem;
  padding: 1.4rem 1.5rem;
  border-left: 5px solid var(--accent);
  background: var(--surface);
  font-family: var(--display);
  font-size: 1.25rem;
}
.article blockquote p { margin: 0; }
.article code { padding: .1em .3em; background: var(--surface-2); font-size: .9em; }
.article li + li { margin-top: .45rem; }
.table-wrap { max-width: 100%; overflow-x: auto; margin: 2rem 0; border: 1px solid var(--line); }
table { width: 100%; min-width: 680px; border-collapse: collapse; background: var(--surface); font-size: .9rem; }
th, td { padding: .9rem 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--accent); font-size: .78rem; letter-spacing: .04em; }
tr:last-child td { border-bottom: 0; }

.site-footer { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; padding-top: 3rem; padding-bottom: calc(3rem + var(--safe-bottom)); border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
.site-footer p { max-width: 58ch; margin: 0; }
.site-footer nav { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .8rem 1.2rem; }

@media (max-width: 900px) {
  .header-inner { grid-template-columns: 1fr auto; gap: .8rem; }
  .site-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; overflow-x: auto; padding-bottom: .8rem; }
  .brand,
  .site-nav a,
  .language-link,
  .theme-toggle,
  .site-footer a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; }
}

@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-block: 3rem; }
  .hero h1 { max-width: 10ch; }
  .hero-media::before { inset: .75rem 0 -.75rem .75rem; }
  .hero-media img { height: min(58vw, 320px); }
  .facts-band, .route-grid, .provenance, .page-shell, .site-footer { grid-template-columns: 1fr; }
  .route-link:last-child { margin-top: 0; }
  .article-aside { position: static; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
  .site-footer nav { justify-content: flex-start; flex-wrap: wrap; }
  .profile-hero { grid-template-columns: 1fr; min-height: auto; padding-block: 3rem; }
  .profile-hero-copy { padding-top: 0; }
  .profile-hero-copy h1 { max-width: 10ch; font-size: clamp(3rem, 14vw, 5rem); }
  .profile-hero-visual { width: min(88%, 520px); margin-left: auto; }
  .profile-intro > p { margin-left: 0; }
  .profile-facts, .publication-list, .honor-pair, .role-grid, .evidence-limits { grid-template-columns: 1fr; }
  .publication-list article:nth-child(2),
  .publication-list article:nth-child(3),
  .honor-pair article:last-child { margin-top: 0; }
  .outreach-band { padding-left: 0; }
  .role-grid { width: 100%; }
}

@media (max-width: 480px) {
  :root { --page-gutter: max(.625rem, var(--safe-left), var(--safe-right)); }
  .brand { font-size: 1.15rem; }
  .language-link, .theme-toggle { padding-inline: .55rem; }
  .hero h1 { font-size: clamp(2.9rem, 16vw, 4.6rem); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button-link { justify-content: center; }
  .profile-hero-visual { width: 100%; }
  .profile-facts > div { min-height: 170px; }
  .role-grid { width: 100%; }
}

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

@media print {
  .site-header, .site-footer, .article-aside { display: none; }
  body { background: white; color: black; }
  .page-shell { display: block; width: 100%; }
}
