/* Worst Move.
   The page is a chess scoresheet: ink rules, notation set in mono, and annotation marks.
   Cool grey paper, a steel-blue board, and exactly one loud colour: the red of a "??".
   Everything that is not the worst move is drawn in ink and steel, never in a second hue. */
:root {
  --bg: #e9edf0;
  --paper: #f7f9fa;
  --ink: #14181d;
  --muted: #55606b;
  --line: #c6ced5;
  --steel: #7b91a4;
  --steel-deep: #4d6477;
  --sq-light: #dde4ea;
  --sq-dark: #7b91a4;
  --blunder: #d92b36;
  --blunder-soft: #fbe3e5;
  --mark-mine: rgba(22, 44, 66, 0.4);
  --mark-punish: rgba(217, 43, 54, 0.62);
  --dot: rgba(20, 24, 29, 0.34);
  --drop: #9fb0be;
  --display: "Bricolage Grotesque", "Arial Narrow", Arial, sans-serif;
  --body: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0e1216; --paper: #161c22; --ink: #e8edf1; --muted: #93a0ac; --line: #2a333c;
    --steel: #6f879b; --steel-deep: #8fa6b9; --sq-light: #aebdca; --sq-dark: #566b7d;
    --blunder: #ff5661; --blunder-soft: #361a1e;
    --mark-mine: rgba(10, 22, 34, 0.5); --mark-punish: rgba(255, 70, 82, 0.66); --drop: #2c3a47;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e1216; --paper: #161c22; --ink: #e8edf1; --muted: #93a0ac; --line: #2a333c;
  --steel: #6f879b; --steel-deep: #8fa6b9; --sq-light: #aebdca; --sq-dark: #566b7d;
  --blunder: #ff5661; --blunder-soft: #361a1e;
  --mark-mine: rgba(10, 22, 34, 0.5); --mark-punish: rgba(255, 70, 82, 0.66); --drop: #2c3a47;
}
/* Fonts are served from this site, so no page view is reported to a font host. */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 400 800; font-stretch: 75% 100%; font-display: swap; src: url(../fonts/bricolage-grotesque.woff2) format("woff2"); }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/dm-mono-400.woff2) format("woff2"); }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/dm-mono-500.woff2) format("woff2"); }
* { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 16px 16px 36px; display: flex; flex-direction: column; gap: 26px; min-height: 100vh; }
main { display: flex; flex-direction: column; gap: 34px; min-width: 0; flex: 1 0 auto; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blunder); outline-offset: 2px; }

/* ---- masthead ---- */
.site-head { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 6px 24px; padding-bottom: 12px; border-bottom: 4px solid var(--ink); }
.site-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; border-bottom: 1px solid var(--ink); }
.brand { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 8.4vw, 3.6rem); line-height: 0.86; letter-spacing: -0.04em; font-stretch: 75%; color: var(--ink); text-decoration: none; text-transform: uppercase; }
.brand .q { color: var(--blunder); margin-left: 0.04em; display: inline-block; transform: rotate(6deg) translateY(-0.03em); transform-origin: 50% 80%; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 2px; margin: 0 -8px -4px; }
.site-nav a, .site-foot nav a { font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); text-decoration: none; }
.site-nav a { padding: 8px; }
.site-nav a:hover, .site-foot nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--blunder); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.tools { display: inline-flex; gap: 6px; margin-left: 8px; }
.icon-btn { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 2px; border: 2px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; padding: 0; }
.icon-btn:hover { background: var(--ink); color: var(--bg); }
.icon-btn svg { width: 17px; height: 17px; display: block; }
.icon-btn .moon, .icon-btn .x { display: none; }
.icon-btn.off .on { display: none; } .icon-btn.off .x { display: block; }
.icon-btn.off { color: var(--muted); border-color: var(--muted); }
:root[data-theme="dark"] .icon-btn .moon { display: block; }
:root[data-theme="dark"] .icon-btn .sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-btn .moon { display: block; }
  :root:not([data-theme="light"]) .icon-btn .sun { display: none; }
}
/* On a phone the sound and theme buttons sit beside the wordmark and the links share one row. */
@media (max-width: 600px) {
  .site-head { padding-right: 84px; }
  .tools { position: absolute; right: 0; top: 0; margin: 0; }
  .site-nav { flex-wrap: nowrap; margin: 0 -84px -4px -5px; width: calc(100% + 89px); justify-content: space-between; }
  .site-nav a { font-size: 0.68rem; letter-spacing: 0.03em; padding: 8px 5px; white-space: nowrap; }
}
.site-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 14px; border-top: 1px solid var(--ink); color: var(--muted); font-size: 0.85rem; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-foot p { margin: 0; max-width: 60ch; }
.site-foot p a { color: inherit; }

