/* ============================================================
   KERNHAUS — proof-paper design system
   paper #F7F6F1 · ink #16140F · correction red #C92E21 · metal #7D8084
   ============================================================ */

:root {
  --paper: #F7F6F1;
  --paper-2: #EEEDE5;
  --ink: #16140F;
  --rot: #C92E21;
  --grau: #7D8084;
  --line: rgba(22, 20, 15, 0.9);
  --line-soft: rgba(22, 20, 15, 0.16);
  --baseline: 28px;
  --pad: clamp(20px, 4.5vw, 64px);
  --sans: "Archivo", "Helvetica Neue", sans-serif;
  --serif: "Fraunces", Georgia, serif;
  --mono: "Fragment Mono", "Courier New", monospace;
  --hand: "Caveat", cursive;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-variation-settings: "wdth" 96, "wght" 400;
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}

::selection { background: var(--rot); color: var(--paper); }

a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
kbd {
  font-family: var(--mono); font-size: 0.85em;
  border: 1px solid var(--line-soft); border-bottom-width: 2px;
  border-radius: 3px; padding: 0 5px;
}

:focus-visible { outline: 2px solid var(--rot); outline-offset: 3px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- shared labels ---------- */
.mono-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grau);
}

.serif { font-family: var(--serif); }
.mono { font-family: var(--mono); }

/* ---------- baseline grid overlay ---------- */
.baseline-grid {
  position: fixed; inset: 0; z-index: 999; pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(201, 46, 33, 0.28) 0, rgba(201, 46, 33, 0.28) 1px,
    transparent 1px, transparent var(--baseline)
  );
  opacity: 0; transition: opacity 0.25s;
}
body.grid-on .baseline-grid { opacity: 1; }

.grid-chip {
  position: fixed; left: 16px; bottom: 16px; z-index: 1000;
  padding: 8px 12px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--grau);
  transition: color 0.2s, border-color 0.2s;
}
.grid-chip:hover { color: var(--ink); border-color: var(--ink); }
body.grid-on .grid-chip { color: var(--rot); border-color: var(--rot); }

/* ---------- header ---------- */
.site-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: 20px var(--pad) 0;
}
.wordmark {
  font-family: var(--sans);
  font-variation-settings: "wdth" 125, "wght" 800;
  font-size: 22px; letter-spacing: 0.01em;
  text-decoration: none; text-transform: uppercase;
}
.wordmark-reg {
  display: inline-block; margin-left: 10px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--grau);
  font-variation-settings: normal;
}
.site-nav { display: flex; gap: clamp(12px, 2.5vw, 28px); flex-wrap: wrap; }
.site-nav a {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; text-decoration: none;
  border-bottom: 1px solid transparent; padding-bottom: 2px;
}
.site-nav a:hover { border-bottom-color: var(--rot); color: var(--rot); }

/* ============================================================
   HERO — the instrument
   ============================================================ */
.hero {
  padding: clamp(28px, 5vh, 56px) var(--pad) clamp(28px, 4vh, 44px);
  cursor: crosshair;
}
.hero-eyebrow {
  max-width: 46ch;
  font-size: 15px; color: var(--ink);
}
.hero-eyebrow .mono-label { display: block; margin-bottom: 6px; }

.hero-stage {
  display: flex; align-items: center; justify-content: center;
  min-height: clamp(220px, 44vh, 460px);
  padding: clamp(8px, 2vh, 24px) 0;
  overflow: hidden;
}
.hero-word {
  font-family: var(--sans);
  font-variation-settings: "wdth" 100, "wght" 340;
  font-size: clamp(64px, 17vw, 260px);
  line-height: 0.95;
  letter-spacing: -0.015em;
  white-space: nowrap;
  color: var(--ink);
  user-select: none;
}
.hero-word:hover { color: var(--rot); }

