:root {
  color-scheme: light;
  --page: #f9f9f7;
  --surface: #ffffff;
  --panel: #f1f0ec;
  --plum: #0b0b0b;
  --plum-2: #33322f;
  --ink: #0b0b0b;
  --ink-2: #52514e;
  --muted: #6f6d68;
  --grid: #e1e0d9;
  --axis: #c3c2b7;
  --border: rgba(11, 11, 11, 0.1);
  --accent: #0b0b0b;
  --accent-wash: rgba(11, 11, 11, 0.05);
  --good-wash: rgba(12, 163, 12, 0.08);
  --good-ink: #006300;
  --tape: #fab219;
  --porcelain: #ffffff;
  --porcelain-inner: #e9eef2;
  --pipe: #a9aeb3;

  /* Categorical slots, fixed order (validated reference palette). */
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --series-3: #1baf7a;
  --series-4: #eda100;
  --series-5: #e87ba4;
  --series-6: #008300;
  --series-7: #4a3aa7;
  --series-8: #e34948;
  --series-9: #8f8d86; /* every lab without its own color */

  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, Consolas, monospace;
  --radius: 3px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --page: #0d0d0d;
    --surface: #1a1a19;
    --panel: #1f1f1d;
    --plum: #262624;
    --plum-2: #3a3a37;
    --ink: #ffffff;
    --ink-2: #c3c2b7;
    --muted: #9a988f;
    --grid: #2c2c2a;
    --axis: #383835;
    --border: rgba(255, 255, 255, 0.1);
    --accent: #ffffff;
    --accent-wash: rgba(255, 255, 255, 0.08);
    --good-wash: rgba(12, 163, 12, 0.12);
    --good-ink: #0ca30c;
    --porcelain: #d9dde0;
    --porcelain-inner: #a9b1b8;
    --pipe: #6c7278;
    --series-1: #3987e5;
    --series-2: #d95926;
    --series-3: #199e70;
    --series-4: #c98500;
    --series-5: #d55181;
    --series-6: #008300;
    --series-7: #9085e9;
    --series-8: #e66767;
    --series-9: #77756e;
  }
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --page: #0d0d0d;
  --surface: #1a1a19;
  --panel: #1f1f1d;
  --plum: #262624;
  --plum-2: #3a3a37;
  --ink: #ffffff;
  --ink-2: #c3c2b7;
  --muted: #9a988f;
  --grid: #2c2c2a;
  --axis: #383835;
  --border: rgba(255, 255, 255, 0.1);
  --accent: #ffffff;
  --accent-wash: rgba(255, 255, 255, 0.08);
  --good-wash: rgba(12, 163, 12, 0.12);
  --good-ink: #0ca30c;
  --porcelain: #d9dde0;
  --porcelain-inner: #a9b1b8;
  --pipe: #6c7278;
  --series-1: #3987e5;
  --series-2: #d95926;
  --series-3: #199e70;
  --series-4: #c98500;
  --series-5: #d55181;
  --series-6: #008300;
  --series-7: #9085e9;
  --series-8: #e66767;
  --series-9: #77756e;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0;
}

h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

.muted {
  color: var(--muted);
}

/* ---------- Top chrome ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px max(16px, calc((100vw - 1180px) / 2));
  background: color-mix(in srgb, var(--page) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.brand {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand .wordmark span {
  color: var(--accent);
}

.nav nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav nav a {
  text-decoration: none;
  color: var(--ink-2);
  white-space: nowrap;
}

.nav nav a:hover {
  color: var(--ink);
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: end;
  padding: 64px 0 32px;
}

.hero h1 {
  font-size: clamp(40px, 6.4vw, 76px);
}

.hero h1 em {
  color: var(--accent);
}

.lede {
  margin-top: 20px;
  font-size: 18px;
  color: var(--ink-2);
  max-width: 34ch;
}

.updates {
  display: grid;
  gap: 12px;
}

.update {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.update h2 {
  font-size: 24px;
  margin: 4px 0 6px;
}

.update p:last-child {
  color: var(--ink-2);
  font-size: 14px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Sections & cards ---------- */

