:root {
  color-scheme: dark;
  font: 16px/1.6 system-ui, sans-serif;
  --mono: ui-monospace, Consolas, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  --bg: #1b130f; --panel: #2c1e17; --line: #604334; --text: #fff3e9; --muted: #e8cdc0; --accent: #ffba86; --halo: #9e573c85;
  margin: 0; color: var(--text);
  background: radial-gradient(ellipse 52rem 33rem at 79% 15rem, var(--halo), transparent), var(--bg);
}
h1, h2, h3, p, dd, figure { margin: 0; }
a { color: var(--accent); text-underline-offset: .23em; }
a:hover { text-decoration-thickness: 2px; }
button, input { font: inherit; accent-color: var(--accent); }
button { color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.shell { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.skip { position: absolute; inset: .65rem auto auto 1rem; transform: translateY(calc(-100% - 1rem)); z-index: 2; padding: .65rem; background: var(--panel); }
.skip:focus { transform: none; }
.topbar, .footer, nav { display: flex; align-items: center; flex-wrap: wrap; gap: .15rem 1.1rem; }
.topbar, .footer { justify-content: space-between; padding-block: .7rem; }
.topbar { border-bottom: 1px solid var(--line); }
.topbar a, .footer a, .breadcrumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.brand { font-size: 1.45rem; font-weight: 800; color: var(--text); letter-spacing: -.055em; text-decoration: none; }
.brand span { color: var(--accent); }
.breadcrumbs, .footer { font-size: .85rem; color: var(--muted); }
.breadcrumbs { margin-top: .45rem; gap: .7rem; }
.hero, .experiment { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: clamp(1.25rem, 4vw, 3.75rem); }
.hero { padding: 1.7rem 0 2rem; }
.eyebrow, dt { font: 700 .74rem/1.55 var(--mono); letter-spacing: .085em; color: var(--accent); }
h1 { font-size: clamp(2.8rem, 6.1vw, 5.15rem); line-height: 1; letter-spacing: -.066em; margin: .85rem 0 1rem; text-wrap: balance; }
h1 em { color: var(--accent); font-style: normal; }
.translation { color: var(--accent); font: 700 .9rem/1.5 var(--mono); margin: 0 0 1rem; letter-spacing: .03em; }
.intro, .section p { color: var(--muted); }
.button { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; margin-top: 1.2rem; padding: .6rem 1rem; background: var(--accent); color: var(--bg); border-radius: .5rem; text-decoration: none; font-weight: 750; }
.button:hover { filter: brightness(1.12); }
.specimen {
  position: relative; display: grid; grid-template-rows: auto 1fr auto; min-height: 320px; min-width: 0; width: 100%;
  aspect-ratio: 1.25; padding: 1rem; border: 1px solid var(--line); border-radius: 1rem;
  background-color: var(--panel);
  background-image: linear-gradient(#ffffff0b 1px, transparent 1px), linear-gradient(90deg, #ffffff0b 1px, transparent 1px);
  background-size: 21px 21px;
}
.model-stage { position: relative; display: grid; min-height: 180px; place-items: center; }
.model-fallback { width: min(55%, 235px); height: auto; filter: drop-shadow(0 0 18px var(--halo)); }
.specimen canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.specimen canvas:active { cursor: grabbing; }
.specimen figcaption { display: flex; justify-content: space-between; align-items: center; gap: .4rem 1rem; min-height: 44px; font: .75rem/1.4 var(--mono); color: var(--muted); }
.specimen button, .choices button { min-height: 44px; padding: .35rem .65rem; background: var(--bg); border: 1px solid var(--line); border-radius: .4rem; }
.specimen button:hover, .choices button:hover, .choices [aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }
.facts, .notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.facts { margin: 0; padding: 1.1rem 0; border-block: 1px solid var(--line); }
dd { overflow-wrap: anywhere; }
.section { margin-block: clamp(2.5rem, 6vw, 4rem); }
section, figure { scroll-margin-top: 1rem; }
h2 { font-size: clamp(1.85rem, 4vw, 3rem); line-height: 1.13; letter-spacing: -.045em; margin: .45rem 0 .9rem; text-wrap: balance; }
h3 { line-height: 1.3; margin-bottom: .45rem; }
.sample, .notes article { padding: 1rem; background: var(--panel); border: 1px solid var(--line); border-radius: .8rem; }
.section .result { margin-top: .85rem; color: var(--text); font-weight: 650; }
.sample .fine { margin-top: .35rem; font-size: .84rem; }
.sources { margin-top: 1rem; font-size: .9rem; }
.footer { border-top: 1px solid var(--line); padding-bottom: 1.25rem; }
@media (max-width: 740px) {
  .hero, .experiment, .notes { grid-template-columns: minmax(0, 1fr); }
  .specimen { min-height: 270px; max-height: 380px; }
  .shell { width: calc(100% - 30px); }
  .hero { padding-top: 1rem; }
}
@media (max-width: 480px) {
  .facts { grid-template-columns: 1fr; gap: .6rem; }
  .topbar nav { gap: .15rem .65rem; font-size: .875rem; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }


.feature code { color: var(--text); overflow-wrap: anywhere; }
.sources a[aria-haspopup="dialog"] .source-fallback-arrow { display: none; }