/* ---- shared small type ---- */
.meta, .label { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 0; }
/* A section label with a rule running out to the edge, as on a printed form. */
.label { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.label::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.small { font-size: 0.88rem; color: var(--muted); margin: 0; }
.btn { font: inherit; font-weight: 700; padding: 9px 15px; border-radius: 2px; border: 2px solid var(--ink); background: var(--ink); color: var(--bg); cursor: pointer; box-shadow: 3px 3px 0 var(--drop); }
.btn:hover { background: var(--bg); color: var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: none; }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: none; }
.btn.ghost:hover { background: var(--ink); color: var(--bg); }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; min-height: 44px; }

/* ---- game page ---- */
.game { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; align-items: start; }
@media (min-width: 880px) { .game { grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 40px; } }
.boardcol { display: flex; flex-direction: column; gap: 12px; min-width: 0; max-width: 560px; width: 100%; margin: 0 auto; }
.boardhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.prompt { margin: 3px 0 0; font-family: var(--display); font-size: clamp(1.3rem, 5vw, 1.7rem); font-weight: 800; font-stretch: 85%; letter-spacing: -0.02em; line-height: 1.08; text-wrap: balance; }
.prompt b { color: var(--blunder); }
.pips { display: flex; gap: 5px; flex: none; padding-bottom: 5px; }
.pips i { width: 15px; height: 15px; border: 2px solid var(--ink); }
.pips i.used { background: var(--ink); }
.pips i.used.t0 { background: var(--blunder); border-color: var(--blunder); }