.section {
  padding: 56px 0 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.section-head h2,
.method h2 {
  font-size: clamp(32px, 4vw, 44px);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.section > .card + .card {
  margin-top: 16px;
}

.caption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.chart-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.highlight header {
  margin-bottom: 14px;
}

/* ---------- Tooltip ---------- */

.tip {
  position: absolute;
  z-index: 10;
  left: 50%;
  bottom: calc(100% + 6px);
  display: none;
  flex-direction: column;
  gap: 2px;
  width: max-content;
  max-width: 260px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--page);
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
  pointer-events: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.col:hover .tip,
.col:focus-visible .tip,
.dot:hover .tip,
.dot:focus-visible .tip {
  display: flex;
}

.tip-lab {
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.8;
}

.tip-move {
  margin-top: 4px;
  opacity: 0.85;
  font-style: italic;
}

.swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--c);
  flex: none;
}

.legend {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 18px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--grid);
  font-size: 12px;
  color: var(--ink-2);
}

.legend li {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ---------- Scatter ---------- */

.scatter-scroll {
  overflow-x: auto;
}

.scatter {
  position: relative;
  min-width: 600px;
  padding: 16px 24px 44px 56px;
}

.plot {
  position: relative;
  aspect-ratio: 16 / 8;
  border-left: 1px solid var(--axis);
  border-bottom: 1px solid var(--axis);
}

.quadrant {
  position: absolute;
  left: 0;
  top: 0;
  background: var(--good-wash);
  border-radius: 0 0 8px 0;
}

.quadrant span {
  position: absolute;
  top: 8px;
  left: 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--good-ink);
}

.grid-y {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px solid var(--grid);
}

.grid-y span {
  position: absolute;
  right: calc(100% + 8px);
  top: -9px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.grid-x {
  position: absolute;
  top: 0;
  bottom: 0;
  border-left: 1px solid var(--grid);
}

.grid-x span {
  position: absolute;
  top: calc(100% + 6px);
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.frontier {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.frontier polyline {
  fill: none;
  stroke: var(--ink-2);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  opacity: 0.5;
}

.frontier-label {
  position: absolute;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-2);
  transform: translate(-50%, 0);
  white-space: nowrap;
}

.dot {
  position: absolute;
  width: 20px;
  height: 20px;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  transform: translate(-50%, 50%);
  cursor: default;
  z-index: 2;
}

.dot:hover,
.dot:focus-visible {
  z-index: 5;
}

.dot-mark {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 2px var(--surface);
}

.dot-label {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  white-space: nowrap;
  color: var(--ink-2);
}

.dot.no-label .dot-label {
  display: none;
}

.dot.label-left .dot-label {
  left: auto;
  right: 20px;
}

.dot .tip {
  transform: translateX(-50%);
}

.axis-title {
  position: absolute;
  font-size: 12px;
  color: var(--muted);
}

.axis-x {
  bottom: 8px;
  left: 56px;
  right: 24px;
  text-align: center;
}

.axis-y {
  left: 0;
  top: 50%;
  transform: rotate(-90deg) translateX(50%);
  transform-origin: left top;
}

/* ---------- Table ---------- */

.table-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--grid);
  vertical-align: middle;
}

th {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}

tbody tr:hover {
  background: var(--accent-wash);
}