/* instrument panel */
.instrument-panel {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: clamp(16px, 3vw, 40px);
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.axis-cell label, .axis-cell > .mono-label { display: block; margin-bottom: 8px; color: var(--ink); }
.axis-hint { color: var(--grau); text-transform: none; letter-spacing: 0.06em; }
.axis-readout {
  font-family: var(--mono);
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  margin-bottom: 10px;
}
.axis-cell input[type="range"] {
  width: 100%; margin-bottom: 8px;
  accent-color: var(--rot);
}
.axis-note { font-size: 14px; color: var(--grau); max-width: 34ch; }
.axis-meta .mono-label { color: var(--ink); margin-bottom: 8px; }

/* ============================================================
   LEDGER
   ============================================================ */
.ledger { border-top: 1px solid var(--line); margin-top: clamp(40px, 6vh, 72px); }
.ledger-row {
  display: grid;
  grid-template-columns: 110px 1fr 1.4fr auto;
  align-items: baseline; gap: 20px;
  padding: 16px var(--pad);
  border-bottom: 1px solid var(--line-soft);
}
.ledger-name {
  font-size: clamp(22px, 2.6vw, 34px);
  font-variation-settings: "wdth" 110, "wght" 640;
  line-height: 1.1;
  transition: font-variation-settings 0.4s ease;
}
.ledger-row:hover .ledger-name:not(.serif):not(.mono) { font-variation-settings: "wdth" 125, "wght" 780; }
.ledger-row:hover .ledger-name.serif { font-variation-settings: "opsz" 144, "wght" 620; }
.ledger-name.serif { font-variation-settings: normal; font-weight: 500; font-variation-settings: "opsz" 60, "wght" 500; }
.ledger-name.mono { font-size: clamp(18px, 2vw, 26px); }
.ledger-detail { font-size: 14px; color: var(--grau); }
.ledger-row.is-muted .ledger-name { color: var(--grau); }

/* ============================================================
   FAMILY SHEETS
   ============================================================ */
.family, .proof, .license {
  padding: clamp(72px, 11vh, 130px) var(--pad);
}
.family-serif { background: var(--paper-2); }

.sheet-head {
  border-top: 2px solid var(--ink);
  padding-top: 14px;
  margin-bottom: clamp(40px, 6vh, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 42ch);
  gap: 8px clamp(24px, 4vw, 64px);
  align-items: end;
}
.sheet-head .mono-label { grid-column: 1 / -1; }
.sheet-title {
  font-size: clamp(52px, 8vw, 120px);
  line-height: 0.95;
  font-variation-settings: "wdth" 115, "wght" 780;
  letter-spacing: -0.01em;
  font-weight: normal;
}
.sheet-title.serif {
  font-variation-settings: "opsz" 144, "wght" 560, "SOFT" 0, "WONK" 0;
  letter-spacing: 0;
}
.sheet-sub { font-size: 16px; color: var(--ink); }
.serif-sub { font-family: var(--serif); font-variation-settings: "opsz" 14, "wght" 420, "SOFT" 0, "WONK" 0; }

/* ---------- waterfall ---------- */
.waterfall { border-top: 1px solid var(--line-soft); }
.wf-row {
  display: flex; align-items: baseline; gap: 20px;
  border-bottom: 1px solid var(--line-soft);
  padding: 12px 0;
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  transition-delay: var(--wfd, 0s);
}
.wf-row.in { opacity: 1; transform: none; }
.wf-size { flex: 0 0 44px; text-align: right; }
.wf-text {
  font-size: var(--wf);
  line-height: 1.05;
  font-variation-settings: "wdth" 100, "wght" 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  min-width: 0;
  transition: font-variation-settings 0.45s ease;
}
.wf-row:hover .wf-text { font-variation-settings: "wdth" 120, "wght" 640; }

/* ---------- kern bench ---------- */
.kernbench { margin-top: clamp(56px, 8vh, 88px); }
.bench-label { display: block; margin-bottom: 20px; }
.kern-row {
  display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 56px);
  align-items: baseline;
}
.kern-pair {
  position: relative;
  font-size: clamp(64px, 8vw, 128px);
  line-height: 1;
  font-variation-settings: "wdth" 100, "wght" 600;
  padding-bottom: 30px;
}
.kern-pair .k2 {
  display: inline-block;
  margin-left: 0.24em;
  transition: margin-left 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}
.kern-pair.kerned .k2 { margin-left: -0.055em; }
.kern-val {
  position: absolute; left: 0; bottom: 0;
  color: var(--rot);
  font-variant-numeric: tabular-nums;
}
.bench-note {
  margin-top: 22px; font-size: 14px; color: var(--grau); max-width: 52ch;
}

