:root {
  color-scheme: light;
  --page-width: 78rem;
  --text-width: 46rem;
  --space-1: .375rem;
  --space-2: .75rem;
  --space-3: 1.25rem;
  --space-4: 2rem;
  --space-5: 3.5rem;
  --border: #cbd3d9;
  --muted: #57636d;
  --foreground: #172127;
  --background: #f8faf9;
  --surface: #fff;
  --link: #075a73;
  --link-hover: #003e51;
  --accent-soft: #e7f1f2;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
a { color: var(--link); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--link-hover); }
a:focus-visible, [tabindex]:focus-visible { outline: 3px solid #e49b24; outline-offset: 3px; }
h1, h2, h3, h4 { color: #111b20; line-height: 1.2; letter-spacing: -.015em; text-wrap: balance; }
h1 { margin: 0 0 var(--space-2); font-size: clamp(2.6rem, 8vw, 5.25rem); }
h2 { margin: var(--space-5) 0 var(--space-3); font-size: clamp(1.55rem, 4vw, 2.1rem); }
p, ul, ol, dl { margin-block: 0 var(--space-3); }
code { padding: .08em .24em; border-radius: .15rem; background: #edf1f2; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .92em; overflow-wrap: anywhere; }
.skip-link { position: absolute; left: var(--space-3); top: -5rem; z-index: 10; padding: var(--space-2); background: var(--surface); }
.skip-link:focus { top: var(--space-2); }
.site-header, .site-footer { border-bottom: 1px solid var(--border); }
.site-footer { border-top: 1px solid var(--border); border-bottom: 0; color: var(--muted); }
.site-nav, .site-footer { display: flex; max-width: var(--page-width); margin: auto; padding: var(--space-3); align-items: center; gap: var(--space-3); }
.site-nav { flex-wrap: wrap; }
.site-nav .wordmark { margin-right: auto; }
.site-footer { align-items: flex-start; flex-direction: column; gap: var(--space-1); }
.site-footer p { margin: 0; }
.wordmark { color: var(--foreground); font-weight: 750; text-decoration: none; }
.entry-page { max-width: var(--text-width); margin: 0 auto; padding: clamp(3rem, 9vw, 7rem) var(--space-3); }
.eyebrow { margin-bottom: var(--space-2); color: var(--muted); font-size: .8rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.lede { margin-bottom: var(--space-5); font-size: clamp(1.2rem, 3vw, 1.5rem); line-height: 1.5; }
.publication-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-block: 1px solid var(--border); }
.publication-facts div { padding: var(--space-3) 0; }
.publication-facts dt { color: var(--muted); font-size: .85rem; }
.publication-facts dd { margin: 0; font-weight: 650; }
.protocol-loop { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.protocol-loop span { display: inline-flex; align-items: center; font-weight: 650; }
.protocol-loop span:not(:last-child)::after { content: "→"; margin-left: var(--space-2); color: var(--muted); }
.publication-links { display: grid; gap: var(--space-2); margin-top: var(--space-4); }
.publication-links a { padding: var(--space-3); border: 1px solid var(--border); background: var(--surface); text-decoration: none; }
.publication-links span { display: block; color: var(--muted); font-size: .9rem; }
.support-page { max-width: var(--text-width); min-height: 55vh; margin: 0 auto; padding: clamp(3rem, 8vw, 6rem) var(--space-3); }
.support-page h1 { font-size: clamp(2.4rem, 7vw, 4.4rem); }
.support-page section { margin-top: var(--space-5); }
.support-page .publication-facts { margin-top: var(--space-4); }
.provenance-page { max-width: var(--page-width); }
.provenance-page .publication-facts { column-gap: var(--space-4); }
.support-page .publication-facts > div { min-width: 0; }
.support-page .publication-facts dd,
.support-page .publication-facts dd a { overflow-wrap: anywhere; word-break: break-word; }
.citation { margin-top: var(--space-4); padding: var(--space-3); border-left: .25rem solid var(--link); background: var(--accent-soft); }
.citation h2 { margin-top: 0; font-size: 1.25rem; }
.citation p:last-child { margin-bottom: 0; }
.artifact-list { padding-left: 1.25rem; }

@media (max-width: 34rem) {
  .publication-facts { grid-template-columns: 1fr; }
  .publication-facts div + div { border-top: 1px solid var(--border); }
  .site-nav { align-items: flex-start; flex-direction: column; }
}

@media print {
  @page { size: A4; margin: 18mm 17mm 20mm; }
  :root { --background: #fff; --foreground: #000; --muted: #333; --link: #000; }
  html { scroll-behavior: auto; }
  body { background: #fff; font-size: 10pt; line-height: 1.48; }
  .site-header, .site-footer, .skip-link { display: none; }
  a { text-decoration: none; }
  code { padding: 0; background: transparent; }
  h1, h2, h3, h4 { break-after: avoid-page; break-inside: avoid; }
  p, li { orphans: 3; widows: 3; }
  table, blockquote { break-inside: avoid; }
}
