/* chaosmachines.tv. Colors and shapes come from the videos' HUD (rampup core/hud.gd):
   yellow chips, ink panels, tilted result stamps, the sky of the test road. */

@font-face {
  font-family: "Barlow Condensed";
  src: url("fonts/barlow-condensed-black.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: "Rubik";
  src: url("fonts/rubik-var.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --yellow: #ffd84d;
  --orange: #ff9a45;
  --red: #ff4d3d;
  --green: #2f9e5a;
  --ink: #14141c;
  --paper: #fff6e6;
  --panel: rgba(18, 18, 26, 0.86);
  --sky-top: #2a78e4;
  --sky-low: #a6d8fa;
  --grass: #7fd67a;
  --grass-far: #8fd9a0;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --text: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.45;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* ---------- hero: the name is the wall ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(#4f9fea 0%, #8cc9f7 38%, #bfe6fb 62%);
}

.cloud {
  position: absolute;
  z-index: 1;
  height: 46px;
  border-radius: 46px;
  background: rgba(255, 255, 255, 0.85);
  animation: drift linear infinite;
}
.cloud::before, .cloud::after { content: ""; position: absolute; background: inherit; border-radius: 50%; }
.cloud::before { width: 44%; height: 150%; left: 14%; top: -62%; }
.cloud::after { width: 34%; height: 110%; right: 16%; top: -38%; }
.c1 { width: 170px; top: 4%; left: -200px; animation-duration: 95s; animation-delay: -30s; }
.c2 { width: 110px; top: 14%; left: -200px; opacity: 0.8; animation-duration: 130s; animation-delay: -95s; }
.c3 { width: 220px; top: 24%; left: -260px; opacity: 0.7; animation-duration: 160s; animation-delay: -60s; }
@keyframes drift { to { transform: translateX(calc(100vw + 300px)); } }

/* Everything in the stage is sized in cqw (1% of the stage's width), so the picture keeps
   its proportions at any size. --ground is the line the wheels and the blocks stand on. */
.scene { position: relative; z-index: 2; }
.stage {
  --b: 6.4cqw;          /* one letter block */
  --edge: 4cqw;         /* the name's distance from the right edge */
  --tw: 35cqw;          /* the truck's length */
  --lift: 2cqw;
  --ground: calc(5.6cqw + var(--lift));
  position: relative;
  container-type: inline-size;
  width: min(100%, 1100px);
  height: clamp(280px, 44vw, 484px);
  margin: 0 auto;
  user-select: none;
  -webkit-user-select: none;
}

.hill { position: absolute; border-radius: 50%; }
.h1 { left: -40vw; right: 30%; bottom: calc(var(--ground) + 1cqw); height: 17cqw; background: #8fd3b4; }
.h2 { left: 35%; right: -40vw; bottom: var(--ground); height: 14cqw; background: #9bdcae; }
.road {
  position: absolute;
  left: -100vw; right: -100vw; bottom: 0;
  height: calc(var(--ground) + 7.4cqw);
  background:
    linear-gradient(#e9ecef, #e9ecef) 0 3.4cqw / 100% 0.35cqw no-repeat,
    repeating-linear-gradient(90deg, var(--yellow) 0 4cqw, transparent 4cqw 9cqw) 0 5.6cqw / 100% 0.35cqw no-repeat,
    linear-gradient(#e9ecef, #e9ecef) 0 9.4cqw / 100% 0.35cqw no-repeat,
    linear-gradient(var(--grass-far) 0 3cqw, #5d6880 3cqw 10.1cqw, var(--grass) 10.1cqw);
}

/* The letter blocks: the wall from the videos, yellow and black. */
.logo {
  position: absolute;
  right: var(--edge);
  bottom: var(--ground);
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  font: inherit;
}
.row { display: flex; }
.logo b {
  display: grid;
  place-items: center;
  width: var(--b);
  height: var(--b);
  border-radius: 9%;
  background: var(--yellow);
  color: var(--ink);
  box-shadow: inset 0 0 0 0.34cqw var(--ink), inset 0 -0.75cqw 0 0.2cqw rgba(20, 20, 28, 0.2);
  font-family: var(--display);
  font-weight: 900;
  font-size: calc(var(--b) * 0.86);
  line-height: 1;
  padding-bottom: 0.08em;
}
.r1 b:nth-child(even), .r2 b:nth-child(even) { background: #23232d; color: var(--yellow); box-shadow: inset 0 0 0 0.34cqw var(--ink), inset 0 -0.75cqw 0 0.2cqw rgba(0, 0, 0, 0.35); }

.mascot {
  position: absolute;
  width: calc(var(--b) * 1.9);
  right: calc(var(--edge) + var(--b) * 4 - var(--b) * 0.95);
  bottom: calc(var(--ground) + var(--b) * 2);
}
.truck {
  position: absolute;
  right: calc(var(--edge) + var(--b) * 8 + 6cqw);
  bottom: var(--ground);
  width: var(--tw);
}
.truck img { transform-origin: 82% 100%; transition: transform 0.25s ease-out; }
.truck.brake img { transform: rotate(0.9deg); }

/* When main.js takes over, every piece is placed by the physics. */
.live .logo { inset: 0; display: block; pointer-events: none; }
.live .row { display: contents; }
.live .logo b, .live .mascot, .live .truck {
  position: absolute;
  left: 0; top: 0; right: auto; bottom: auto;
  will-change: transform;
}
.live .logo b, .live .mascot { pointer-events: auto; cursor: grab; touch-action: pan-y; }
.live .logo b:active, .live .mascot:active { cursor: grabbing; }

/* The videos' step badge and result stamp. They sit high and to the side, off the action. */
.num {
  flex: none;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 30px;
  background: var(--accent, var(--yellow));
  color: var(--ink);
  font-family: var(--display);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.badge {
  position: absolute;
  left: 2cqw; top: 14px;
  display: flex; align-items: center; gap: 10px;
  padding: 5px 16px 5px 5px;
  border-radius: 40px;
  background: var(--panel);
  color: #fff;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(16px, 2.4cqw, 24px);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1;
}
.badge[hidden] { display: none; }
.badge .num { font-size: clamp(13px, 1.9cqw, 18px); }
.badge .num b { font-size: clamp(18px, 2.7cqw, 26px); }
.s2 .badge .num { --accent: #ffba49; }
.s3 .badge .num { --accent: var(--orange); }
.s4 .badge .num { --accent: var(--red); }

.again {
  position: absolute;
  left: 2cqw; top: calc(14px + clamp(40px, 5.4cqw, 54px));
  padding: 8px 15px;
  border: 3px solid var(--ink);
  border-radius: 40px;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(16px, 2.2cqw, 22px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 0 var(--ink);
  cursor: pointer;
}
.again:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.again:disabled { opacity: 0; pointer-events: none; }
.again:focus-visible, .sign:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.stamp {
  position: absolute;
  left: 31cqw; top: 4.6cqw;
  z-index: 5;
  padding: 0.12em 0.4em;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(28px, 6cqw, 66px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #fff;
  background: var(--green);
  border: clamp(4px, 0.7cqw, 8px) solid #fff;
  border-radius: clamp(10px, 1.8cqw, 22px);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
  transform: translateX(-50%) rotate(-6deg);
  opacity: 0;
  pointer-events: none;
}
.stamp.bad { background: var(--red); }
.stamp.on { opacity: 1; animation: slam 0.28s cubic-bezier(0.3, 1.4, 0.5, 1) both; }
@keyframes slam {
  from { opacity: 0; transform: translateX(-50%) rotate(-6deg) scale(2.4); }
  to { opacity: 1; transform: translateX(-50%) rotate(-6deg) scale(1); }
}

/* The gap, measured: a bracket under it, like the videos' dimension line. */
.measure {
  position: absolute;
  left: 0; top: 0;
  height: 2.2cqw;
  border: solid #fff;
  border-width: 0 0.4cqw 0.4cqw;
  animation: show 0.25s ease-out both;
}
.measure[hidden] { display: none; }
.measure span {
  position: absolute;
  left: 50%; top: calc(100% + 0.5cqw);
  transform: translateX(-50%);
  padding: 2px 9px;
  border-radius: 22px;
  background: var(--panel);
  color: var(--yellow);
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(13px, 2.1cqw, 21px);
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
}
@keyframes show { from { opacity: 0; } }

/* ---------- the roadside: one line, three signs on a pair of posts ---------- */

.roadside {
  position: relative;
  z-index: 2;
  padding: 18px 16px clamp(34px, 6vw, 56px);
  background: linear-gradient(var(--grass), #6cc86d);
  text-align: center;
}
.bio {
  display: inline-block;
  margin: 0;
  padding: 9px 18px;
  border-radius: 22px;
  background: var(--panel);
  color: #fff;
  font-weight: 500;
  font-size: clamp(15px, 3.9vw, 18px);
  text-wrap: balance;
}

.signs {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  max-width: 440px;
  margin: 26px auto 0;
  padding-bottom: 34px;
}
.post {
  position: absolute;
  top: 14px; bottom: 0;
  left: 17%;
  width: 14px;
  background: #aab3c2;
  border: 3px solid var(--ink);
  border-radius: 3px;
}
.post + .post { left: auto; right: 17%; }
.sign {
  --tilt: -0.6deg;
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px 12px;
  border-radius: 14px;
  background: #1f7a4d;
  color: #fff;
  text-decoration: none;
  text-align: left;
  border: 3px solid var(--ink);
  box-shadow: inset 0 0 0 3px #1f7a4d, inset 0 0 0 6px #fff, 5px 6px 0 var(--ink);
  transform: rotate(var(--tilt));
  animation: bolt 0.7s cubic-bezier(0.3, 1.3, 0.5, 1) both;
}
.s-b { --tilt: 0.5deg; animation-delay: 0.12s; --accent: var(--orange); }
.s-c { --tilt: -0.3deg; animation-delay: 0.24s; --accent: var(--red); }
/* Two bolt heads. */
.sign::before, .sign::after {
  content: ""; position: absolute; top: 50%;
  width: 7px; height: 7px; margin-top: -4px;
  border-radius: 50%; background: #dfe5ee; box-shadow: 0 0 0 2px var(--ink);
  left: calc(17% + 3px);
  opacity: 0;
}
.sign:hover, .sign:focus-visible { animation: wobble 0.7s ease-out both; }
.sign:active { transform: rotate(var(--tilt)) translateY(3px); box-shadow: inset 0 0 0 3px #1f7a4d, inset 0 0 0 6px #fff, 2px 3px 0 var(--ink); }
@keyframes bolt {
  from { opacity: 0; transform: translateY(-26px) rotate(calc(var(--tilt) - 5deg)); }
  60% { opacity: 1; transform: translateY(0) rotate(calc(var(--tilt) + 1.6deg)); }
  to { transform: rotate(var(--tilt)); }
}
@keyframes wobble {
  0% { transform: rotate(var(--tilt)); }
  20% { transform: rotate(calc(var(--tilt) + 2.4deg)); }
  45% { transform: rotate(calc(var(--tilt) - 1.7deg)); }
  70% { transform: rotate(calc(var(--tilt) + 0.9deg)); }
  100% { transform: rotate(var(--tilt)); }
}
.tab {
  flex: none;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 6px 12px 5px;
  border-radius: 8px;
  background: var(--accent, var(--yellow));
  color: var(--ink);
  border: 3px solid var(--ink);
  font-family: var(--display);
  font-weight: 900;
  font-size: 17px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tab b { font-size: 26px; }
.where { display: flex; flex-direction: column; min-width: 0; }
.where strong {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(30px, 8.4vw, 38px);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.where em { font-style: normal; font-weight: 500; font-size: 14px; }
.arrow { flex: none; width: 34px; height: 34px; margin-left: auto; transition: transform 0.15s; }
.sign:hover .arrow { transform: translate(3px, -3px); }

/* On a phone the picture is small: bigger blocks, a taller sky for them to fall through. */
@media (max-width: 620px) {
  .stage { --b: 8cqw; --edge: 3cqw; --tw: 50cqw; --lift: 6.5cqw; height: clamp(250px, 80vw, 480px); }
  .stamp { left: 62cqw; top: 5cqw; }
}

.stripe {
  height: 18px;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 18px, var(--ink) 18px 36px);
  border-block: 3px solid var(--ink);
}

/* ---------- staff ---------- */

.staff { max-width: 1100px; margin: 0 auto; padding: clamp(36px, 7vw, 72px) 16px 24px; text-align: center; }
.banner {
  display: inline-block;
  margin: 0;
  padding: 6px 22px 4px;
  background: var(--yellow);
  border: 4px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(38px, 9vw, 68px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  transform: rotate(-1.5deg);
}
.lede { max-width: 34em; margin: 22px auto 0; font-size: clamp(16px, 4vw, 19px); text-wrap: balance; }

.cards {
  list-style: none;
  margin: clamp(28px, 5vw, 44px) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px 22px;
  max-width: 1000px;
  margin-inline: auto;
  text-align: left;
}
.card {
  position: relative;
  flex: 1 1 270px;
  max-width: 318px;
  display: flex;
  flex-direction: column;
  padding: 34px 16px 16px;
  background: #fff;
  border: 4px solid var(--ink);
  border-radius: 22px;
  box-shadow: 6px 6px 0 var(--ink);
}
/* The slot a lanyard goes through. */
.card::before {
  content: "";
  position: absolute;
  top: 11px; left: 50%;
  width: 54px; height: 11px;
  margin-left: -27px;
  border-radius: 11px;
  background: var(--paper);
  border: 3px solid var(--ink);
}
/* Badges hang from the slot: they swing in when first seen, and again when touched. */
.card { --tilt: -1deg; transform: rotate(var(--tilt)); transform-origin: 50% 12px; }
.card:nth-child(even) { --tilt: 0.8deg; }
.js .card:not(.in) { opacity: 0; }
.js .card.in { animation: swing 1.5s ease-out both; }
.js .card.in:nth-child(2) { animation-delay: 0.08s; }
.js .card.in:nth-child(3) { animation-delay: 0.16s; }
.card.in:hover { animation: swing-again 1.1s ease-out both; }
@keyframes swing {
  0% { opacity: 0; transform: rotate(calc(var(--tilt) + 9deg)); }
  12% { opacity: 1; }
  30% { transform: rotate(calc(var(--tilt) - 5deg)); }
  52% { transform: rotate(calc(var(--tilt) + 3deg)); }
  72% { transform: rotate(calc(var(--tilt) - 1.4deg)); }
  88% { transform: rotate(calc(var(--tilt) + 0.6deg)); }
  100% { transform: rotate(var(--tilt)); }
}
@keyframes swing-again {
  0% { transform: rotate(var(--tilt)); }
  25% { transform: rotate(calc(var(--tilt) + 3.5deg)); }
  50% { transform: rotate(calc(var(--tilt) - 2.2deg)); }
  75% { transform: rotate(calc(var(--tilt) + 1deg)); }
  100% { transform: rotate(var(--tilt)); }
}
@media (max-width: 620px) { .card { max-width: none; } }
.photo {
  display: grid;
  place-items: end center;
  height: 190px;
  padding: 14px 14px 0;
  border: 3px solid var(--ink);
  border-radius: 14px;
  background: var(--tint, #9fd3ff);
  overflow: hidden;
}
.photo img { max-height: 170px; width: auto; filter: drop-shadow(0 5px 0 rgba(20, 20, 28, 0.2)); margin-bottom: 8px; }
.k-gauge { --tint: #9fd3ff; }
.k-weight { --tint: #ffe2c2; }
.k-pebbles { --tint: #e7f7c4; }
.k-pebbles .photo { place-items: center; padding: 14px; }
.k-pebbles .photo img { margin: 0; }
.k-dispatch { --tint: #1d2a44; --bar: #f2b31d; }
.k-mortar { --tint: #3d2a24; --bar: #f08a5d; }

.voice .photo { place-items: center; align-content: center; gap: 14px; padding: 14px; }
.voice .photo span {
  font-family: var(--display); font-weight: 900; font-size: 18px; line-height: 1;
  text-transform: uppercase; letter-spacing: 0.08em; color: #fff;
}
.wave { display: flex; align-items: center; gap: 7px; height: 84px; }
.wave i { width: 9px; border-radius: 9px; background: var(--bar); height: 30%; animation: talk 1.3s ease-in-out infinite alternate; }
.wave i:nth-child(2) { height: 62%; animation-delay: -0.2s; }
.wave i:nth-child(3) { height: 40%; animation-delay: -0.7s; }
.wave i:nth-child(4) { height: 88%; animation-delay: -0.4s; }
.wave i:nth-child(5) { height: 55%; animation-delay: -0.9s; }
.wave i:nth-child(6) { height: 100%; animation-delay: -0.1s; }
.wave i:nth-child(7) { height: 46%; animation-delay: -0.6s; }
.wave i:nth-child(8) { height: 70%; animation-delay: -1.1s; }
.wave i:nth-child(9) { height: 34%; animation-delay: -0.3s; }
@keyframes talk { to { transform: scaleY(0.45); } }

.card h3 {
  margin: 14px 0 6px;
  font-family: var(--display);
  font-weight: 900;
  font-size: 34px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.card dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 0; font-size: 15px; }
.card dt {
  font-family: var(--display); font-weight: 900; font-size: 15px; line-height: 1.45;
  text-transform: uppercase; letter-spacing: 0.06em; color: #6a6a78;
}
.card dd { margin: 0; font-weight: 500; }
.card blockquote {
  margin: 12px 0 0;
  padding: 9px 12px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--yellow);
  font-weight: 500;
  font-size: 15px;
}

/* ---------- the vote, the footer ---------- */

.vote { padding: clamp(28px, 6vw, 56px) 16px clamp(40px, 7vw, 72px); text-align: center; }
.vote p {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(34px, 8.4vw, 72px);
  line-height: 0.95;
  text-transform: uppercase;
  text-wrap: balance;
}
.vote span { display: block; color: #e8372a; }

footer {
  padding: 34px 16px 40px;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}
footer p { margin: 0 auto; max-width: 30em; text-wrap: balance; }
footer .small { margin-top: 14px; font-size: 14px; color: #b9b9c6; }
footer .small a { margin: 0 9px; color: var(--yellow); text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .card:not(.in) { opacity: 1; }
}

/* ---------- pages about a test (written by tools/build_pages.py) ---------- */

.strip {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 18px max(16px, calc((100vw - 1000px) / 2)) 14px;
  background: linear-gradient(#4f9fea, #a6d8fa);
}
/* The name, small: the same blocks, standing still. */
.mini { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; }
.mini span { display: flex; }
.mini b {
  display: grid; place-items: center;
  width: 25px; height: 25px;
  border-radius: 3px;
  background: var(--yellow); color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
  font-family: var(--display); font-weight: 900; font-size: 21px; line-height: 1;
}
.mini b:nth-child(even) { background: #23232d; color: var(--yellow); }
.strip nav { display: flex; gap: 8px; }
.strip nav a {
  padding: 6px 14px 5px;
  border-radius: 40px;
  background: var(--panel);
  color: #fff;
  font-family: var(--display); font-weight: 900; font-size: 19px; line-height: 1;
  text-transform: uppercase; letter-spacing: 0.04em; text-decoration: none;
}
.strip nav a:hover { color: var(--yellow); }

.banner.small { font-size: clamp(26px, 6vw, 36px); border-width: 3px; box-shadow: 4px 4px 0 var(--ink); padding: 4px 14px 2px; }

.test, .list { max-width: 1000px; margin: 0 auto; padding: 26px 16px 56px; }
.crumb { margin: 0 0 10px; font-size: 14px; color: #5c5c6a; }
.crumb a { color: inherit; }
.test h1 {
  margin: 0;
  font-family: var(--display); font-weight: 900;
  font-size: clamp(40px, 9.5vw, 76px); line-height: 0.95;
  text-transform: uppercase; text-wrap: balance;
}
.when { margin: 10px 0 0; font-size: 14px; color: #5c5c6a; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; margin-top: 24px; }
@media (min-width: 760px) {
  .cols { grid-template-columns: 300px minmax(0, 1fr); gap: 40px; align-items: start; }
  .watch { position: sticky; top: 18px; }
}
.watch { max-width: 340px; margin: 0 auto; width: 100%; }
.player {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  border: 4px solid var(--ink);
  border-radius: 22px;
  box-shadow: 6px 6px 0 var(--ink);
  overflow: hidden;
  background: var(--ink);
}
.player img { width: 100%; height: 100%; object-fit: cover; }
.play {
  position: absolute; left: 50%; bottom: 9%;
  padding: 0.14em 0.5em 0.08em;
  background: var(--red); color: #fff;
  border: 5px solid #fff; border-radius: 16px;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35);
  font-family: var(--display); font-weight: 900; font-size: 44px; line-height: 1;
  text-transform: uppercase; letter-spacing: 0.03em;
  transform: translateX(-50%) rotate(-6deg);
  transition: transform 0.15s cubic-bezier(0.3, 1.5, 0.5, 1);
}
.player:hover .play, .player:focus-visible .play { transform: translateX(-50%) rotate(-6deg) scale(1.1); }
.onyt { margin: 14px 0 0; text-align: center; font-size: 14px; }

.read > p { margin: 0 0 14px; max-width: 38em; }
.lede { font-size: clamp(18px, 4.4vw, 21px); font-weight: 500; }
.list .lede { max-width: 34em; margin: 20px 0 0; }
.read section, .list .fact { margin-top: 34px; }

.fact blockquote {
  margin: 18px 0 0;
  padding: 16px 18px;
  background: #fff;
  border: 4px solid var(--ink);
  border-radius: 22px;
  box-shadow: 6px 6px 0 var(--ink);
  font-size: clamp(21px, 5.2vw, 27px); font-weight: 600; line-height: 1.25;
  text-wrap: balance;
}
.chip {
  display: inline-block;
  margin: 16px 0 0;
  padding: 6px 14px 4px;
  border-radius: 22px;
  background: var(--ink); color: var(--yellow);
  font-family: var(--display); font-weight: 900; font-size: 19px; line-height: 1.1;
  text-transform: uppercase; letter-spacing: 0.03em;
}
.fact h3, .spoken h3 {
  margin: 22px 0 6px;
  font-family: var(--display); font-weight: 900; font-size: 22px; line-height: 1;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.working { margin: 0; max-width: 40em; }
.sources { margin: 0; padding-left: 1.2em; }
.sources li { margin: 3px 0; }
.sources cite { font-style: normal; }
.retrieved, .from, .sim { margin: 10px 0 0; font-size: 14px; color: #5c5c6a; }
.from { font-size: 16px; color: var(--ink); }
.spoken p { margin: 14px 0 0; max-width: 38em; }
.spoken ol { margin: 12px 0 0; padding-left: 1.5em; }
.spoken li { margin: 4px 0; padding-left: 4px; }
.spoken li::marker { font-family: var(--display); font-weight: 900; }
.sim { margin-top: 30px; }

.around { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 44px; }
.around a {
  padding: 12px 14px;
  background: #fff; border: 3px solid var(--ink); border-radius: 14px; box-shadow: 4px 4px 0 var(--ink);
  font-weight: 600; text-decoration: none; line-height: 1.25;
}
.around a:last-child { text-align: right; }
.around span { display: block; font-family: var(--display); font-weight: 900; font-size: 15px; text-transform: uppercase; letter-spacing: 0.06em; color: #5c5c6a; }

/* Test cards: on the home page and on /tests/. */
.latest { max-width: 1000px; margin: 0 auto; padding: clamp(36px, 7vw, 64px) 16px 0; text-align: center; }
.tcards {
  list-style: none; margin: 28px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 24px 20px;
  text-align: left;
}
.latest .tcards { grid-template-columns: repeat(auto-fit, minmax(150px, 250px)); justify-content: center; }
.tcard {
  display: flex; flex-direction: column; height: 100%;
  background: #fff; border: 4px solid var(--ink); border-radius: 22px; box-shadow: 6px 6px 0 var(--ink);
  overflow: hidden; text-decoration: none;
  transition: transform 0.12s, box-shadow 0.12s;
}
.tcard:hover, .tcard:focus-visible { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.tcard img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-bottom: 4px solid var(--ink); }
.tcard strong {
  padding: 12px 14px 0;
  font-family: var(--display); font-weight: 900; font-size: 25px; line-height: 1; text-transform: uppercase;
}
.tcard span { padding: 6px 14px 13px; margin-top: auto; font-size: 13px; color: #5c5c6a; }
.more { margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center; font-weight: 600; }
@media (max-width: 480px) {
  .strip { padding-top: 14px; gap: 10px; }
  .mini b { width: 20px; height: 20px; font-size: 17px; }
  .strip nav { gap: 6px; }
  .strip nav a { padding: 6px 11px 5px; font-size: 17px; }
}

/* ---------- articles ---------- */
.article { max-width: 720px; margin: 0 auto; padding: 26px 16px 56px; }
.article h1 {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(34px, 8.4vw, 58px); line-height: 0.98; margin: 0; text-wrap: balance;
}
.article .lead { max-width: 300px; margin: 26px auto 0; }
.article .onyt { text-wrap: balance; }
.prose { margin-top: 30px; font-size: clamp(17px, 4.2vw, 19px); line-height: 1.62; }
.prose p { margin: 0 0 18px; }
.prose h2 {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(25px, 6vw, 32px); line-height: 1.05; margin: 40px 0 14px;
}
.prose a { text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose .eq {
  margin: 4px 0 20px; padding: 12px 16px; overflow-x: auto; white-space: nowrap;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.92em;
  background: #fff; border: 3px solid var(--ink); border-radius: 10px; box-shadow: 4px 4px 0 var(--ink);
}
.prose figure { margin: 26px 0; }
.prose figure img { display: block; width: 100%; height: auto; border: 3px solid var(--ink); border-radius: 12px; background: #fff6e6; }
.prose figcaption { margin-top: 8px; font-size: 14px; line-height: 1.4; color: #5c5c6a; }
.article .fact { margin-top: 40px; }
.sources.long li { margin: 9px 0; line-height: 1.45; max-width: 44em; }
.sources.long span { color: #3d3d4a; }
.got { font-size: 14px; color: #5c5c6a !important; }
.readmore { font-weight: 600; }
.alist { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 16px; }
.alist a {
  display: block; padding: 16px 18px; text-decoration: none; color: inherit;
  background: #fff; border: 3px solid var(--ink); border-radius: 14px; box-shadow: 5px 5px 0 var(--ink);
}
.alist strong { display: block; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(24px, 6vw, 32px); line-height: 1.02; }
.alist span { display: block; margin-top: 6px; max-width: 40em; }
.alist a:hover { transform: translate(-1px, -1px); box-shadow: 7px 7px 0 var(--ink); }
/* Three links beside the name on a phone: smaller blocks and tighter links. */
@media (max-width: 520px) {
  .mini b { width: 15px; height: 15px; font-size: 13px; box-shadow: inset 0 0 0 1.5px var(--ink); }
  .strip nav { gap: 4px; }
  .strip nav a { padding: 6px 8px 5px; font-size: 14px; letter-spacing: 0.02em; }
}
