@font-face {
  font-family: "Syne Local";
  src: url("./fonts/syne-latin-ext-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Syne Local";
  src: url("./fonts/syne-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Syne Local";
  src: url("./fonts/syne-latin-ext-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Syne Local";
  src: url("./fonts/syne-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Baskerville Local";
  src: url("./fonts/baskerville-latin-ext-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Baskerville Local";
  src: url("./fonts/baskerville-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Baskerville Local";
  src: url("./fonts/baskerville-latin-ext-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Baskerville Local";
  src: url("./fonts/baskerville-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Baskerville Local";
  src: url("./fonts/baskerville-latin-ext-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Baskerville Local";
  src: url("./fonts/baskerville-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Mono Local";
  src: url("./fonts/mono-latin-ext-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Mono Local";
  src: url("./fonts/mono-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --earth: #1a1410;
  --earth-2: #241c16;
  --kraft: #d7c4a3;
  --kraft-dim: #b7a78a;
  --ink: #f3ead9;
  --plant: #3f5c3a;
  --plant-hi: #8fbc6b;
  --cattle: #b5683a;
  --human: #c9a15b;
  --wild: #6b8f71;
  --rule: #3a3028;
  --focus: #e8d48a;
  --display: "Syne Local", "Arial Narrow", "Helvetica Neue", sans-serif;
  --serif: "Baskerville Local", "Palatino Linotype", Palatino, "Book Antiqua", serif;
  --mono: "Mono Local", "SF Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--earth); color: var(--ink); scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.6;
  background:
    radial-gradient(1200px 600px at 80% -10%, #2a2218 0%, transparent 60%),
    var(--earth);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.shell { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1rem 0 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.topbar a { color: var(--kraft); text-decoration: none; }
.topbar a:hover, .topbar a:focus-visible { color: var(--ink); }
.langsw a[aria-current="page"] { color: var(--ink); }

.hero { padding: 2.2rem 0 3rem; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 2.5rem 3rem;
  align-items: end;
}
.kicker {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--plant-hi);
  margin: 0 0 0.8rem;
}
h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 1.1rem;
  color: var(--kraft);
}
.standfirst { margin: 0 0 1.6rem; max-width: 38rem; color: var(--ink); }
.log {
  display: grid;
  gap: 0.85rem;
  border-top: 1px solid var(--rule);
  padding-top: 1.1rem;
}
.log div { min-width: 0; }
.log .n {
  font-family: var(--mono);
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
  color: var(--human);
  display: block;
  white-space: nowrap;
}
.log .l { color: var(--kraft-dim); font-size: 0.95rem; }

.core-wrap { justify-self: center; }
.core-svg { width: min(220px, 70vw); height: auto; display: block; }
.tube { filter: drop-shadow(0 18px 28px rgba(0,0,0,0.45)); }
figcaption {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--kraft-dim);
  margin-top: 0.7rem;
  max-width: 22rem;
  line-height: 1.45;
}

.block { padding: 2.4rem 0; }
.prose { max-width: 42rem; }
.prose p { margin: 0 0 1.1rem; }
h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  line-height: 1.15;
  margin: 0 0 0.9rem;
  color: var(--kraft);
}
.instrument {
  background: var(--earth-2);
  border-block: 1px solid var(--rule);
}
.inst-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: start;
}
.readout {
  font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.2;
  color: var(--human);
  min-height: 4.2rem;
  margin: 0 0 1rem;
}
.hint { color: var(--kraft-dim); font-size: 0.95rem; margin: 0 0 1rem; }
.presets { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0 0 1rem; }
.presets button, .reset {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  background: transparent;
  color: var(--kraft);
  border: 1px solid var(--rule);
  padding: 0.45rem 0.7rem;
  cursor: pointer;
}
.presets button[aria-pressed="true"], .presets button:hover, .reset:hover {
  border-color: var(--human);
  color: var(--ink);
}
.presets button:focus-visible, .reset:focus-visible, .band:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.mammal-svg { width: min(280px, 78vw); height: auto; display: block; margin-inline: auto; }
.band { cursor: pointer; }
.band[data-on="1"] { stroke: var(--kraft); stroke-width: 2; }
.band[data-on="2"] { stroke: var(--human); stroke-width: 2; }
.fallback { margin-top: 1.6rem; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.4rem 0.5rem 0.4rem 0; border-bottom: 1px solid var(--rule); }
th { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--kraft-dim); font-weight: 500; }
.close { background: #120e0b; }
.sources { background: var(--earth-2); color: var(--kraft); }
.sources a { color: var(--plant-hi); }
.src { margin: 0 0 1rem; }
.src .tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--kraft-dim);
  margin: 0 0 0.35rem;
}
footer.site {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.4rem 0 2.4rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--kraft-dim);
}
footer.site a { color: var(--kraft); }
.totop {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--earth-2);
  color: var(--kraft);
  text-decoration: none;
  border: 1px solid var(--rule);
  font-family: var(--mono);
}
@media (max-width: 800px) {
  .hero-grid, .inst-grid { grid-template-columns: 1fr; }
  .core-wrap, .mammal-svg { justify-self: start; }
  h1 { font-size: clamp(2.3rem, 12vw, 3.4rem); }
  .log .n { white-space: normal; }
}
@media print {
  .totop { display: none; }
  body { background: #fff; color: #111; }
}
