@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/InstrumentSerif-Regular.ttf") format("truetype");
  font-display: swap;
  font-weight: 400;
}
@font-face {
  font-family: Inter;
  src: url("fonts/Inter-Regular.otf") format("opentype");
  font-display: swap;
  font-weight: 400;
}
@font-face {
  font-family: Inter;
  src: url("fonts/Inter-SemiBold.otf") format("opentype");
  font-display: swap;
  font-weight: 600 800;
}
:root {
  color-scheme: light;
  --paper: #fbfaf6;
  --sheet: #fffefb;
  --ink: #102e25;
  --muted: #4a6056;
  --rule: #cdd5c9;
  --pale: #eff2e9;
  --forest: #10382e;
  --deep: #0c2e25;
  --wheat: #f0dcad;
  --link: #245c46;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: Inter, system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  --measure: 78rem;
}
*, *::before, *::after { box-sizing: border-box }
html { scroll-behavior: smooth; scroll-padding-top: 1.5rem }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--sans); -webkit-font-smoothing: antialiased }
img { max-width: 100%; height: auto; display: block }
a { color: var(--link); text-underline-offset: .21em; text-decoration-thickness: .075em }
button, input, select { font: inherit }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #34775b; outline-offset: 4px }
::selection { color: #0e3327; background: #e8dda8 }
h1, h2, h3, h4, p, figure, dl { margin: 0 }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.03; text-wrap: balance }
h1 { font-size: clamp(3.55rem, 7.5vw, 7.2rem); letter-spacing: -.042em }
h2 { font-size: clamp(2.8rem, 5.2vw, 5rem); letter-spacing: -.034em }
h3 { font-size: clamp(2rem, 3.2vw, 3.2rem); letter-spacing: -.023em }
.wrap { width: min(var(--measure), calc(100% - clamp(2.5rem, 8.5vw, 10rem))); margin-inline: auto }
.visually-hidden, .demo-radio { clip-path: inset(50%); clip: rect(0 0 0 0); position: absolute; width: 1px; height: 1px; overflow: hidden; white-space: nowrap }
.skip-link { position: absolute; z-index: 20; top: .7rem; left: .85rem; padding: .6rem 1rem; border-radius: .2rem; background: white; transform: translateY(-180%) }
.skip-link:focus { transform: none }
.eyebrow { font-family: var(--sans); font-size: .78rem; font-weight: 600; line-height: 1.3; letter-spacing: .13em; text-transform: uppercase; color: var(--link) }
.topbar { background: var(--paper); border-bottom: 1px solid var(--rule) }
.header-inner { min-height: 4.7rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem }
.wordmark, .footer-mark { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; font: 400 2.15rem/1 var(--serif); letter-spacing: -.04em }
.wordmark img { width: 2rem; height: 2rem }
.topbar nav { display: flex; align-items: center; gap: clamp(.85rem, 3vw, 2.6rem) }
.topbar nav a { position: relative; color: var(--muted); font-size: .92rem; font-weight: 600; text-decoration: none; white-space: nowrap; padding-block: .6rem }
.topbar nav a:hover, .topbar nav a[aria-current="page"] { color: var(--ink) }
.topbar nav a::after { content: ""; height: 1px; background: currentColor; position: absolute; bottom: .38rem; inset-inline: 0; transform: scaleX(0); transform-origin: left; transition: transform 160ms ease }
.topbar nav a:hover::after, .topbar nav a[aria-current="page"]::after { transform: scaleX(1) }
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--forest); color: #fffcef }
.hero-inner { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; min-height: clamp(31rem, 43.5vw, 41rem); }
.hero-copy { position: relative; z-index: 1; padding: 4rem 0 4.3rem }
.hero-label { display: flex; align-items: center; gap: .8rem; color: #e6d19f; margin-bottom: 1.55rem }
.hero-label span { width: 2.1rem; height: 1px; background: #d3b779 }
.hero h1 { font-size: clamp(4.5rem, 7.9vw, 7.95rem); line-height: .96; letter-spacing: -.04em; color: #fffbed }
.hero-description { margin-top: 1.65rem; max-width: 31rem; color: #d5e0d3; font-size: clamp(1.02rem, 1.45vw, 1.16rem); line-height: 1.65 }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 2rem }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.95rem; padding: .65rem 1.18rem; border: 1px solid transparent; border-radius: .27rem; font: 600 .94rem/1.35 var(--sans); text-decoration: none; transition: background-color 200ms ease, border-color 200ms ease, transform 200ms ease }
.button:hover { transform: translateY(-2px) }
.button:focus-visible, .evidence-field a:focus-visible { outline-color: #e6c876 }
.button-wheat { background: var(--wheat); color: #193628 }
.button-wheat:hover { background: #fff0c8 }
.button-ghost { background: transparent; color: #f3f5e8; border-color: #779181 }
.button-ghost:hover { border-color: #cad7c7; background: #254a3b }
.hero-art { position: absolute; inset: 0 min(-5vw,-1.3rem) 0 38%; z-index: 0; display: grid; place-items: center; pointer-events: none; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center; mask-image: linear-gradient(90deg, transparent, black 14%, black 92%, transparent 100%); }
.showcase, .paths { padding-block: clamp(3.6rem, 7.5vw, 7.25rem) }
.section-header { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem }
.section-header h2, .evidence-intro h2 { margin-top: .8rem }
.section-header > p { max-width: 23rem; color: var(--muted); padding-bottom: .28rem; line-height: 1.6 }
.workspace-demo { position: relative; padding: 0; margin: 0; border: 0; min-width: 0 }
.demo-controls { display: flex; gap: .4rem; border-bottom: 1px solid var(--rule) }
.demo-controls label { display: inline-flex; align-items: center; padding: .65rem 1.05rem .76rem; border-bottom: 3px solid transparent; color: var(--muted); font-size: .94rem; font-weight: 600; cursor: pointer; transition: color 150ms ease, background 150ms ease; }
.demo-controls label:hover { background: #ecefe6; color: var(--ink) }
#view-citation:checked ~ .demo-controls [for="view-citation"], #view-table:checked ~ .demo-controls [for="view-table"], #view-reader:checked ~ .demo-controls [for="view-reader"] { color: var(--ink); border-color: var(--link) }
#view-citation:focus-visible ~ .demo-controls [for="view-citation"], #view-table:focus-visible ~ .demo-controls [for="view-table"], #view-reader:focus-visible ~ .demo-controls [for="view-reader"] { outline: 3px solid #34775b; outline-offset: -3px }
.demo-panel { display: none; grid-template-columns: minmax(14rem, .68fr) minmax(0, 1.32fr); gap: clamp(2rem, 6vw, 5.5rem); padding-top: clamp(1.6rem, 3.8vw, 3rem); align-items: center }
#view-citation:checked ~ .demo-citation, #view-table:checked ~ .demo-table, #view-reader:checked ~ .demo-reader { display: grid }
.demo-copy { padding: .7rem 0 }
.demo-copy h3 { margin-top: .8rem; line-height: 1.08; }
.demo-copy p:not(.eyebrow), .evidence-intro > p:not(.eyebrow) { margin-top: 1.1rem; color: var(--muted); line-height: 1.72; }
.text-link, .next-link { font-weight: 600; text-decoration-line: underline; text-decoration-color: #8ca896 }
.demo-copy .text-link { display: inline-block; margin-top: 1.3rem }
.demo-panel figure { border: 1px solid #c8d1c5; background: #e7ece2; border-radius: .45rem; padding: clamp(.6rem, 1.75vw, 1.4rem); }
.demo-panel figure img { width: 100%; border: 1px solid #c6cec2; border-radius: .2rem; box-shadow: 0 .45rem 1.4rem #18382915 }
.evidence-field { background: var(--forest); color: #fffbed; }
.evidence-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.75rem,8vw,8rem); padding-block: clamp(3.7rem,6.8vw,6rem); align-items: center }
.evidence-field .eyebrow { color: var(--wheat) }
.evidence-intro > p:not(.eyebrow) { color: #d6e0d3; max-width: 30rem }
.evidence-intro .button { margin-top: 1.5rem }
.specimen { padding: clamp(1.2rem,3.8vw,2.25rem); background: #f3f2e7; color: var(--ink); border-radius: .25rem; box-shadow: .48rem .48rem 0 #91a183, .8rem .8rem 0 #416351; }
.specimen-head, .specimen-list > div { display: flex; gap: 1rem; justify-content: space-between; align-items: center }
.specimen-head { border-bottom: 1px solid #afbaa6; padding-bottom: .75rem; font-weight: 600 }
.specimen-head span:last-child { color: var(--muted); font: .81rem var(--mono) }
.specimen-metric { padding-block: 1.1rem 1.4rem; display: grid; gap: .18rem }
.specimen-metric strong { font: 400 clamp(4rem,7vw,6.25rem)/1 var(--serif); letter-spacing: -.05em }
.specimen-metric strong small { font-size: .43em }
.specimen-metric span, .specimen-list dt { color: var(--muted); font-size: .92rem }
.specimen-list > div { border-top: 1px solid #c4cdbd; padding-block: .52rem }
.specimen-list dd { margin: 0; font: .88rem/1.45 var(--mono) }
.path-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem }
.path-grid a { display: block; border-top: 1px solid #8da296; color: var(--ink); text-decoration: none; padding-top: 1.25rem; }
.path-grid h3 { font-size: clamp(1.85rem,3vw,2.7rem); margin-bottom: .7rem }
.path-grid p { color: var(--muted); font-size: .97rem; }
.path-grid a:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em }
.site-footer { border-top: 1px solid var(--rule); background: #eef0e7 }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; min-height: 6rem; color: var(--muted); font-size: .9rem }
.footer-mark { font-size: 1.85rem }
.doc-layout { display: grid; grid-template-columns: minmax(10rem, 13.5rem) minmax(0, 49rem); gap: clamp(2.6rem, 8vw, 8rem); align-items: start; padding-block: clamp(2.75rem, 5vw, 5.5rem) 6rem; }
.doc-nav { position: sticky; top: 2rem; padding-left: 1rem; border-left: 1px solid var(--rule); max-height: calc(100vh - 4rem); overflow: auto; }
.doc-nav > p { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; color: var(--ink); margin-bottom: .7rem }
.doc-nav nav { display: grid; gap: .1rem }
.doc-nav a { display: block; width: fit-content; color: var(--muted); text-decoration: none; padding-block: .32rem; font-size: .91rem; line-height: 1.48 }
.doc-nav a:hover { color: var(--link); text-decoration: underline }
.prose { min-width: 0; max-width: 100%; overflow-wrap: break-word; line-height: 1.72; }
.prose h1 { margin-top: .55rem; font-size: clamp(3.5rem, 6vw, 6.15rem); }
.doc-heading { padding-bottom: 2.4rem; border-bottom: 1px solid var(--rule); }
.prose .lead { font-size: clamp(1.12rem, 1.7vw, 1.35rem); line-height: 1.55; margin: 1.15rem 0 0; color: var(--muted); }
.prose section { margin-top: 2.8rem; scroll-margin-top: 1.5rem }
.prose h2 { font-size: clamp(2.3rem, 3.85vw, 3.65rem); margin: 2.6rem 0 1.2rem; }
.prose h3 { font-size: clamp(1.7rem, 2.5vw, 2.2rem); margin: 1.8rem 0 .72rem; }
.prose h4 { font: 600 1rem/1.5 var(--sans); margin: 1.2rem 0 .35rem; }
.prose p + p, .prose ul, .prose ol, .prose figure, .prose pre, .prose table, .prose details, .prose .note, .prose dl { margin-block: 1.1rem }
.prose ul, .prose ol { padding-left: 1.4rem }
.prose li { margin-block: .46rem; padding-left: .15rem }
.prose li::marker { color: var(--link) }
.prose dl { border-top: 1px solid var(--rule); }
.prose dt { padding-top: .75rem; font-weight: 600 }
.prose dd { margin: .2rem 0 0; padding-bottom: .7rem; border-bottom: 1px solid var(--rule); color: var(--muted); }
.prose figure img { width: 100%; border: 1px solid var(--rule); border-radius: .24rem; }
.prose figcaption { color: var(--muted); font-size: .875rem; line-height: 1.5; margin-top: .6rem; }
.prose code, .prose pre, .prose kbd { font-family: var(--mono); font-size: .89em }
.prose :not(pre) > code, .prose kbd { color: #1c4737; background: #eef1e7; border-radius: .22rem; padding: .11em .29em; overflow-wrap: anywhere; }
.prose kbd { border: 1px solid #c0caba; border-bottom-width: 2px; white-space: nowrap; }
.prose pre { background: #143b30; color: #f1f1db; border-radius: .3rem; padding: 1.1rem 1.3rem; overflow-x: auto; white-space: pre; font-size: .9rem; line-height: 1.65; }
.prose pre code { font-size: inherit; color: inherit; }
.prose .table-wrap { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; line-height: 1.5; font-size: .96rem; }
.prose th, .prose td { padding: .7rem .75rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.prose th { background: var(--pale); font-weight: 600; color: #274836; }
.prose blockquote, .prose .note { margin-inline: 0; background: var(--pale); padding: 1rem 1.3rem; border-left: 3px solid #50715b; }
.prose details { border-block: 1px solid var(--rule); padding: .75rem 0 }
.prose details + details { border-top: 0; margin-top: -1.1rem; }
.prose summary { cursor: pointer; font-weight: 600; }
.prose details[open] > summary { margin-bottom: .65rem; }
.prose .next-link { display: inline-block; margin-top: 1.4rem; }
@media (min-width: 95rem) {
  .hero-art { inset-inline-end: -7rem }
}
@media (max-width: 64rem) {
  .hero-art { inset-inline-start: 39% }
  .hero-copy { max-width: 26rem }
  .hero-description { max-width: 24rem }
  .hero h1 { font-size: clamp(4.4rem,8.5vw,6rem) }
  .path-grid { grid-template-columns: repeat(2,1fr); row-gap: 2.1rem }
  .doc-layout { gap: 3rem; grid-template-columns: minmax(9rem,11rem) minmax(0,1fr) }
}
@media (max-width: 48rem) {
  .header-inner { min-height: 4rem; gap: .75rem }
  .topbar nav { gap: .9rem }
  .hero-inner { display: flex; flex-direction: column; align-items: stretch }
  .hero-copy { padding-block: 3.5rem 1.8rem; max-width: none }
  .hero h1 { font-size: clamp(4.25rem,12vw,6.05rem) }
  .hero-description { max-width: 33rem; }
  .hero-art { position: relative; inset: auto; z-index: auto; margin: -1.5rem -1.1rem -.25rem; height: clamp(16rem,55vw,24rem); }
  .hero-art img { object-fit: contain; mask-image: linear-gradient(180deg,transparent 0%,black 12%,black 94%,transparent 100%); }
  .section-header { align-items: start; flex-direction: column; gap: .9rem; }
  .section-header > p { max-width: 34rem }
  .demo-panel { grid-template-columns: 1fr; gap: 1.25rem; }
  .demo-copy { max-width: 33rem; }
  .evidence-inner { grid-template-columns: 1fr; gap: 2.3rem }
  .specimen { max-width: 35rem; width: calc(100% - .8rem) }
  .doc-layout { display: flex; flex-direction: column; gap: 0; padding-top: 1.65rem; }
  .doc-nav { position: static; max-height: none; align-self: stretch; margin-bottom: 1.85rem; padding: 0 0 .9rem; border: 0; border-bottom: 1px solid var(--rule); }
  .doc-nav nav { display: flex; flex-wrap: wrap; gap: .1rem 1rem }
  .doc-nav a { padding-block: .18rem }
  .doc-heading { padding-bottom: 1.7rem; }
}
@media (max-width: 33rem) {
  .header-inner { padding-block: .9rem .65rem; align-items: flex-start; flex-direction: column; gap: .35rem; }
  .wordmark { font-size: 1.85rem; }
  .wordmark img { width: 1.65rem; height: 1.65rem; }
  .topbar nav { width: 100%; justify-content: space-between; gap: .6rem; }
  .topbar nav a { font-size: .85rem; padding-block: .35rem; }
  .hero-copy { padding-top: 2.6rem }
  .hero-label { margin-bottom: 1.15rem }
  .actions { margin-top: 1.5rem; gap: .5rem; }
  .button { padding-inline: .85rem; min-height: 2.7rem; font-size: .88rem; }
  .demo-controls { gap: .12rem }
  .demo-controls label { font-size: .84rem; padding: .65rem .52rem; }
  .path-grid { grid-template-columns: 1fr; row-gap: 1.5rem }
  .footer-inner { min-height: 4.8rem; }
  .footer-inner span { font-size: .81rem; }
  .prose th, .prose td { font-size: .88rem; padding: .55rem .4rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; animation-duration: 0s !important; }
}
@media print {
  .topbar nav, .doc-nav, .skip-link, .actions, .site-footer { display: none }
  body { color: black; background: white; }
  .wrap { width: 100%; } .doc-layout { display: block; padding: 0; }
  .prose pre { color: black; background: white; border: 1px solid #bbb; white-space: pre-wrap; }
}
.evidence-note { margin-top: 1.15rem; color: var(--ink); }
.evidence-note summary { width: fit-content; cursor: pointer; font-size: .92rem; font-weight: 600; }
.evidence-note summary::marker { color: #63816b; }
.evidence-note p:not(.eyebrow) { margin-top: .55rem; font-size: .95rem; line-height: 1.62; }
@media (max-width: 23rem) {
  .header-inner { width: calc(100% - 1.6rem); flex-direction: row; align-items: center; gap: .55rem; padding-block: .7rem; }
  .wordmark { font-size: 1.75rem; gap: .3rem; }
  .wordmark img { width: 1.45rem; height: 1.45rem; }
  .topbar nav { display: grid; width: auto; grid-template-columns: repeat(2, max-content); gap: 0 .7rem; }
  .topbar nav a { padding-block: .35rem; }
}

.render-strip { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,12rem),1fr)); gap: .85rem; }
.prose .render-strip figure { margin: 0; min-width: 0; }
.sample-page { display: block; overflow: hidden; aspect-ratio: 1.6; border: 1px solid var(--rule); border-radius: .25rem; }
.prose .sample-page img { width: 130%; max-width: none; transform: translate(-5%, -17%); border: 0; border-radius: 0; }
