/* Road-sign palette: asphalt neutrals with a warning-sign yellow. */
:root {
  --ground: #f3f4f1;
  --surface: #ffffff;
  --ink: #1c2126;
  --muted: #59626b;
  --line: #d5d9d6;
  --sign: #f2b705;
  --sign-ink: #1c2126;
  --link: #0b5c8a;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #15191d;
    --surface: #1e2429;
    --ink: #e9ecea;
    --muted: #a0a9b1;
    --line: #333b43;
    --sign: #f2b705;
    --sign-ink: #15191d;
    --link: #7cc4ee;
  }
}
:root[data-theme="dark"] {
  --ground: #15191d;
  --surface: #1e2429;
  --ink: #e9ecea;
  --muted: #a0a9b1;
  --line: #333b43;
  --sign: #f2b705;
  --sign-ink: #15191d;
  --link: #7cc4ee;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 1.0625rem/1.65 Barlow, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--link); text-underline-offset: 2px; }
a:focus-visible { outline: 3px solid var(--sign); outline-offset: 2px; }
.top, main, .foot { max-width: 46rem; margin: 0 auto; padding: 0 16px; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1rem; padding-bottom: 1rem; border-bottom: 4px dashed var(--line); }
.brand { font: 700 1.25rem/1 "Barlow Condensed", "Arial Narrow", sans-serif; letter-spacing: .02em; text-transform: uppercase; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: .6rem; }
.plate { background: var(--sign); color: var(--sign-ink); padding: .3rem .5rem; border-radius: 4px; border: 2px solid var(--sign-ink); }
.by { font-size: .95rem; color: var(--muted); }
h1, h2, h3 { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 700; line-height: 1.1; text-wrap: balance; }
h1 { font-size: clamp(2rem, 6vw, 2.9rem); margin: 2rem 0 .75rem; }
h2 { font-size: 1.6rem; margin: 2.5rem 0 .5rem; }
h3 { font-size: 1.25rem; margin: 1.5rem 0 .25rem; }
.lede { font-size: 1.2rem; color: var(--muted); margin: 0 0 1.5rem; }
.crumb { font-size: .9rem; color: var(--muted); margin: 1.5rem 0 0; }
figure { margin: 1.5rem 0; }
figure img, .card img { width: 100%; height: auto; display: block; border-radius: 6px; border: 1px solid var(--line); background: #000; }
figcaption { font-size: .9rem; color: var(--muted); margin-top: .4rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; margin: 1.5rem 0; }
.facts div { background: var(--surface); padding: .7rem .9rem; }
.facts dt { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: .15rem 0 0; font-weight: 500; }
.play { display: inline-block; background: var(--sign); color: var(--sign-ink); font: 700 1.2rem/1 "Barlow Condensed", "Arial Narrow", sans-serif; letter-spacing: .03em; text-transform: uppercase; text-decoration: none; padding: .85rem 1.2rem; border-radius: 6px; border: 2px solid var(--sign-ink); }
.play:hover { filter: brightness(1.06); }
.tablewrap, .game table { display: block; overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .97rem; font-variant-numeric: tabular-nums; margin: 1rem 0; }
th, td { text-align: left; vertical-align: top; padding: .55rem .7rem; border-bottom: 1px solid var(--line); }
th { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
kbd { font: 600 .85em/1 ui-monospace, Menlo, monospace; background: var(--surface); border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 4px; padding: .15em .4em; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr)); gap: 1.25rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.card a { text-decoration: none; color: var(--ink); display: block; }
.card strong { display: block; font: 700 1.25rem/1.15 "Barlow Condensed", "Arial Narrow", sans-serif; margin-top: .5rem; }
.card span { display: block; font-size: .95rem; color: var(--muted); line-height: 1.45; margin-top: .15rem; }
.card a:hover strong { text-decoration: underline; }
.next { margin-top: 2.5rem; padding-top: 1rem; border-top: 4px dashed var(--line); }
.foot { margin-top: 3rem; padding-top: 1rem; padding-bottom: 2.5rem; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