/* ---------- glyph map ---------- */
.glyphmap { margin-top: clamp(56px, 8vh, 88px); }
.glyph-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  border-top: 1px solid var(--line-soft);
  border-left: 1px solid var(--line-soft);
}
.glyph-cell {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  font-size: 28px;
  font-variation-settings: "wdth" 100, "wght" 300;
  transition: font-variation-settings 0.35s ease, background 0.35s ease, color 0.35s ease;
}
.glyph-cell:hover {
  font-variation-settings: "wdth" 118, "wght" 860;
  background: var(--ink); color: var(--paper);
}

/* ============================================================
   BROTSCHRIFT LAB
   ============================================================ */
.axislab {
  display: grid; grid-template-columns: 1.5fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}
.lab-stage {
  border: 1px solid var(--line-soft);
  background: var(--paper);
  min-height: clamp(220px, 36vh, 360px);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(20px, 3vw, 40px);
  overflow: hidden;
}
.lab-sample {
  font-family: var(--serif);
  font-variation-settings: "opsz" 96, "wght" 480, "SOFT" 0, "WONK" 0;
  font-size: clamp(38px, 5.4vw, 84px);
  line-height: 1.05;
  text-align: center;
}
.lab-controls { display: grid; gap: 26px; }
.lab-cell label, .lab-cell > .mono-label { display: flex; justify-content: space-between; color: var(--ink); margin-bottom: 8px; }
.lab-val { color: var(--rot); font-variant-numeric: tabular-nums; }
.lab-cell input[type="range"] { width: 100%; accent-color: var(--rot); }
.lab-desc { margin-top: 8px; font-size: 13.5px; color: var(--grau); }

.wonk-toggle {
  width: 58px; height: 30px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  position: relative;
  display: block;
  transition: background 0.25s;
}
.wonk-knob {
  position: absolute; top: 3px; left: 3px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--ink);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.wonk-toggle[aria-pressed="true"] { background: var(--rot); border-color: var(--rot); }
.wonk-toggle[aria-pressed="true"] .wonk-knob { transform: translateX(28px); background: var(--paper); }

/* ---------- anatomy ---------- */
.anatomy { margin-top: clamp(64px, 9vh, 100px); }
.anatomy-stage {
  position: relative;
  max-width: 760px; margin: 0 auto;
  aspect-ratio: 760 / 560;
}
.anatomy-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.anatomy-g {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "wght" 440, "SOFT" 0, "WONK" 0;
  font-size: 400px;
  fill: var(--ink);
}
.anatomy-svg .metric {
  stroke: var(--grau); stroke-width: 1; stroke-dasharray: 4 5;
  opacity: 0; transition: opacity 0.8s ease 0.2s;
}
.anatomy-svg .metric-t {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  fill: var(--grau); text-transform: uppercase;
  opacity: 0; transition: opacity 0.8s ease 0.4s;
}
.anatomy-svg .callout .leader {
  stroke: var(--rot); stroke-width: 1.25;
  stroke-dasharray: 220; stroke-dashoffset: 220;
  transition: stroke-dashoffset 0.9s ease calc(0.5s + var(--d) * 0.35s);
}
.anatomy-svg .callout .dot {
  fill: var(--rot);
  opacity: 0; transition: opacity 0.4s ease calc(0.5s + var(--d) * 0.35s);
}
.anatomy-svg .callout .term {
  font-family: var(--mono); font-size: 15px; fill: var(--ink);
  opacity: 0; transition: opacity 0.6s ease calc(0.9s + var(--d) * 0.35s);
}
.anatomy-svg .term-en { fill: var(--grau); font-size: 12px; }
.anatomy.drawn .metric, .anatomy.drawn .metric-t,
.anatomy.drawn .dot, .anatomy.drawn .term { opacity: 1; }
.anatomy.drawn .leader { stroke-dashoffset: 0; }
.anatomy .bench-note { text-align: center; margin-inline: auto; }

/* ============================================================
   PROOF SHEET
   ============================================================ */
.proof-sheet {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  padding: clamp(28px, 5vw, 64px) clamp(22px, 6vw, 80px);
  box-shadow: 6px 6px 0 rgba(22, 20, 15, 0.06);
}
.proof-body {
  font-family: var(--serif);
  font-variation-settings: "opsz" 13, "wght" 430, "SOFT" 0, "WONK" 0;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 2.1; /* proofs are set with extra leading so the pencil has room */
}

/* planted errors + marks */
.p-err { position: relative; }
.p-kern { letter-spacing: 0.08em; }
.p-fisch { font-family: var(--sans); font-variation-settings: "wdth" 100, "wght" 500; font-style: normal; }