.board { container-type: inline-size; position: relative; width: calc(100% - 7px); aspect-ratio: 1; border: 3px solid var(--ink); background: var(--sq-dark); box-shadow: 7px 7px 0 var(--drop); margin-bottom: 7px; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
:root[data-theme="dark"] .board { border-color: #05080a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .board { border-color: #05080a; } }
.squares { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(8, 1fr); }
.sq { position: relative; border: 0; padding: 0; margin: 0; min-width: 0; font: inherit; color: inherit; cursor: default; background: var(--sq-light); -webkit-tap-highlight-color: transparent; }
.sq.dark { background: var(--sq-dark); }
.sq.grab { cursor: grab; touch-action: none; }
.sq.target { cursor: pointer; }
.sq:focus-visible { outline: 3px solid var(--blunder); outline-offset: -3px; z-index: 1; }
.sq::before, .sq::after { content: ""; position: absolute; pointer-events: none; }
.sq::before { inset: 0; }
.sq.mine::before { background: var(--mark-mine); }
.sq.punish::before { background: var(--mark-punish); }
.sq.sel::before, .sq.over::before { background: var(--mark-mine); box-shadow: inset 0 0 0 0.8cqw #14181d; }
.sq.target::after { width: 30%; height: 30%; left: 35%; top: 35%; border-radius: 50%; background: var(--dot); }
.sq.target.occ::after { width: 88%; height: 88%; left: 6%; top: 6%; background: none; border: 1cqw solid var(--dot); }
.sq .co { position: absolute; font-family: var(--mono); font-size: max(9px, 2.3cqw); line-height: 1; color: #14181d; opacity: 0.62; pointer-events: none; }
.sq .co.f { right: 4%; bottom: 4%; }
.sq .co.r { left: 5%; top: 5%; }

.pieces { position: absolute; inset: 0; pointer-events: none; }
.pc { position: absolute; left: 0; top: 0; width: 12.5%; height: 12.5%; background: center / 94% no-repeat; will-change: transform; filter: drop-shadow(0 0.4cqw 0.3cqw rgba(10, 14, 18, 0.28)); transition: transform 240ms cubic-bezier(0.2, 0.7, 0.2, 1), opacity 140ms linear; }
.pc.moving { z-index: 2; }
.pc.in { opacity: 0; }
/* A captured piece stays put until the capturing piece arrives, then drops out. */
.pc.out { opacity: 0; transition: opacity 110ms linear 170ms; }
.pc.drag { z-index: 3; transition: none; filter: drop-shadow(0 1.6cqw 1.2cqw rgba(10, 14, 18, 0.4)); }
.pieces.still .pc { transition: none; }
.wK { background-image: url(../img/pieces/wK.svg); } .wQ { background-image: url(../img/pieces/wQ.svg); }
.wR { background-image: url(../img/pieces/wR.svg); } .wB { background-image: url(../img/pieces/wB.svg); }
.wN { background-image: url(../img/pieces/wN.svg); } .wP { background-image: url(../img/pieces/wP.svg); }
.bK { background-image: url(../img/pieces/bK.svg); } .bQ { background-image: url(../img/pieces/bQ.svg); }
.bR { background-image: url(../img/pieces/bR.svg); } .bB { background-image: url(../img/pieces/bB.svg); }
.bN { background-image: url(../img/pieces/bN.svg); } .bP { background-image: url(../img/pieces/bP.svg); }

.promo { position: absolute; inset: 0; background: rgba(15, 19, 23, 0.74); display: flex; align-items: center; justify-content: center; gap: 2.4cqw; z-index: 5; }
.pc-btn { width: 19cqw; height: 19cqw; border-radius: 2px; border: 2px solid #14181d; background: #eceff2 center / 84% no-repeat; cursor: pointer; padding: 0; box-shadow: 1cqw 1cqw 0 #14181d; }
.pc-btn:hover { background-color: #fff; }

/* Finding the worst move: the board flinches and flashes red. */
.board::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 4; opacity: 0; box-shadow: inset 0 0 0 1.4cqw var(--blunder); }
.board.hit::after { opacity: 1; }

/* ---- the scoresheet ---- */
.scoresheet { background: var(--paper); border: 2px solid var(--ink); box-shadow: 7px 7px 0 var(--drop); margin: 0 7px 7px 0; min-width: 0; }
.scoresheet > * { padding: 18px 20px; }
.scoresheet > * + * { border-top: 1px solid var(--ink); }
.verdict { position: relative; min-height: 11.5rem; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
/* The move you played, set like a line of notation with its annotation mark. */
.hero { font-family: var(--display); font-weight: 800; font-stretch: 75%; font-size: clamp(3.4rem, 15vw, 5.4rem); line-height: 0.88; letter-spacing: -0.02em; margin: 0 0 10px -0.03em; white-space: nowrap; }
.hero .ann { color: var(--steel-deep); margin-left: 0.04em; }
.verdict.t3 .hero .ann { color: var(--muted); }
.verdict.hit .hero, .verdict.hit .hero .ann { color: var(--blunder); }
.verdict.hit .hero .ann { display: inline-block; transform-origin: 30% 80%; }
.verdict .big { font-family: var(--display); font-weight: 800; font-size: 1.25rem; line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }
.verdict .sub { color: var(--muted); font-size: 0.95rem; margin-top: 4px; max-width: 46ch; }
.verdict.hit { background: var(--blunder-soft); }

/* A ruler with one tick per legal move. Tries are numbered pins; the worst move sits at the red end. */
.meter { display: flex; align-items: flex-end; min-height: 46px; padding: 21px 9px 0 10px; border-bottom: 2px solid var(--ink); }
.meter i { position: relative; flex: 1 1 0; min-width: 0; height: 9px; border-left: 1px solid var(--muted); opacity: 1; }
.meter i:nth-child(5n + 1) { height: 15px; }
.meter i:first-child { border-left: 3px solid var(--blunder); height: 22px; }
.meter i.pin { height: calc(26px + var(--lvl, 0) * 22px); border-left: 3px solid var(--ink); }
.meter i.pin.t0 { border-left-color: var(--blunder); }
.meter i.pin b { position: absolute; left: -11px; bottom: 100%; width: 19px; height: 19px; display: grid; place-items: center; font: 500 0.7rem/1 var(--mono); font-style: normal; background: var(--ink); color: var(--paper); }
.meter i.pin.t0 b { background: var(--blunder); color: #fff; }
.meter i.pin.now b { outline: 2px solid var(--ink); outline-offset: 2px; }
.meter i.pin.t0.now b { outline-color: var(--blunder); }
.meterends { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-top: 7px; }
.meterends span:first-child { color: var(--blunder); }

ol.sheet { list-style: none; margin: 0; padding: 0; }
ol.sheet li { display: grid; grid-template-columns: 1.6em minmax(5.6em, auto) 1fr; gap: 10px; align-items: baseline; min-height: 2.5em; padding: 7px 0 6px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 0.95rem; font-variant-numeric: tabular-nums; }
ol.sheet li:first-child { padding-top: 0; min-height: 2.1em; }
ol.sheet li:last-child { border-bottom: 0; padding-bottom: 0; }
ol.sheet .no { color: var(--muted); }
ol.sheet .mv { font-weight: 500; font-size: 1.08rem; }
ol.sheet .ann { color: var(--steel-deep); }
ol.sheet .rk { color: var(--muted); text-align: right; font-size: 0.85rem; }
ol.sheet li.t0 .mv, ol.sheet li.t0 .ann, ol.sheet li.t0 .rk { color: var(--blunder); }

.done .row { margin-top: 2px; }
.done .small { margin-top: 10px; }
.share { font-family: var(--mono); font-size: 0.95rem; white-space: pre-wrap; background: var(--bg); border: 1px dashed var(--muted); padding: 10px 12px; margin: 0 0 12px; user-select: all; }
/* A rubber stamp across the corner of the sheet. Red only when the worst move was found. */
.stamp { display: inline-block; margin: 2px 0 16px 2px; padding: 6px 12px 5px; border: 3px double currentColor; color: var(--muted); font-family: var(--display); font-weight: 800; font-stretch: 75%; font-size: 1.35rem; line-height: 1; letter-spacing: 0.06em; text-transform: uppercase; transform: rotate(-4deg); transform-origin: 0 50%; }
.stamp.hit { color: var(--blunder); }

/* Hard mode switch: a tick box drawn like one on a paper form. */
.switch { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 600; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .box { width: 18px; height: 18px; border: 2px solid var(--ink); display: grid; place-items: center; flex: none; }
.switch input:checked + .box::after { content: ""; width: 10px; height: 10px; background: var(--blunder); }
.switch input:focus-visible + .box { outline: 3px solid var(--blunder); outline-offset: 2px; }
.switch input:disabled ~ span { opacity: 0.5; }
.switch:has(input:disabled) { cursor: default; }
.switch small { font-family: var(--mono); font-weight: 400; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-left: 4px; }

.statline { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.statline:empty { display: none; }
.statline b { font-family: var(--display); font-stretch: 75%; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.statline a, .done .small a { color: var(--ink); text-decoration-color: var(--blunder); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.statline a { margin-left: auto; }

/* ---- every legal move, ranked ---- */
.fulllist { border-top: 4px solid var(--ink); padding-top: 14px; scroll-margin-top: 12px; }
.fulllist h2, .prose.wide h2 { font-family: var(--display); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.01em; margin: 0 0 4px; }
.tablewrap { overflow-x: auto; margin-top: 12px; max-width: 680px; }
.fulllist table, .ledger { border-collapse: collapse; width: 100%; font-family: var(--mono); font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.fulllist th, .ledger th { font-size: 0.72rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); text-align: left; padding: 6px 12px 6px 0; border-bottom: 1px solid var(--ink); white-space: nowrap; }
.fulllist td, .ledger td { padding: 5px 12px 5px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.fulllist td.no { color: var(--muted); width: 3em; }
.fulllist td.mv button { font: inherit; font-weight: 500; font-size: 1.02rem; color: inherit; background: none; border: 0; padding: 4px 0; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.fulllist td.mv button:hover { text-decoration-color: var(--ink); }
.fulllist .ann { color: var(--steel-deep); }
.fulllist td.yours { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; text-align: right; padding-right: 0; }
.fulllist tr.tried td { background: var(--paper); font-weight: 500; }
.fulllist tr.tried td:first-child { box-shadow: inset 3px 0 0 var(--ink); padding-left: 8px; }
.fulllist tr.t0 td, .fulllist tr.t0 .ann { color: var(--blunder); }
.fulllist tr.t0.tried td:first-child { box-shadow: inset 3px 0 0 var(--blunder); }

/* ---- archive and stats pages ---- */
.prose.wide { max-width: 760px; }
.ledger { margin: 14px 0 18px; }
.ledger td.no { font-weight: 500; }
.ledger td.date { color: var(--muted); }
.ledger td.marks span { display: inline-block; min-width: 1.6em; font-weight: 500; color: var(--steel-deep); }
.ledger td.marks .t0, .ledger td.result.hit { color: var(--blunder); }
.ledger td.go { text-align: right; padding-right: 0; }
.ledger tr.today td { background: var(--paper); }
.ledger tr.today td:first-child { box-shadow: inset 3px 0 0 var(--ink); padding-left: 8px; }
@media (max-width: 560px) { .ledger td.date, .ledger th:nth-child(2) { display: none; } }
.figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 20px 0 8px; border-top: 4px solid var(--ink); border-bottom: 1px solid var(--ink); }
.figures div { padding: 12px 14px 10px 0; }
.figures div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.figures dt { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.figures dd { margin: 2px 0 0; font-family: var(--display); font-weight: 800; font-stretch: 75%; font-size: clamp(2.6rem, 11vw, 4.2rem); line-height: 0.95; letter-spacing: -0.03em; }
@media (min-width: 620px) { .figures { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 619px) { .figures div:nth-child(3) { padding-left: 0; border-left: 0; } .figures div:nth-child(n + 3) { border-top: 1px solid var(--line); } }
.prose ol.hist { list-style: none; padding: 0; margin: 12px 0 10px; }
.hist li { display: grid; grid-template-columns: 1.4em 1fr 2.2em; gap: 10px; align-items: center; margin: 0 0 6px; font-family: var(--mono); }
.hist .k { color: var(--muted); }
.hist .track { display: block; height: 22px; border-left: 2px solid var(--ink); }
.hist .bar { display: block; height: 100%; background: var(--ink); }
.hist li.today .bar { background: var(--blunder); }
.hist .n { text-align: right; font-weight: 500; }

/* ---- ad slots ----
   Each slot reserves its height before the ad loads, so nothing on the page jumps.
   None is above or beside the board. With no AdSense id configured they are hidden. */
.ad-slot { position: relative; display: flex; align-items: center; justify-content: center; margin: 0 auto; width: 100%; overflow: hidden; }
.ad-slot .ad-label { position: absolute; left: 0; top: -1.5em; font-family: var(--mono); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.ad-wide { max-width: 728px; height: 100px; margin-top: 1.2em; }
@media (min-width: 760px) { .ad-wide { height: 90px; } }
.ad-box { display: none; width: 300px; height: 250px; margin-top: 2em; }
@media (min-width: 880px) { .ad-box { display: flex; } }
.sidecol { min-width: 0; }

/* ---- the three-step strip under the game ---- */
.idea { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 4px solid var(--ink); }
.idea > div { padding: 16px 0 14px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 2.6rem 1fr; column-gap: 6px; }
.idea .num { grid-row: span 2; margin: 0; font-family: var(--display); font-weight: 800; font-stretch: 75%; font-size: 2.6rem; line-height: 0.9; color: var(--steel); }
.idea h2 { font-family: var(--display); font-size: 1.1rem; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 4px; }
.idea p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.idea a, .prose a { color: var(--ink); text-decoration-color: var(--blunder); text-decoration-thickness: 2px; text-underline-offset: 3px; }
@media (min-width: 760px) {
  .idea { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .idea > div { padding: 18px 22px 4px 0; border-bottom: 0; }
  .idea > div + div { padding-left: 22px; border-left: 1px solid var(--line); }
}

/* ---- article pages ---- */
.prose { max-width: 68ch; padding: 4px 0 20px; }
.prose h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 8vw, 3.8rem); line-height: 0.92; letter-spacing: -0.035em; font-stretch: 75%; text-transform: uppercase; margin: 6px 0 16px; text-wrap: balance; }
.prose h2 { font-family: var(--display); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.01em; margin: 34px 0 8px; padding-top: 12px; border-top: 1px solid var(--ink); }
.prose p, .prose li { margin: 0 0 12px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 12px; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--steel-deep); font-family: var(--mono); font-size: 0.9em; }
.prose .lede { font-size: 1.2rem; line-height: 1.4; color: var(--muted); text-wrap: pretty; }
.prose code { white-space: nowrap; font-family: var(--mono); font-size: 0.9em; background: var(--paper); border: 1px solid var(--line); padding: 1px 5px; }
.prose table { border-collapse: collapse; width: 100%; margin: 0 0 14px; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 500; border-bottom-color: var(--ink); }
.prose .updated { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }

@keyframes wm-shake {
  0%, 100% { transform: translateX(0) rotate(0); }
  15% { transform: translateX(-1.6%) rotate(-0.7deg); } 30% { transform: translateX(1.5%) rotate(0.6deg); }
  45% { transform: translateX(-1.1%) rotate(-0.4deg); } 60% { transform: translateX(0.8%) rotate(0.3deg); }
  75% { transform: translateX(-0.4%); }
}
@keyframes wm-flash { 0% { opacity: 0; background: rgba(217, 43, 54, 0.5); } 12% { opacity: 1; background: rgba(217, 43, 54, 0.5); } 55% { opacity: 1; background: transparent; } 100% { opacity: 0; background: transparent; } }
@keyframes wm-set { 0% { transform: translateY(0.18em); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes wm-mark { 0% { transform: scale(2.4) rotate(-14deg); opacity: 0; } 60% { transform: scale(0.92) rotate(3deg); opacity: 1; } 100% { transform: none; } }
@keyframes wm-stamp { 0% { transform: rotate(-4deg) scale(2.2); opacity: 0; } 55% { transform: rotate(-4deg) scale(0.94); opacity: 1; } 100% { transform: rotate(-4deg) scale(1); } }

@media (prefers-reduced-motion: no-preference) {
  .verdict { transition: background-color 0.2s; }
  .sq::before { transition: background-color 0.15s; }
  .board.hit { animation: wm-shake 0.45s ease-in-out; }
  .board.hit::after { animation: wm-flash 1.1s ease-out forwards; }
  .verdict.fresh .hero { animation: wm-set 0.22s ease-out; }
  .verdict.fresh .hero .ann { display: inline-block; animation: wm-mark 0.38s 0.12s cubic-bezier(0.2, 0.9, 0.3, 1.2) backwards; }
  .stamp { animation: wm-stamp 0.34s 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.2) backwards; }
  .brand:hover .q { animation: wm-mark 0.4s ease-out; }
}
@media (prefers-reduced-motion: reduce) {
  .pc, .pc.out { transition: none; }
}