.num {
  text-align: right;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

th.num {
  font-family: var(--sans);
}

.rank {
  color: var(--muted);
}

td.sorted {
  color: var(--ink);
  font-weight: 500;
}

.model-in {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.model-in span {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.model-in small {
  color: var(--muted);
  font-size: 12px;
}

.move {
  color: var(--ink-2);
  min-width: 260px;
  font-size: 13px;
}

.sort {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.sort:hover,
.sort.active {
  color: var(--ink);
}

.arrow {
  display: inline-block;
  width: 1ch;
  margin-left: 2px;
}

/* ---------- Urinal game ---------- */

.urinal-row {
  display: grid;
  margin: 0 auto;
  grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  gap: clamp(6px, 2vw, 18px);
  width: 100%;
  max-width: calc(var(--n) * 104px);
}

.spot {
  position: relative;
  aspect-ratio: 60 / 175;
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: 12px;
}

.spot svg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: auto;
}

button.spot {
  cursor: pointer;
  transition: transform 0.15s ease;
}

button.spot:hover,
button.spot:focus-visible {
  transform: translateY(-4px);
  outline: 2px dashed var(--accent);
  outline-offset: 4px;
}

.pipe {
  fill: var(--pipe);
}

.bowl {
  fill: var(--porcelain);
  stroke: var(--axis);
  stroke-width: 1.5;
}

.bowl-inner {
  fill: var(--porcelain-inner);
}

.cake {
  fill: var(--accent);
  opacity: 0.8;
}

.person-svg {
  fill: var(--ink);
  opacity: 0.88;
}

.spot-tag {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  white-space: nowrap;
}

.spot.mine {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.spot.mine .spot-tag {
  color: var(--accent);
  font-weight: 600;
}

.spot.best .spot-tag {
  color: var(--good-ink);
  font-weight: 600;
}

.spot.best:not(.mine) {
  outline: 2px dashed var(--good-ink);
  outline-offset: 4px;
}

.btn {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--page);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--axis);
}

.btn:hover {
  opacity: 0.88;
}

.verdict {
  display: flex;
  gap: 20px;
  align-items: center;
  max-width: 560px;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.verdict-score {
  display: flex;
  align-items: baseline;
  gap: 2px;
  flex: none;
}

.verdict-score span {
  font-size: 48px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}

.verdict-score small {
  color: var(--muted);
}

.verdict .muted {
  font-size: 13px;
  margin-top: 4px;
}

.htmx-request.toy,
.htmx-request#explorer,
.htmx-request#leaderboard {
  opacity: 0.6;
  transition: opacity 0.2s;
}

/* ---------- Motion ---------- */

.parallax {
  transform: translate3d(0, calc(var(--scroll, 0) * var(--speed) * 1px), 0);
  will-change: transform;
}

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

.sticker-wall {
  position: relative;
  display: grid;
  place-items: center;
  height: clamp(380px, 48vw, 540px);
  margin-top: 16px;
  overflow: clip;
}

.stickers {
  position: absolute;
  inset: 0;
}

.sticker {
  position: absolute;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.08),
    0 1px 0 rgba(0, 0, 0, 0.04);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transform: translate3d(0, calc((0.5 - var(--p, 0.5)) * var(--speed) * 420px), 0)
    rotate(calc(var(--rot) + (var(--p, 0.5) - 0.5) * var(--spin) * 900deg));
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .parallax,
  .sticker {
    transform: rotate(var(--rot, 0deg));
  }
}

/* ---------- Benchmark explorer ---------- */

.ask {
  margin: 0 0 22px;
  padding: 12px 16px;
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  background: var(--accent-wash);
}

.ask figcaption {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.ask blockquote {
  margin: 4px 0 0;
  font-family: var(--mono);
  font-size: 13.5px;
}

.footnote {
  margin-top: 10px;
  font-size: 13px;
  font-style: italic;
  color: var(--muted);
}

/* ---------- Toys ---------- */

.toys {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.toy-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toy-wide {
  grid-column: 1 / -1;
  background:
    linear-gradient(var(--border) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, var(--border) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--surface);
}

.toy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.toy-question {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.2;
}

.options {
  display: grid;
  gap: 8px;
}

.option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--page);
  text-align: left;
  font-size: 15px;
}

button.option {
  cursor: pointer;
  transition:
    transform 0.15s ease,
    border-color 0.15s ease;
}

button.option:hover,
button.option:focus-visible {
  border-color: var(--ink);
  transform: translateX(4px);
}

.option.right {
  border-color: var(--good-ink);
  background: var(--good-wash);
}

.option.wrong {
  border-color: var(--accent);
  background: var(--accent-wash);
}

.option small {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.toy-verdict {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--page);
}

.toy-grade {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.1;
}

.toy-grade.good {
  color: var(--good-ink);
}

.toy-grade.bad {
  color: var(--accent);
}

.toy-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: auto;
  font-size: 13px;
}

#riddle .toy-actions,
#number .toy-actions {
  justify-content: flex-start;
}

.number-form {
  display: flex;
  gap: 8px;
}

.number-form input {
  width: 130px;
  padding: 8px 12px;
  border: 1px solid var(--axis);
  border-radius: 10px;
  background: var(--page);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 20px;
}

.contact {
  max-width: 720px;
}

/* Privacy and terms: one readable column. */
.legal {
  max-width: 720px;
}

.legal h1 {
  margin: 8px 0 24px;
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 400;
  line-height: 1;
}

.legal h2 {
  margin: 18px 0 0;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  color: var(--ink);
}

.legal .prose a {
  color: var(--ink);
}

.contact-card {
  padding: 22px 24px;
}