.p-dbl::after,
.p-stet::after {
  content: ""; position: absolute; left: -2%; right: -2%; top: 52%;
  height: 2px; background: var(--rot);
  transform: rotate(-2deg) scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s ease;
}
.p-stet::after { background: repeating-linear-gradient(90deg, var(--rot) 0 5px, transparent 5px 9px); }
.marked .p-dbl::after { transform: rotate(-2deg) scaleX(1); transition-delay: 0.25s; }
.marked .p-stet::after { transform: rotate(-2deg) scaleX(1); transition-delay: 0.75s; }
.p-fisch { transition: color 0.4s ease 1.8s; }
.marked .p-fisch { color: var(--rot); }

.p-note {
  position: absolute;
  left: 50%; bottom: calc(100% + 2px);
  font-family: var(--hand); font-weight: 600;
  color: var(--rot);
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1;
  opacity: 0; transform: translateX(-50%) rotate(-5deg) translateY(6px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
  white-space: nowrap;
}
.marked .p-note { opacity: 1; transform: translateX(-50%) rotate(-5deg) translateY(0); }
.p-note-2 { bottom: auto; top: calc(100% + 4px); transform: translateX(-50%) rotate(3deg) translateY(6px); }
.marked .p-note-2 { transform: translateX(-50%) rotate(3deg) translateY(0); }
.p-note-4 { left: auto; right: auto; bottom: calc(100% + 6px); transform: rotate(6deg) translateY(6px); }
.marked .p-note-4 { transform: rotate(6deg) translateY(0); }
.marked .p-note-1 { transition-delay: 0.3s; }
.marked .p-note-2 { transition-delay: 0.8s; }
.marked .p-note-3 { transition-delay: 1.3s; }
.marked .p-note-4 { transition-delay: 1.9s; }

.p-circle {
  position: absolute; inset: -6px -7px -8px -7px;
  width: auto; height: auto;
  pointer-events: none;
  overflow: visible;
}
.p-circle ellipse {
  fill: none; stroke: var(--rot); stroke-width: 3;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 300; stroke-dashoffset: 300;
  transition: stroke-dashoffset 0.9s ease 1.7s;
}
.marked .p-circle ellipse { stroke-dashoffset: 0; }

/* ============================================================
   LICENSE / TARIFF
   ============================================================ */
.tariff-pick { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.pick {
  padding: 10px 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 15px;
  font-variation-settings: "wdth" 106, "wght" 560;
  transition: background 0.2s, color 0.2s;
}
.pick-serif { font-family: var(--serif); font-variation-settings: "opsz" 30, "wght" 500, "SOFT" 0, "WONK" 0; }
.pick-mono { font-family: var(--mono); font-size: 13.5px; font-variation-settings: normal; }
.pick[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.pick:hover:not([aria-selected="true"]) { background: var(--paper-2); }

.tariff-wrap { overflow-x: auto; border-top: 2px solid var(--ink); }
.tariff { width: 100%; border-collapse: collapse; min-width: 620px; }
.tariff th, .tariff td { text-align: left; padding: 16px 18px 16px 0; border-bottom: 1px solid var(--line-soft); }
.tariff thead th { padding-top: 12px; padding-bottom: 10px; }
.tariff tbody th {
  font-variation-settings: "wdth" 104, "wght" 620;
  font-weight: normal; font-size: 17px;
}
/* the row headers are set in whichever family you are buying */
.tariff[data-fam="brotschrift"] tbody th {
  font-family: var(--serif);
  font-variation-settings: "opsz" 24, "wght" 560, "SOFT" 0, "WONK" 0;
}
.tariff[data-fam="bundle"] tbody th { font-family: var(--mono); font-size: 15px; font-variation-settings: normal; }
.row-sub { display: block; font-size: 12.5px; color: var(--grau); font-variation-settings: "wdth" 98, "wght" 400; }
.tariff td {
  font-family: var(--mono); font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.tariff tbody tr { transition: background 0.15s; }
.tariff tbody tr:hover { background: var(--paper-2); }
.tariff td.bump { color: var(--rot); }

.license-cta { margin-top: 36px; }
.cta-btn {
  display: inline-block;
  background: var(--rot); color: var(--paper);
  text-decoration: none;
  padding: 16px 28px;
  font-variation-settings: "wdth" 108, "wght" 640;
  font-size: 17px;
  transition: background 0.2s;
}
.cta-btn:hover { background: var(--ink); }

/* ============================================================
   COLOPHON
   ============================================================ */
.colophon {
  border-top: 2px solid var(--ink);
  padding: clamp(48px, 7vh, 80px) var(--pad) 96px;
  background: var(--paper);
}
.colo-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 64px);
}
.colo-grid .mono-label { display: block; margin-bottom: 12px; color: var(--ink); }
.colo-body { font-size: 14.5px; color: var(--grau); max-width: 38ch; }
.colo-body a { color: var(--ink); }
.colo-body a:hover { color: var(--rot); }
.colo-body em { font-family: var(--serif); font-variation-settings: "opsz" 14, "wght" 460, "SOFT" 0, "WONK" 1; }

/* ============================================================
   GUIDE PAGE
   ============================================================ */
.guide-main { max-width: 880px; margin: 0 auto; padding: clamp(40px, 7vh, 80px) var(--pad) 120px; }
.guide-main > section { margin-top: clamp(48px, 7vh, 72px); }
.guide-title {
  font-size: clamp(44px, 7vw, 88px); line-height: 0.98;
  font-variation-settings: "wdth" 118, "wght" 800;
  font-weight: normal;
  margin-top: 12px;
}
.guide-kicker { margin-bottom: 6px; display: block; }
.guide-h2 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 60, "wght" 540, "SOFT" 0, "WONK" 0;
  font-weight: normal;
  font-size: clamp(26px, 3.4vw, 38px);
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-bottom: 18px;
}
.guide-main p { max-width: 68ch; }
.guide-main p + p { margin-top: 12px; }

.swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 20px 0; }
.swatch { border: 1px solid var(--line-soft); }
.swatch-chip { height: 84px; }
.swatch-meta { padding: 10px 12px; font-family: var(--mono); font-size: 12px; }
.swatch-meta strong { display: block; font-weight: normal; color: var(--ink); }
.swatch-meta span { color: var(--grau); }

