body.chess-page {
  color-scheme: light;
  --chess-paper: #f4f0e7;
  --chess-surface: #fffdf8;
  --chess-surface-soft: #f8f4eb;
  --chess-ink: #17201b;
  --chess-muted: #5d6861;
  --chess-accent: #b4542d;
  --chess-green: #315f4a;
  --chess-green-dark: #214435;
  --chess-blue: #3d6573;
  --chess-olive: #77743c;
  --chess-plum: #76596e;
  --chess-grid: #d9d5cb;
  --chess-focus: #8d4300;
  --chess-light-square: #eadfc9;
  --chess-dark-square: #6f8d78;
  --chess-font-display: var(--font, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  --chess-shadow-card:
    0 0 0 1px rgba(0, 0, 0, 0.06),
    0 2px 4px -1px rgba(0, 0, 0, 0.07),
    0 22px 54px rgba(47, 48, 40, 0.09);
  --chess-shadow-control:
    0 0 0 1px rgba(0, 0, 0, 0.08),
    0 1px 2px -1px rgba(0, 0, 0, 0.08),
    0 2px 4px rgba(0, 0, 0, 0.04);
}

* { box-sizing: border-box; }

body.chess-page {
  scroll-behavior: smooth;
  background: var(--chess-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.chess-page {
  margin: 0;
  overflow-x: clip;
  color: var(--chess-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.68;
}

.chess-story button, .chess-story input { font: inherit; }
.chess-story a { color: var(--chess-green); text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
.chess-story a:hover { color: var(--chess-accent); }
.chess-story a:focus-visible, .chess-story button:focus-visible, .chess-story summary:focus-visible, .chess-story .option-card:has(input:focus-visible) {
  border-radius: 6px;
  outline: 3px solid color-mix(in srgb, var(--chess-focus) 42%, transparent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--chess-ink);
  color: #fff;
  transform: translateY(-160%);
  transition-property: transform;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}
.skip-link:focus { transform: translateY(0); }

.chess-story .site-header {
  display: flex;
  width: min(calc(100% - 32px), 1180px);
  min-height: 64px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(23, 32, 27, 0.16);
  color: var(--chess-muted);
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.chess-story .wordmark {
  color: var(--chess-ink);
  font-family: var(--chess-font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
  text-transform: none;
}

.hero {
  width: min(calc(100% - 32px), 1120px);
  margin: 0 auto;
  padding: clamp(72px, 12vw, 150px) 0 clamp(72px, 9vw, 116px);
}
.hero-kicker, .module-kicker {
  display: block;
  margin: 0 0 12px;
  color: var(--chess-accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.hero-meta {
  margin: 0 0 18px;
  color: var(--chess-muted);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.chess-story h1, .chess-story h2, .chess-story h3 {
  font-family: var(--chess-font-display);
  font-weight: 700;
  font-kerning: normal;
  letter-spacing: -0.035em;
  line-height: 1.12;
  text-wrap: balance;
}
.hero h1 {
  max-width: 1050px;
  margin: 0 0 28px;
  font-size: clamp(2.25rem, 7vw, 5rem);
  font-weight: 760;
  letter-spacing: -0.04em;
  line-height: 1.18;
}
.standfirst {
  max-width: 66ch;
  margin: 0;
  color: #344039;
  font-size: clamp(1.12rem, 2vw, 1.45rem);
  line-height: 1.55;
  text-wrap: pretty;
}
.byline {
  margin: 28px 0 0;
  color: var(--chess-muted);
  font-size: 0.82rem;
}

.article-body { padding-bottom: 100px; }
.article-body > p,
.article-body > h2,
.article-body > h3,
.article-body > ul,
.article-body > ol {
  width: min(calc(100% - 32px), 690px);
  margin-left: auto;
  margin-right: auto;
}
.opening-copy {
  width: min(calc(100% - 32px), 840px);
  margin: 0 auto clamp(48px, 7vw, 76px);
}
.opening-copy > p {
  margin: 0 0 1.3em;
  text-wrap: pretty;
}
.article-body > h2 {
  margin-top: clamp(72px, 10vw, 116px);
  margin-bottom: 24px;
  font-size: clamp(2rem, 4.8vw, 3.5rem);
}
.article-body > h3 {
  margin-top: 52px;
  margin-bottom: 16px;
  font-size: clamp(1.45rem, 3vw, 2rem);
}
.article-body > p { margin-top: 0; margin-bottom: 1.3em; }
.article-body > p, .article-body li, figcaption, .module-heading p, .module-note { text-wrap: pretty; }
.article-body > ul, .article-body > ol { padding-left: 1.25em; }
.article-body li { margin-bottom: 0.75em; }

.chess-methods {
  width: min(calc(100% - 32px), 690px);
  margin: clamp(64px, 9vw, 104px) auto 0;
  padding: clamp(26px, 5vw, 44px);
  border-radius: 24px;
  background: var(--chess-surface-soft);
  box-shadow: var(--chess-shadow-card);
}
.chess-methods h2 {
  margin: 8px 0 24px;
  font-size: clamp(2rem, 4.8vw, 3.5rem);
}
.chess-methods p:last-child { margin-bottom: 0; }

.wide-module {
  width: min(calc(100% - 32px), 1120px);
  margin: clamp(48px, 8vw, 88px) auto;
  border-radius: 28px;
  background: var(--chess-surface);
  box-shadow: var(--chess-shadow-card);
}
.data-card, .transfer-card, .causal-card { min-width: 0; padding: clamp(22px, 5vw, 52px); }
.module-heading { max-width: 790px; margin-bottom: 32px; }
.module-heading h2, .memory-card h2 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 4.5vw, 3.25rem);
}
.module-heading p, .module-note { margin: 0; color: var(--chess-muted); }

.transfer-card figcaption, .causal-card figcaption { max-width: 740px; margin-bottom: 28px; }
.transfer-card figcaption strong, .causal-card figcaption strong {
  display: block;
  font-family: var(--chess-font-display);
  font-size: clamp(1.55rem, 3.4vw, 2.55rem);
  font-weight: 500;
  line-height: 1.08;
  text-wrap: balance;
}
.transfer-card figcaption p {
  max-width: 66ch;
  margin: 14px 0 0;
  color: var(--chess-muted);
  line-height: 1.55;
  text-wrap: pretty;
}
.transfer-direction {
  display: grid;
  grid-template-columns: minmax(150px, auto) minmax(80px, 1fr) minmax(150px, auto);
  gap: 14px;
  margin-bottom: 14px;
  align-items: center;
  color: var(--chess-muted);
  font-size: 0.74rem;
  line-height: 1.35;
}
.transfer-direction span:last-child { text-align: right; }
.transfer-direction b { color: var(--chess-ink); font-weight: 800; }
.transfer-direction i {
  position: relative;
  display: block;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--chess-green), color-mix(in srgb, var(--chess-accent) 58%, white));
}
.transfer-direction i::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -1px;
  width: 9px;
  height: 9px;
  border-top: 3px solid color-mix(in srgb, var(--chess-accent) 58%, white);
  border-right: 3px solid color-mix(in srgb, var(--chess-accent) 58%, white);
  transform: translateY(-50%) rotate(45deg);
}
.transfer-scale {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.transfer-step {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
  min-height: 160px;
  padding: 18px;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.07);
}
.transfer-step--1 { background: color-mix(in srgb, var(--chess-green) 22%, white); }
.transfer-step--2 { background: color-mix(in srgb, var(--chess-green) 13%, white); }
.transfer-step--3 { background: color-mix(in srgb, var(--chess-accent) 7%, white); }
.transfer-step--4 { background: color-mix(in srgb, var(--chess-accent) 13%, white); }
.transfer-step__index {
  display: grid;
  width: 28px;
  height: 28px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.72);
  color: var(--chess-green-dark);
  font-size: 0.72rem;
  font-weight: 850;
}
.transfer-step > b { align-self: end; font-size: 0.9rem; line-height: 1.3; }
.transfer-step > small { margin-top: 8px; color: var(--chess-muted); font-size: 0.72rem; line-height: 1.35; }
.transfer-card .module-note { margin-top: 18px; max-width: 72ch; }
.transfer-card .module-note strong { color: var(--chess-ink); }

.causal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.causal-grid > div {
  min-height: 180px;
  padding: 22px;
  border-radius: 18px;
  background: var(--chess-surface-soft);
  box-shadow: var(--chess-shadow-control);
}
.causal-grid b { display: block; margin-bottom: 8px; color: var(--chess-green-dark); }
.causal-grid span { display: block; color: var(--chess-muted); font-size: 0.9rem; }

.memory-shell { padding: 10px; background: color-mix(in srgb, var(--chess-green) 12%, var(--chess-paper)); }
.memory-card {
  min-height: 530px;
  padding: clamp(20px, 5vw, 48px);
  border-radius: 18px;
  background: var(--chess-surface);
  box-shadow: var(--chess-shadow-control);
}
.memory-card > * { max-width: 720px; margin-left: auto; margin-right: auto; }
.memory-card--paused { min-height: 270px; }
.memory-card--reading { min-height: 0; }
.integrity-note, .status-note {
  padding: 12px 15px;
  border-left: 3px solid var(--chess-green);
  background: var(--chess-surface-soft);
  color: #354139;
  font-size: 0.9rem;
}
.button-row, .confirm-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.button {
  min-height: 48px;
  padding: 12px 16px;
  border: 0;
  border-radius: 13px;
  cursor: pointer;
  font-weight: 760;
  box-shadow: var(--chess-shadow-control);
  transition-property: scale, background-color, box-shadow;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}
.button:active:not(:disabled) { scale: 0.96; }
.button-primary { background: var(--chess-green); color: #fff; }
.button-primary:hover:not(:disabled) { background: var(--chess-green-dark); }
.button-secondary { background: var(--chess-surface-soft); color: var(--chess-ink); }
.button:disabled { cursor: not-allowed; opacity: 0.46; }

.trial-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.trial-count, .countdown { color: var(--chess-muted); font-size: 0.84rem; font-variant-numeric: tabular-nums; font-weight: 750; }
.countdown { display: grid; min-width: 48px; min-height: 48px; place-items: center; border-radius: 50%; background: var(--chess-surface-soft); color: var(--chess-green-dark); box-shadow: var(--chess-shadow-control); }
.exposure-wrap { display: grid; justify-items: center; gap: 16px; }
.board {
  display: grid;
  width: min(100%, 480px);
  aspect-ratio: 1 / 1;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  grid-template-rows: repeat(8, minmax(0, 1fr));
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.1), 0 8px 24px rgba(31,41,34,.12);
}
.board-compact { width: 100%; border-radius: 10px; }
.square { display: grid; min-width: 0; min-height: 0; place-items: center; user-select: none; }
.square-light { background: var(--chess-light-square); }
.square-dark { background: var(--chess-dark-square); }
.piece-svg { display: block; width: 82%; height: 82%; overflow: visible; filter: drop-shadow(0 1px 0 rgba(0,0,0,.13)); }
.piece-white { --piece-fill: #fffdf6; --piece-stroke: #17201b; }
.piece-black { --piece-fill: #25342c; --piece-stroke: #101813; }
.piece-body { fill: var(--piece-fill); stroke: var(--piece-stroke); stroke-width: 1.4; stroke-linejoin: round; }
.piece-detail { fill: none; stroke: var(--piece-stroke); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.options-fieldset { padding: 0; border: 0; }
.options-fieldset legend { margin-bottom: 12px; color: var(--chess-muted); font-size: .85rem; }
.option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.option-card { padding: 8px; border-radius: 18px; background: var(--chess-surface-soft); cursor: pointer; box-shadow: var(--chess-shadow-control); }
.option-card:has(input:checked) { background: color-mix(in srgb, var(--chess-green) 15%, white); box-shadow: 0 0 0 2px var(--chess-green); }
.option-meta { display: flex; min-height: 44px; align-items: center; gap: 9px; padding: 7px 6px 0; }
.option-meta input { width: 20px; height: 20px; accent-color: var(--chess-green); }
.option-letter { font-size: .86rem; font-weight: 750; }
.result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 24px 0; }
.result-pair { padding: 16px; border-radius: 20px; background: var(--chess-surface-soft); }
.result-pair h3 { margin: 0 0 14px; font-size: 1.25rem; }
.result-pair p { font-size: .88rem; }

.evidence-reading-note { max-width: 72ch; margin: 0 0 24px; padding: 16px 18px; border-radius: 14px; background: color-mix(in srgb, var(--chess-green) 8%, white); color: var(--chess-muted); }
.evidence-reading-note strong { color: var(--chess-ink); }
.evidence-groups { display: grid; gap: 22px; }
.evidence-tier {
  --evidence-accent: var(--chess-muted);
  --evidence-wash: color-mix(in srgb, var(--chess-muted) 7%, var(--chess-surface));
  --evidence-card: color-mix(in srgb, var(--chess-muted) 2%, var(--chess-surface));
  min-width: 0;
  padding: 14px;
  border-radius: 28px;
  background: var(--evidence-wash);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--evidence-accent) 14%, transparent),
    0 12px 30px rgba(47, 48, 40, 0.055);
}
.evidence-tier--higher {
  --evidence-accent: var(--chess-green);
  --evidence-wash: color-mix(in srgb, var(--chess-green) 8%, var(--chess-surface));
  --evidence-card: color-mix(in srgb, var(--chess-green) 2.5%, var(--chess-surface));
}
.evidence-tier--medium {
  --evidence-accent: var(--chess-olive);
  --evidence-wash: color-mix(in srgb, var(--chess-olive) 10%, var(--chess-surface));
  --evidence-card: color-mix(in srgb, var(--chess-olive) 3%, var(--chess-surface));
}
.evidence-tier--lower {
  --evidence-accent: var(--chess-plum);
  --evidence-wash: color-mix(in srgb, var(--chess-plum) 8%, var(--chess-surface));
  --evidence-card: color-mix(in srgb, var(--chess-plum) 2.5%, var(--chess-surface));
}
.evidence-tier__header { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 1.4fr); gap: 22px; margin-bottom: 12px; padding: 4px 6px 12px 14px; border-left: 4px solid var(--evidence-accent); }
.evidence-tier__header h3 { margin: 5px 0 0; font-family: inherit; font-size: 1.08rem; font-weight: 850; letter-spacing: 0; line-height: 1.25; }
.evidence-tier__header p { margin: 0; align-self: center; color: var(--chess-muted); font-size: .86rem; line-height: 1.5; }
.evidence-tier__count { display: inline-flex; width: fit-content; padding: 3px 8px; border-radius: 999px; background: color-mix(in srgb, var(--evidence-accent) 12%, transparent); color: color-mix(in srgb, var(--evidence-accent) 72%, var(--chess-ink)); font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.evidence-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.evidence-list > :only-child { grid-column: 1 / -1; }
.evidence-item { display: grid; gap: 12px; padding: 20px; border-radius: 14px; background: var(--evidence-card); box-shadow: inset 4px 0 var(--evidence-accent), var(--chess-shadow-control); }
.evidence-item h4 { margin: 0; font-family: inherit; font-size: 1rem; font-weight: 800; letter-spacing: 0; line-height: 1.25; }
.evidence-meta { display: flex; flex-wrap: wrap; gap: 7px; color: var(--chess-muted); font-size: .78rem; }
.evidence-item p { margin: 0; font-size: .88rem; }
.evidence-design { padding-top: 10px; border-top: 1px solid color-mix(in srgb, var(--evidence-accent) 20%, var(--chess-grid)); }

.context-stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.stat-card { padding: 20px; border-radius: 18px; background: var(--chess-surface-soft); box-shadow: var(--chess-shadow-control); }
.stat-card strong { display: block; margin-bottom: 6px; font-family: var(--chess-font-display); font-size: clamp(1.7rem, 3.2vw, 2.6rem); font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-card span { color: var(--chess-muted); font-size: .82rem; }

.data-sequence { margin: clamp(70px, 10vw, 120px) 0; }
.chart { width: 100%; min-height: 320px; }
.chart > svg { display: block; width: 100%; height: auto; overflow: visible; }
.grid-line { stroke: var(--chess-grid); stroke-width: 1; }
.axis-label, .data-label { fill: var(--chess-muted); font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 12px; }
.data-label { fill: var(--chess-ink); font-weight: 750; }
.series-line { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 3; }
.series-dot { stroke: var(--chess-surface); stroke-width: 2; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 18px 0 0; color: var(--chess-muted); font-size: .78rem; }
.legend-item { display: inline-flex; align-items: center; gap: 7px; }
.legend-line { width: 32px; height: 8px; flex: 0 0 auto; overflow: visible; }
.legend-swatch { width: 22px; height: 3px; border-radius: 2px; }
.data-disclosure { width: 100%; min-width: 0; max-width: 100%; margin-top: 22px; overflow: hidden; border-top: 1px solid var(--chess-grid); }
.data-disclosure summary { display: flex; width: fit-content; min-height: 48px; align-items: center; color: var(--chess-green); cursor: pointer; font-size: .84rem; font-weight: 800; }
.table-scroll { width: 100%; min-width: 0; max-width: 100%; overflow-x: auto; padding-bottom: 8px; }
.data-table { width: 100%; border-collapse: collapse; font-size: .78rem; font-variant-numeric: tabular-nums; }
.data-table caption { padding: 8px 0; color: var(--chess-muted); font-weight: 700; text-align: left; }
.data-table th, .data-table td { padding: 9px 10px; border-bottom: 1px solid var(--chess-grid); text-align: right; white-space: nowrap; }
.data-table th { color: var(--chess-muted); font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; }
.data-table th:first-child, .data-table td:first-child { text-align: left; }
.players-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; }
.player-panel { min-width: 0; padding: 20px; border-radius: 18px; background: var(--chess-surface-soft); box-shadow: var(--chess-shadow-control); }
.player-panel h3 { margin: 0 0 6px; font-size: 1.55rem; }
.player-panel > p { margin: 0 0 16px; color: var(--chess-muted); font-size: .82rem; }
.player-list { list-style: none; padding: 0; margin: 0; }
.player-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--chess-grid); }
.player-row:last-child { border-bottom: 0; }
.player-name { display: inline-block; font-size: .86rem; font-weight: 750; }
.player-meta { display: block; margin-top: 2px; color: var(--chess-muted); font-size: .72rem; line-height: 1.45; }
.player-rating { align-self: center; font-variant-numeric: tabular-nums; font-weight: 800; }
#after-memory-first { scroll-margin-top: 24px; }

.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

@media (max-width: 760px) {
  body { font-size: 17px; }
  .hero { padding-top: 72px; }
  .hero h1 { max-width: 16ch; font-size: clamp(2.7rem, 7.2vw, 4.2rem); }
  .wide-module { border-radius: 22px; }
  .data-card, .transfer-card, .causal-card { padding: 22px; }
  .transfer-direction { grid-template-columns: 1fr; gap: 7px; }
  .transfer-direction span:last-child { text-align: left; }
  .transfer-direction i { width: 3px; height: 25px; margin-left: 10px; background: linear-gradient(180deg, var(--chess-green), color-mix(in srgb, var(--chess-accent) 58%, white)); }
  .transfer-direction i::after { top: auto; right: auto; bottom: -1px; left: 50%; transform: translateX(-50%) rotate(135deg); }
  .transfer-scale { grid-template-columns: 1fr; }
  .transfer-step { grid-template-columns: 34px minmax(0, 1fr); grid-template-rows: auto auto; min-height: 0; padding: 15px; }
  .transfer-step__index { grid-row: 1 / 3; margin: 0 6px 0 0; }
  .transfer-step > b { align-self: start; }
  .transfer-step > small { grid-column: 2; }
  .causal-grid, .context-stats, .evidence-list, .players-grid { grid-template-columns: 1fr; }
  .evidence-tier__header { grid-template-columns: 1fr; gap: 8px; }
  .evidence-tier { padding: 12px; border-radius: 24px; }
  .evidence-item { border-radius: 12px; }
  .causal-grid > div { min-height: 0; }
  .chart { min-height: 270px; }
  .memory-shell { padding: 8px; }
  .memory-card { min-height: 460px; padding: 18px; border-radius: 14px; }
  .memory-card--paused { min-height: 270px; }
  .memory-card--reading { min-height: 0; }
  .option-grid, .result-grid { grid-template-columns: 1fr; }
  .option-card { display: grid; grid-template-columns: minmax(0, 1fr) 100px; align-items: center; border-radius: 18px; }
  .button-row .button { width: 100%; }
}

@media (max-width: 390px) {
  .chess-story .site-header, .hero, .opening-copy, .article-body > p, .article-body > h2, .article-body > h3, .article-body > ul, .article-body > ol, .wide-module { width: min(calc(100% - 24px), 1120px); }
  .hero h1 { font-size: clamp(2.55rem, 11vw, 3rem); }
  .wide-module { border-radius: 18px; }
  .data-card, .transfer-card, .causal-card { padding: 18px; }
  .memory-card { padding: 14px; }
  .option-card { grid-template-columns: minmax(0, 1fr) 84px; }
  .axis-label, .data-label { font-size: 10px; }
}

@media (max-width: 350px) {
  .hero h1 { font-size: 2.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}


/* Jazba shell integration */
.chess-page { background: var(--chess-paper); }
.chess-page .site-header { color: var(--text); font-size: initial; letter-spacing: initial; text-transform: none; }
.chess-back-wrap { padding-top: 30px; }
.chess-back-link { color: var(--muted); font-size: 15px; text-decoration: none; }
.chess-back-link:hover { color: var(--accent-dark); }
.chess-story { min-width: 0; }
.chess-story .hero { padding-top: clamp(56px, 8vw, 104px); }
.chess-story .hero .hero-meta {
  max-width: none;
  margin: 0 0 18px;
  color: var(--chess-muted);
  font-size: 0.78rem;
  font-weight: 760;
  line-height: 1.4;
  letter-spacing: 0.08em;
}
.chess-story .hero .hero-kicker {
  max-width: none;
  margin: 0 0 12px;
  color: var(--chess-accent);
  font-size: 0.74rem;
  line-height: 1.4;
  letter-spacing: 0.09em;
}
.chess-story .hero .standfirst {
  max-width: 66ch;
  margin: 0;
  color: #344039;
  font-size: clamp(1.12rem, 2vw, 1.45rem);
  line-height: 1.55;
}
.chess-story .hero .byline {
  max-width: none;
  margin: 28px 0 0;
  color: var(--chess-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}
.chess-story .article-body {
  max-width: none;
  margin-inline: 0;
  padding-bottom: 0;
}
.chess-story .article-body > p,
.chess-story .opening-copy > p,
.chess-story .article-body > ul,
.chess-story .article-body > ol {
  color: var(--chess-ink);
  font-family: var(--font, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  font-size: clamp(19px, 2.2vw, 22px);
  font-weight: 400;
  line-height: 1.72;
}
.chess-story .article-body > ul > li,
.chess-story .article-body > ol > li {
  font: inherit;
}
.chess-story .article-body > p:first-child::first-letter {
  float: none;
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}
.chess-story .article-body > h2,
.chess-story .chess-methods h2 { font-size: clamp(2rem, 4vw, 3rem); }
.chess-story .memory-card > p:not(.module-kicker):not(.integrity-note):not(.status-note),
.chess-story .module-heading p,
.chess-story .transfer-card figcaption p,
.chess-story .chess-methods > p:not(.module-kicker) {
  font-size: 1rem;
  line-height: 1.68;
}
.chess-story .integrity-note,
.chess-story .status-note {
  font-size: 0.9rem;
  line-height: 1.55;
}
.chess-story .transfer-card .module-note {
  margin: 18px 0 0;
  font-size: 1rem;
  line-height: 1.68;
}
.chess-story .result-pair p {
  margin: 0;
  line-height: 1.55;
}
.chess-story .chess-site-end { margin-top: clamp(48px, 7vw, 72px); }
.chess-story .chess-site-end,
.chess-story .chess-site-author {
  background: var(--chess-surface-soft);
  box-shadow: var(--chess-shadow-card);
}
.chess-story .chess-site-end h2,
.chess-story .chess-site-author h2 { color: var(--chess-ink); }
.chess-story .chess-site-end p,
.chess-story .chess-site-author p { color: var(--chess-muted); }
.chess-story .chess-site-author .author-social-link { color: var(--chess-green-dark); }
.chess-page .share-panel { background: var(--chess-surface-soft); }
.chess-page .site-footer {
  border-top-color: color-mix(in srgb, var(--chess-ink) 14%, transparent);
  background: var(--chess-paper);
}
@media (max-width: 760px) { .chess-back-wrap { padding-top: 22px; } }