.contact-card .doc-strip {
  margin: -22px -24px 18px;
  padding: 7px 24px;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.contact-form select,
.contact-form textarea,
.contact-form input {
  padding: 9px 12px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: normal;
  text-transform: none;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form .btn {
  justify-self: start;
}

/* Hidden from people; bots fill it in. */
.contact-form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-error {
  color: var(--ink);
  font-weight: 600;
}

.contact-done {
  display: grid;
  gap: 6px;
}

.mini-dist {
  display: grid;
  gap: 5px;
  margin-top: auto;
}

.mini-dist .caption {
  margin-bottom: 4px;
}

.mini-row {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) 3rem;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.mini-n {
  text-align: right;
}

.mini-v {
  color: var(--muted);
}

.mini-bar {
  display: block;
  height: 10px;
  border-radius: 0 4px 4px 0;
  background: var(--axis);
}

.mini-row.hit .mini-bar {
  background: var(--accent);
}

.mini-row.hit .mini-n {
  color: var(--accent);
  font-weight: 600;
}

.garble-control {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.garble-control input {
  flex: 1;
  min-width: 0;
  accent-color: var(--ink);
}

.garble-out {
  display: grid;
  gap: 12px;
}

.garbled {
  min-height: calc(2lh + 28px);
  padding: 14px 16px;
  border: 1px dashed var(--axis);
  border-left: 3px solid var(--accent);
  background: var(--paper);
  font-family: var(--mono);
  font-size: 20px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.garble-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.garble-line {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.15;
}

.garble-models {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.garble-models li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px dotted var(--rule);
  font-size: 14px;
}

.garble-models small {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.garble-models .ok small {
  color: var(--good-ink);
}

.garble-models .lost span:not(.swatch) {
  color: var(--muted);
}

.garble-models .lost small {
  color: var(--accent);
}

.game .urinal-row {
  max-width: calc(var(--n) * 96px);
}

/* ---------- Method & footer ---------- */

.method {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 16px 48px;
}

.method h2 {
  grid-column: 1 / -1;
}

.faq h3 {
  margin: 10px 0 -8px;
  font-size: 17px;
  color: var(--ink);
}

.prose {
  display: grid;
  gap: 14px;
  font-size: 16px;
  color: var(--ink-2);
  max-width: 62ch;
}

.footer {
  max-width: 1180px;
  margin: 72px auto 0;
  padding: 24px 16px 40px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 4px;
  font-size: 13px;
}

/* ---------- Small screens ---------- */

@media (max-width: 900px) {
  .hero,
  .method,
  .explorer,
  .toys,
  .highlights,
  .feature-row,
  .with-side {
    grid-template-columns: minmax(0, 1fr);
  }

  .sticker:nth-child(n + 7) {
    display: none;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 40px;
  }

  .nav nav {
    gap: 14px;
    font-size: 13px;
  }

  /* The person already says "taken"; keep the narrow tags for You and Best. */
  .spot.taken .spot-tag {
    display: none;
  }

  .spot-tag {
    font-size: 10px;
    letter-spacing: 0.02em;
  }

  .verdict {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (forced-colors: active) {
  .col-bar,
  .dot-mark,
  .swatch {
    background: CanvasText;
  }
}

/* ---------- Seal ---------- */

.seal {
  display: block;
  color: var(--ink);
  overflow: visible;
}

.seal-ring {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
}

.seal-xx {
  font-family: var(--serif);
  font-style: italic;
  font-size: 38px;
  fill: var(--accent);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.seal-nav {
  width: 30px;
  height: 30px;
}

.updates {
  position: relative;
}

.hero-stamp {
  position: absolute;
  z-index: 3;
  top: -64px;
  right: -28px;
  width: 132px;
  pointer-events: none;
  transform: rotate(calc(-14deg + var(--scroll, 0) * 0.04deg));
}

.hero-stamp .seal {
  color: var(--accent);
  opacity: 0.92;
  mix-blend-mode: multiply;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .hero-stamp .seal {
    mix-blend-mode: screen;
  }
}

:root[data-theme='dark'] .hero-stamp .seal {
  mix-blend-mode: screen;
}

.hero-stamp .seal-xx {
  fill: currentColor;
}

.seal-footer {
  width: 64px;
  height: 64px;
  margin-bottom: 8px;
  transform: rotate(-8deg);
}

@media (max-width: 900px) {
  .hero-stamp {
    top: -40px;
    right: 0;
    width: 96px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-stamp {
    transform: rotate(-14deg);
  }
}

/* ---------- Nav pill, updates list, card heads ---------- */

.nav-pill {
  padding: 4px;
  border-radius: 999px;
  background: var(--panel);
}

.nav .nav-pill a {
  padding: 6px 12px;
  border-radius: 999px;
}

.nav .nav-pill a:hover {
  background: var(--surface);
}

.nav-cta {
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--plum);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--plum-2);
}

.updates {
  gap: 0;
  align-self: start;
  margin-top: 12px;
}

.update {
  position: relative;
  display: block;
  padding: 16px 44px 16px 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: none;
  text-decoration: none;
}

.update:first-of-type {
  border-top: 1px solid var(--border);
}

.update h2 {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  margin: 4px 0;
}

.update:hover h2 {
  color: var(--accent);
}

.arrow-box {
  position: absolute;
  top: 16px;
  right: 0;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--ink-2);
}

.update:hover .arrow-box {
  background: var(--panel);
  color: var(--ink);
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}

.card-head {
  margin-bottom: 18px;
}

.card-head.split {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.card-title,
.card-title-serif {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.1;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.square {
  width: 14px;
  height: 14px;
  flex: none;
  background: var(--ink);
}

.square.accent {
  background: var(--accent);
}

.badge {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--plum);
  color: #fff;
  letter-spacing: 0;
  white-space: nowrap;
}

.count-pill {
  flex: none;
  font-size: 13px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--ink-2);
  white-space: nowrap;
}

/* ---------- Column charts ---------- */

.cols-wrap {
  padding-left: 48px;
}

.cols {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  gap: 6px;
  --plot: 240px;
}

.cols-compact {
  --plot: 150px;
  gap: 4px;
}

.col {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  outline: none;
  min-width: 0;
}

.col-plot {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: var(--plot);
  border-bottom: 1px solid var(--axis);
}

.col-bar {
  position: relative;
  width: min(100%, 44px);
  background: var(--c);
  border-radius: 4px 4px 0 0;
  transition: filter 0.15s ease;
}

.col:hover .col-bar,
.col:focus-visible .col-bar {
  filter: brightness(1.08) saturate(1.1);
}

.col-val {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
  white-space: nowrap;
}

.col-foot {
  display: flex;
  justify-content: center;
  padding-top: 7px;
}

.col-label {
  position: relative;
  width: 100%;
  height: 84px;
}

.cols-compact .col-label {
  height: 70px;
}

.col-label span {
  position: absolute;
  top: 4px;
  right: 50%;
  transform: rotate(-45deg);
  transform-origin: top right;
  font-size: 11.5px;
  color: var(--ink-2);
  white-space: nowrap;
}

.cols-compact .col-label span {
  font-size: 10.5px;
}

.col .tip {
  left: 50%;
  bottom: calc(100% - 60px);
  transform: translateX(-50%);
}

.highlight {
  padding: 18px 18px 10px;
}

.highlight .caption {
  margin-top: 6px;
}

/* ---------- Feature row + changelog ---------- */

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr;
  gap: 16px;
  padding-top: 40px;
}

@media (max-width: 900px) {
  .feature-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-row .changelog {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .feature-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature {
    min-height: 200px;
  }
}

.feature {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  min-height: 280px;
  padding: 22px;
  border-radius: var(--radius);
  color: #fff;
  text-decoration: none;
  overflow: hidden;
}

.feature-plum {
  background:
    radial-gradient(120% 90% at 100% 0%, var(--plum-2) 0%, transparent 60%),
    var(--plum);
}

.feature-ink {
  background:
    radial-gradient(120% 90% at 0% 0%, #2b2b28 0%, transparent 60%),
    #0b0b0b;
}

.feature .arrow-box {
  top: 18px;
  right: 18px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
}

.feature:hover .arrow-box {
  background: #fff;
  color: var(--plum);
}

.feature-tag {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 6px;
  background: var(--accent);
  color: #fff;
}

.feature-title {
  font-family: var(--serif);
  font-size: 36px;
  line-height: 1;
}

.feature-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  max-width: 30ch;
}

.changelog {
  position: relative;
  max-height: 280px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}

.changelog::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 48px;
  background: linear-gradient(transparent, var(--panel));
}

.changelog h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
}

.changelog ol {
  list-style: none;
  margin: 14px 0 0 4px;
  padding: 0 0 0 14px;
  border-left: 1px solid var(--axis);
  display: grid;
  gap: 12px;
}

.changelog li {
  position: relative;
  display: grid;
  gap: 1px;
}

.changelog li::before {
  content: "";
  position: absolute;
  left: -19px;
  top: 5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--plum);
  box-shadow: 0 0 0 2px var(--panel);
}

.cl-meta {
  font-size: 11px;
  color: var(--muted);
}

.cl-title {
  font-size: 14px;
  font-weight: 500;
}

/* ---------- Stats in the sticker wall ---------- */

/* ---------- Sidebar + section (explorer, index, leaderboard) ---------- */

.explorer,
.with-side {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.side {
  position: sticky;
  top: 76px;
  font-size: 13px;
}

.side ul {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}

.side-group {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 6px;
}

.side-item {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}

.side-item:hover {
  color: var(--ink);
}

.side-item[aria-current="true"] {
  color: var(--ink);
  font-weight: 600;
}

.side-dot {
  width: 6px;
  height: 6px;
  flex: none;
  background: var(--axis);
}

.side-item[aria-current="true"] .side-dot {
  background: var(--ink);
}

.section-body {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.bench-head {
  margin-bottom: 4px;
}

.bench-h {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: clamp(28px, 3.4vw, 38px);
}

.bench-h .square {
  width: 18px;
  height: 18px;
}

.bench-blurb {
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--ink-2);
  max-width: 70ch;
}

.bench-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.bench-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bench-card:hover,
.bench-card:focus-within {
  border-color: var(--ink);
}

.bench-card-name a {
  color: inherit;
  text-decoration: none;
}

.bench-card-name a:hover {
  text-decoration: underline;
}

.bench-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.bench-card-name {
  margin: 0;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.1;
}

.bench-card-ask {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bench-card .cols-wrap {
  margin-top: auto;
}

.bench-card-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--grid);
  font-size: 13px;
  color: var(--ink-2);
  text-decoration: none;
}

.bench-card-more:hover {
  color: var(--ink);
}

.bench-card-more .arrow-box {
  position: static;
}

.bench-toy {
  margin-top: 16px;
}

.pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
}

.pager a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--ink);
  text-decoration: none;
}