.type-pair { display: grid; gap: 16px; margin: 20px 0; }
.type-row { border: 1px solid var(--line-soft); padding: 18px 20px; display: grid; gap: 6px; }
.type-row .demo { font-size: clamp(28px, 4vw, 44px); line-height: 1.05; }
.type-row .why { font-size: 14px; color: var(--grau); max-width: 60ch; }

pre.code {
  background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: 13px; line-height: 1.6;
  padding: 18px 20px; overflow-x: auto;
  margin: 16px 0;
}
pre.code .c { color: #8f8d85; }
pre.code .r { color: #ff7a6e; }

.pass-list, .recipe { list-style: none; counter-reset: item; margin: 16px 0; display: grid; gap: 14px; }
.pass-list li, .recipe li {
  counter-increment: item;
  display: grid; grid-template-columns: 48px 1fr; gap: 14px;
  border-top: 1px solid var(--line-soft); padding-top: 12px;
}
.pass-list li::before, .recipe li::before {
  content: counter(item, decimal-leading-zero);
  font-family: var(--mono); color: var(--rot); font-size: 14px;
}
.pass-list strong, .recipe strong { font-variation-settings: "wdth" 104, "wght" 640; font-weight: normal; }

.back-link {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; text-decoration: none;
  color: var(--grau);
}
.back-link:hover { color: var(--rot); }
.no-images-flag {
  display: inline-block; margin-top: 16px;
  border: 1px solid var(--rot); color: var(--rot);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 8px 14px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .instrument-panel { grid-template-columns: 1fr 1fr; }
  .axis-meta { grid-column: 1 / -1; }
  .sheet-head { grid-template-columns: 1fr; align-items: start; }
  .axislab { grid-template-columns: 1fr; }
  .ledger-row { grid-template-columns: 90px 1fr auto; }
  .ledger-detail { display: none; }
  .colo-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .site-nav { gap: 12px; }
  .site-nav a { font-size: 10.5px; letter-spacing: 0.06em; }
  .instrument-panel { grid-template-columns: 1fr; gap: 20px; }
  .hero-stage { min-height: 32vh; }
  .wf-size { flex-basis: 30px; }
  .kern-pair { font-size: 56px; }
  .glyph-grid { grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); }
  .glyph-cell { font-size: 22px; }
  .p-note { font-size: 17px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .wf-row { opacity: 1; transform: none; }
  .hero { cursor: default; }
}