.pager a:hover {
  text-decoration: underline;
}

.pager .next {
  text-align: right;
}

@media (max-width: 900px) {
  .bench-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .bench-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.bench-top {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.chart-card {
  padding: 22px 24px;
}

.card-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: -22px -24px 20px;
  padding: 8px;
  background: var(--panel);
  border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: 1px solid var(--border);
}

.card-tabs button {
  padding: 6px 14px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--ink-2);
  font-size: 13px;
  cursor: pointer;
}

.card-tabs button[aria-selected="true"] {
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.card-foot {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--grid);
  font-size: 13.5px;
  color: var(--ink-2);
}

.card-foot b {
  color: var(--ink);
}

.frontier-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

.frontier-key {
  width: 18px;
  height: 2px;
  background: var(--ink-2);
  opacity: 0.6;
}

.htmx-request#index-panel {
  opacity: 0.6;
}

@media (max-width: 900px) {
  .explorer,
  .with-side {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .side-spacer {
    display: none;
  }

  .side {
    position: static;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .side-group {
    display: none;
  }

  .side ul {
    display: flex;
    gap: 6px;
    margin: 0;
  }

  .side-item {
    width: auto;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    white-space: nowrap;
  }

  .side-item[aria-current="true"] {
    background: var(--ink);
    color: var(--page);
  }

  .side-dot,
  .nav .nav-pill {
    display: none;
  }
}

@media (max-width: 560px) {
  .cols-wrap {
    padding-left: 36px;
  }

  .col-label span {
    font-size: 10px;
  }

  .card-head.split {
    flex-direction: column;
  }
}

/* Grid children must be allowed to shrink, or wide tables push the card off the page. */
.section-body > * {
  min-width: 0;
}

.hero-stamp {
  top: -72px;
  right: -36px;
  width: 120px;
}

.method {
  grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 900px) {
  .hero-stamp {
    top: -48px;
    right: 0;
    width: 90px;
  }
}

/* ---------- 3D background (hero only, quiet) ---------- */

body,
main {
  overflow-x: clip;
}

.hero {
  position: relative;
  isolation: isolate;
}

.hero-3d {
  position: absolute;
  z-index: -2;
  inset: -60px -160px -100px;
  pointer-events: none;
  opacity: 0.7;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 55%, #000 45%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 55%, #000 45%, transparent 100%);
}

.hero-3d canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* A soft wash of page color behind the text, above the bars. */
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -20px -40px;
  background:
    radial-gradient(ellipse 34% 55% at 24% 58%, var(--page) 35%, transparent 80%),
    radial-gradient(ellipse 30% 55% at 78% 50%, var(--page) 25%, transparent 80%);
  pointer-events: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero-3d {
    opacity: 0.45;
  }
}

:root[data-theme="dark"] .hero-3d {
  opacity: 0.45;
}

@media (max-width: 900px) {
  .hero-3d {
    inset: -40px -16px -60px;
    opacity: 0.45;
  }

  .hero::before {
    background: radial-gradient(ellipse 90% 60% at 50% 45%, var(--page) 50%, transparent 90%);
  }
}

/* ---------- Paper: cards look like pages from a lab report ---------- */

:root {
  --paper: #fffefa;
  --rule: #1c1b19;
  --radius: 3px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #161614;
    --rule: #d9d6cc;
  }
}

:root[data-theme="dark"] {
  --paper: #161614;
  --rule: #d9d6cc;
}

.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: none;
}

.doc-strip {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: -18px -18px 16px;
  padding: 7px 18px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
}

.doc-strip span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.chart-card .doc-strip,
.toy-card .doc-strip {
  margin: -22px -24px 18px;
  padding: 7px 24px;
}

.card.highlight {
  padding: 18px 18px 10px;
}

.toy-card {
  padding: 22px 24px;
}

/* Stamps instead of pills. */
.badge {
  display: inline-block;
  padding: 2px 7px 1px;
  border: 1.5px solid var(--accent);
  border-radius: 2px;
  background: none;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: rotate(-4deg);
}

.bench-h .badge {
  font-size: 11px;
  transform: rotate(-3deg) translateY(-4px);
}

/* Tabs read like the section tabs of a printed report. */
.card-tabs {
  margin: -18px -24px 20px;
  padding: 0 24px;
  gap: 22px;
  background: none;
  border-radius: 0;
  border-bottom: 1px solid var(--grid);
}

.card-tabs button {
  padding: 10px 0;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-tabs button[aria-selected="true"] {
  background: none;
  box-shadow: none;
  border-bottom-color: var(--accent);
  color: var(--ink);
}

@media (max-width: 560px) {
  .card-tabs {
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .card-tabs button {
    flex: none;
    letter-spacing: 0.04em;
  }
}

.ask {
  border-radius: 0;
  background: none;
  border: 1px dashed var(--axis);
  border-left: 3px solid var(--accent);
}

/* Exam paper: lettered answer boxes. */
.option {
  justify-content: flex-start;
  gap: 12px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: var(--paper);
}

.opt-key {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  border: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 11px;
}

.opt-text {
  flex: 1;
}

button.option:hover .opt-key,
button.option:focus-visible .opt-key {
  background: var(--ink);
  color: var(--page);
}

.option.right .opt-key {
  background: var(--good-ink);
  border-color: var(--good-ink);
  color: #fff;
}

.option.wrong .opt-key {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.toy-verdict,
.verdict {
  border: 1px dashed var(--rule);
  border-radius: 2px;
  background: none;
}

.number-form input {
  border-radius: 2px;
  border-color: var(--rule);
}

.btn {
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.toy-wide {
  background:
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--paper);
}

/* Tickets instead of glowing gradient cards. */
.feature {
  justify-content: space-between;
  border-radius: var(--radius);
  padding: 0 22px 20px;
}

.feature-plum {
  background: var(--plum);
}

.feature-ink {
  background: #0b0b0b;
}

.ticket-top {
  display: flex;
  justify-content: space-between;
  margin: 0 -22px 18px;
  padding: 10px 22px;
  border-bottom: 2px dashed rgba(255, 255, 255, 0.35);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

/* Punched notches where the ticket tears. */
.feature::before,
.feature::after {
  content: "";
  position: absolute;
  top: 29px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--page);
}

.feature::before {
  left: -8px;
}

.feature::after {
  right: -8px;
}

.feature .badge {
  align-self: flex-start;
  border-color: #fff;
  color: #fff;
}

.feature-title {
  margin-top: auto;
}

.ticket-go {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.feature:hover .ticket-go {
  text-decoration: underline;
}

/* The changelog as a ruled logbook. */
.changelog {
  max-height: 280px;
  padding: 18px 18px 0;
  background: var(--paper);
}

.changelog::after {
  background: linear-gradient(transparent, var(--paper));
}

.changelog ol {
  margin: 0;
  padding: 0;
  border-left: 0;
  gap: 0;
}

.changelog li {
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dotted var(--axis);
}

.changelog li::before {
  display: none;
}

.changelog time {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  padding-top: 2px;
}

.changelog li > span {
  display: grid;
}

/* Updates in the hero: square arrow boxes. */
.arrow-box {
  border-radius: 0;
}

.doc-strip {
  background: var(--paper);
}

.footer .fine {
  font-size: 12px;
}

.footer a {
  color: inherit;
  text-underline-offset: 2px;
}

.credit-note {
  font-size: 12px;
  color: var(--muted);
}

.credit-note a {
  color: inherit;
  text-underline-offset: 2px;
}

/* ---------- QA fixes ---------- */

/* 11. The ink ticket needs an edge on a dark page. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .feature-ink {
    background: #1a1a19;
    border: 1px solid var(--rule);
  }
}

:root[data-theme="dark"] .feature-ink {
  background: #1a1a19;
  border: 1px solid var(--rule);
}

/* 12. The hero stamp sits in the gap between headline and updates, clear of any text. */
.hero-stamp {
  top: -64px;
  left: -150px;
  right: auto;
}

@media (max-width: 900px) {
  .hero-stamp {
    display: none;
  }
}

/* 13. No lone last words. */
p,
.caption {
  text-wrap: pretty;
}

/* 14. Visible keyboard focus everywhere. */
:where(a, button, input, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.col:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* 15. Bigger hit areas on small targets. */
.dot {
  width: 28px;
  height: 28px;
}

.dot-mark {
  inset: 8px;
}

.dot-label {
  left: 24px;
}

.dot.label-left .dot-label {
  right: 24px;
}

.sort {
  min-height: 32px;
  padding: 0 2px;
}

@media (max-width: 560px) {
  .toy-wide {
    padding-left: 16px;
    padding-right: 16px;
  }

  .toy-wide .doc-strip {
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .urinal-row {
    gap: 8px;
  }
}

/* 16. A label under its dot. */
.dot.label-below .dot-label {
  left: 50%;
  top: calc(100% + 2px);
  transform: translateX(-50%);
}

/* ---------- Evidence wall ---------- */

.evidence {
  height: clamp(460px, 44vw, 600px);
}

.tag {
  display: grid;
  gap: 2px;
  width: 200px;
  margin: 0;
  padding: 12px 14px 12px 26px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 2px;
  box-shadow: 3px 3px 0 var(--grid);
  font-weight: 400;
  white-space: normal;
}

/* The punched hole of a luggage tag. */
.tag::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 14px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: var(--page);
}

.tag-q {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--ink-2);
}

.tag-a {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.05;
  margin-top: 4px;
}

.tag-share {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.tag-share b {
  color: var(--accent);
  font-weight: 500;
}

.evidence-card {
  position: relative;
  z-index: 2;
  width: min(420px, calc(100% - 32px));
  padding: 18px 22px 20px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 2px;
  transform: rotate(-1deg);
}

.evidence-line {
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.02;
}

.evidence-line em {
  color: var(--accent);
}

.evidence-sub {
  margin-top: 10px;
  font-size: 14px;
  color: var(--ink-2);
}

/* ---------- Results wire ---------- */

.wire {
  position: relative;
  z-index: 1;
  overflow: hidden;
  margin-top: 24px;
  background: var(--ink);
  color: var(--page);
  border-block: 1px solid var(--rule);
}

.wire-track {
  display: flex;
  align-items: center;
  gap: 22px;
  width: max-content;
  padding: 12px 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: wire 70s linear infinite;
}

.wire:hover .wire-track {
  animation-play-state: paused;
}

.wire-item b {
  font-weight: 500;
  margin-right: 8px;
}

.wire-item {
  color: color-mix(in srgb, var(--page) 70%, transparent);
}

.wire-item b,
.wire-score {
  color: var(--page);
}

.wire-score {
  margin-left: 6px;
  padding: 1px 6px;
  border: 1px solid color-mix(in srgb, var(--page) 40%, transparent);
}

.wire-dot {
  color: #9a988f;
}

@keyframes wire {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wire-track {
    animation: none;
  }
}

@media (max-width: 900px) {
  .evidence {
    height: 620px;
  }

  .tag {
    width: 160px;
    padding: 10px 10px 10px 22px;
  }

  .tag-a {
    font-size: 24px;
  }

  .tag:nth-child(n + 7) {
    display: none;
  }
}

/* On narrow screens the tags stack in a grid under the card instead of floating. */
@media (max-width: 900px) {
  .evidence {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: auto;
    padding: 24px 16px 8px;
  }

  .evidence .stickers {
    position: static;
    order: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 12px;
    width: 100%;
  }

  .evidence .tag {
    position: relative;
    left: auto !important;
    top: auto !important;
    width: auto;
    transform: rotate(calc(var(--rot) * 0.5));
  }

  .evidence-card {
    transform: none;
  }
}
