/* Offset site. The page is drawn the way the character is drawn: flat
   colour, a 3px ink line, no shadows, no gradients. The ground is the
   app's own paper workspace, vermilion is for things you press, and the
   screenshots are real and marked up by hand like a print proof. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("fonts/archivo/archivo-latin-ext-wdth-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("fonts/archivo/archivo-latin-wdth-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;

  --paper: #f7f6f2;       /* app PAPER, the page ground */
  --white: #fffefb;       /* bubbles and fields */
  --line: #dedbd2;        /* app LINE */
  --ink: #1d2021;         /* app INK, also the character's outline */
  --muted: #5e6362;
  --graphite: #232628;    /* app GRAPHITE, only inside the toy */
  --graphite-up: #34383b;
  --dim: #a3a7a4;         /* secondary text on graphite */
  --red: #c43d26;         /* app VERMILION, his t-shirt */
  --red-deep: #a8301c;    /* small red text on paper */
  --red-hi: #ef6548;

  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --pen: 3px;
  --pad: clamp(1rem, 4vw, 3.5rem);
  --bar: 4.5rem;
  --host-w: clamp(6.5rem, 14vw, 13.5rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.4, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--paper);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.5;
  overflow-x: clip;
}

[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, p, figure, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

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

.skip {
  position: fixed; top: 0.5rem; left: 0.5rem; z-index: 100;
  padding: 0.6rem 1rem; background: var(--ink); color: var(--paper);
  font-weight: 700; transform: translateY(-200%);
}
.skip:focus { transform: none; }

h2 {
  font-size: clamp(2.25rem, 4.6vw, 4.25rem);
  font-weight: 800;
  line-height: 1;
  text-wrap: balance;
}

.fine { color: var(--muted); font-size: 0.9375rem; max-width: 48ch; }
.fine strong { color: var(--ink); }

/* Buttons: flat fill, ink line, nothing floating. */

.btn {
  --b-bg: var(--white);
  --b-fg: var(--ink);
  --b-line: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.8em 1.3em;
  border: 2.5px solid var(--b-line);
  border-radius: 10px;
  background: var(--b-bg);
  color: var(--b-fg);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 140ms, color 140ms, transform 140ms var(--ease);
}
.btn:hover { --b-bg: var(--paper); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.btn--red { --b-bg: var(--red); --b-fg: var(--white); }
.btn--red:hover { --b-bg: var(--red-deep); }
.btn--dark { --b-bg: transparent; --b-fg: var(--paper); --b-line: var(--paper); }
.btn--dark:hover { --b-bg: var(--paper); --b-fg: var(--ink); }
.btn--plain {
  padding: 0.8em 0.2em;
  border-color: transparent;
  background: none;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}
.btn--plain:hover { --b-bg: none; color: var(--red-deep); }

.btn--small { padding: 0.55em 0.95em; font-size: 0.9375rem; border-radius: 8px; }
.btn--tiny { padding: 0.35em 0.6em; font-size: 0.75rem; border-width: 2px; border-radius: 6px; }
.btn--big { padding: 0.95em 1.6em; font-size: clamp(1.1rem, 1.6vw, 1.35rem); border-width: var(--pen); border-radius: 14px; }

/* Bar */

.bar {
  position: relative;
  z-index: 5;
  height: var(--bar);
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: 0 var(--pad);
}

.wordmark {
  font-weight: 850;
  font-size: 1.375rem;
  text-decoration: none;
}

.bar__links { display: flex; gap: clamp(1rem, 2.5vw, 2rem); margin-left: auto; }
.bar__links a {
  font-weight: 650;
  text-decoration: none;
  text-underline-offset: 0.3em;
  text-decoration-thickness: 2px;
}
.bar__links a:hover { text-decoration-line: underline; }

/* Speech bubbles, drawn like the ones in his comic. */

.bubble {
  position: relative;
  display: inline-block;
  border: var(--pen) solid var(--ink);
  border-radius: 1.6rem;
  background: var(--white);
}
.bubble__tail {
  position: absolute;
  left: calc(100% - var(--pen));
  top: 34%;
  width: clamp(4rem, 8vw, 7.5rem);
  overflow: visible;
}
.bubble__tail .fill { fill: var(--white); }
.bubble__tail .pen { fill: none; stroke: var(--ink); stroke-width: var(--pen); stroke-linejoin: round; vector-effect: non-scaling-stroke; }

/* Hero: he says the headline, standing in front of the real app. */

.hero {
  position: relative;
  min-height: calc(100svh - var(--bar));
  padding: 0 var(--pad) clamp(4rem, 8vw, 7rem);
  isolation: isolate;
}

.hero__copy {
  position: relative;
  z-index: 2;
  padding-top: clamp(0.5rem, 3svh, 2.5rem);
  width: min(52vw, 44rem);
}

.bubble--hero {
  padding: 0.32em 0.55em 0.38em;
  font-size: clamp(2.6rem, min(5.4vw, 9.6svh), 5.6rem);
  font-weight: 850;
  font-stretch: 84%;
  line-height: 0.95;
  max-width: 9.4em;
  text-wrap: balance;
}
.bubble--hero .bubble__text { display: block; }

.hero__sub {
  margin-top: clamp(1.5rem, 4svh, 2.5rem);
  max-width: 30ch;
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  line-height: 1.35;
}
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin-top: 1.5rem; }

.hero__shot {
  z-index: 1;
  width: min(100%, 76rem);
  margin-top: clamp(2.5rem, 7svh, 5rem);
}

.hero__stand {
  position: absolute;
  z-index: 3;
  right: clamp(0rem, 3vw, 3rem);
  top: calc(100svh - var(--bar) - var(--stand-h));
  --stand-h: min(88svh, 62vw);
  width: calc(var(--stand-h) * 0.8);
  pointer-events: none;
}
.js-host .hero__stand img { visibility: hidden; }

/* Screenshots */

.shot {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 0 0 var(--pen) var(--ink);
}
.shot img { width: 100%; }
.shot::after {
  content: "Enlarge";
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.75rem;
  font-weight: 700;
  opacity: 0;
  transition: opacity 160ms;
}
.shot:hover::after, .shot:focus-visible::after { opacity: 1; }

/* Crops: --x --y --w --h are pixels of the 2640 x 1760 original, and the
   markup SVG uses the same box, so pen marks land on the real UI. */

.crop { aspect-ratio: var(--ar); }
.crop img {
  position: absolute;
  max-width: none;
  width: calc(2640 / var(--w) * 100%);
  left: calc(var(--x) / var(--w) * -100%);
  top: calc(var(--y) / var(--h) * -100%);
}

.proof { position: relative; view-timeline: --proof block; }
.proof .pen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.proof .pen path {
  fill: none;
  stroke: var(--red);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.note {
  position: absolute;
  max-width: 17rem;
  color: var(--red-deep);
  font-weight: 750;
  font-stretch: 90%;
  font-size: clamp(1.05rem, 1.35vw, 1.3rem);
  line-height: 1.15;
  transform: rotate(-2.5deg);
}

/* Try: the toy scanner */

.try {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  padding: clamp(3rem, 7vw, 6rem) calc(var(--host-w) + var(--pad)) clamp(3.5rem, 7vw, 6rem) var(--pad);
}
.try__copy { display: grid; gap: 1.25rem; }
.try__copy h2 { font-size: clamp(2.75rem, 6vw, 5.5rem); }
.try__copy p:not(.fine) { font-size: 1.1875rem; max-width: 34ch; }

.toy {
  display: grid;
  grid-template-columns: minmax(10rem, 0.8fr) minmax(0, 2fr);
  border: var(--pen) solid var(--ink);
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
  font-size: 0.9375rem;
}

.toy__game {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.25rem;
  background: var(--graphite);
  color: var(--paper);
}
.toy__label { font-size: 0.8125rem; font-weight: 600; color: var(--dim); }
.toy__hp {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  font-weight: 850;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.toy__hp small { font-size: 1rem; font-weight: 700; color: var(--dim); }
.toy__hp.is-hacked { color: var(--red-hi); }
.toy__bar { height: 12px; border-radius: 6px; background: var(--graphite-up); overflow: hidden; }
.toy__bar span { display: block; height: 100%; width: 100%; background: var(--red); transform-origin: left; transition: transform 300ms var(--ease); }
.toy__bar.is-over span { background: repeating-linear-gradient(-45deg, var(--red) 0 8px, var(--red-hi) 8px 16px); }
.toy__moves { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: auto; }
.toy__game.is-hit { animation: shake 320ms; }

.toy__scan { display: flex; flex-direction: column; gap: 0.75rem; padding: 1.25rem; min-width: 0; }
.toy__row { display: grid; grid-template-columns: 5.5rem 1fr; align-items: center; gap: 0.75rem; }
.toy__row label { color: var(--muted); font-weight: 600; }
.toy input, .toy select {
  width: 100%;
  min-width: 0;
  padding: 0.45rem 0.6rem;
  border: 1.5px solid #a9a59a;
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--mono);
}
.toy select { font-family: var(--sans); }
.toy input:disabled, .toy select:disabled { background: #ecebe6; color: var(--muted); }
.toy input:focus-visible, .toy select:focus-visible { outline: 2px solid var(--red-deep); outline-offset: 1px; }
.toy__go { display: flex; gap: 0.5rem; }
.toy__count { font-size: 0.9375rem; color: var(--muted); }
.toy__count strong { color: var(--ink); font-weight: 800; font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.toy__count.is-error strong { color: var(--red-deep); }

.toy__results { display: grid; gap: 0.75rem; border-top: 1.5px solid var(--line); padding-top: 0.75rem; }
.toy__results table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.toy__results th { text-align: left; font-weight: 600; color: var(--muted); padding: 0 0.5rem 0.35rem 0; }
.toy__results td { padding: 0.3rem 0.5rem 0.3rem 0; border-top: 1px solid var(--line); white-space: nowrap; }
.toy__results td:nth-child(1), .toy__results td:nth-child(2) { font-family: var(--mono); }
.toy__results td:last-child { text-align: right; padding-right: 0; }
.toy__results tr.is-origin td { background: #f6e2dd; }
.toy__results tr.is-flash td:nth-child(2) { color: var(--red-deep); }
.toy__results .more { color: var(--muted); font-size: 0.8125rem; }

/* Features */

.feat { padding: clamp(3.5rem, 7vw, 6rem) var(--pad); }
.feat__text { display: grid; gap: 1.25rem; align-content: start; }
.feat__text p:not(.fine), .feat__cols p:not(.fine) { font-size: 1.1875rem; max-width: 40ch; }

.feat--copy .feat__text {
  grid-template-columns: minmax(0, 1fr) minmax(0, 26rem);
  align-items: start;
  column-gap: clamp(2rem, 5vw, 5rem);
}
.feat--copy .feat__text h2 { grid-row: span 2; }
.feat--copy .proof-scroll { margin-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: 6.5rem; }

.feat--paths { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
.feat--paths h2 { max-width: 12ch; }
.feat__cols { display: flex; flex-wrap: wrap; align-items: start; gap: 1rem clamp(2rem, 6vw, 6rem); }

.path {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.2em 0.45em;
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(2rem, 6.4vw, 6rem);
  line-height: 1;
}
.path i { font-style: normal; font-family: var(--sans); color: var(--muted); }
.seg { display: inline-flex; flex-direction: column; align-items: center; gap: 0.36em; }
.seg > span { position: relative; padding: 0 0.08em; }
.seg > span::after {
  content: "";
  position: absolute;
  left: 0.06em;
  right: 0.06em;
  top: calc(100% + 0.08em);
  height: 0.16em;
  border: var(--pen) solid var(--red);
  border-top: 0;
  border-radius: 0 0 12px 12px;
}
.seg small {
  font-family: var(--sans);
  font-size: clamp(0.9rem, 1.3vw, 1.2rem);
  font-weight: 750;
  font-stretch: 90%;
  color: var(--red-deep);
  white-space: nowrap;
}

.feat--undo {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  gap: 2.5rem clamp(2rem, 5vw, 5rem);
  padding-right: calc(var(--host-w) + var(--pad));
}
.keys { display: flex; flex-wrap: wrap; gap: 1.75rem 2.5rem; font-weight: 650; color: var(--muted); }
.keys span { display: inline-flex; align-items: center; gap: 0.8rem; }
kbd {
  display: inline-block;
  padding: 0.3em 0.6em 0.35em;
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.75rem);
  line-height: 1;
  color: var(--ink);
  background: var(--white);
  border: var(--pen) solid var(--ink);
  border-bottom-width: 8px;
  border-radius: 0.25em;
}

.feat--binary {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding-top: clamp(5rem, 9vw, 8rem);
  padding-right: calc(var(--host-w) + var(--pad));
}
.feat--binary .proof-scroll { padding: 0 0 5.5rem; }
.feat--binary h2 { font-size: clamp(2.25rem, 3.8vw, 3.75rem); }

/* Mods: a checklist ticked in red pen as it scrolls past. */
.feat--mods { padding-right: calc(var(--host-w) + var(--pad)); }
.feat--mods .feat__text {
  grid-template-columns: auto minmax(0, 24rem);
  justify-content: space-between;
  align-items: end;
  column-gap: clamp(2rem, 5vw, 5rem);
}
.mods { list-style: none; margin: clamp(2rem, 4vw, 3rem) 0 0; padding: 0; border-top: var(--pen) solid var(--ink); }
.mods li {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 17rem) minmax(0, 1fr);
  align-items: baseline;
  gap: 0.4rem clamp(1rem, 2.5vw, 2rem);
  padding: 1.35rem 0 1.4rem;
  border-bottom: var(--pen) solid var(--ink);
  view-timeline: --row block;
}
.mods li::before {
  content: "";
  grid-row: 1;
  grid-column: 1;
  align-self: center;
  width: 2rem;
  height: 2rem;
  background: var(--white);
  border: var(--pen) solid var(--ink);
  border-radius: 4px;
}
.mods .tick {
  grid-row: 1;
  grid-column: 1;
  align-self: center;
  width: 2.6rem;
  margin: -0.6rem 0 0 0.2rem;
  overflow: visible;
  pointer-events: none;
}
.mods .tick path {
  fill: none;
  stroke: var(--red);
  stroke-width: 4.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mods strong { font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 800; line-height: 1.05; }
.mods span { font-size: 1.0625rem; color: var(--muted); max-width: 44ch; }

/* Price: a tag hanging off the rail. */

.price {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem clamp(2rem, 6vw, 6rem);
  padding: 0 calc(var(--host-w) + var(--pad)) clamp(6rem, 10vw, 9rem) var(--pad);
  border-top: var(--pen) solid var(--ink);
}
.price__copy { display: grid; gap: 1.5rem; justify-items: start; align-content: start; padding-top: clamp(5rem, 10vw, 9rem); }
.price__copy h2 { font-size: clamp(3rem, 8vw, 7.5rem); }
.price__lead { font-size: clamp(1.25rem, 1.8vw, 1.6rem); line-height: 1.3; max-width: 26ch; }

.tag { width: clamp(12rem, 21vw, 18rem); margin-top: calc(var(--pen) * -1); }
.tag__swing { position: relative; container-type: inline-size; transform-origin: 50% 1.07%; will-change: transform; }
.tag__shape { display: block; width: 100%; height: auto; overflow: visible; }
.tag__string { fill: none; stroke: var(--ink); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.tag__nail { fill: var(--ink); }
.tag__body { fill: var(--red); stroke: var(--ink); stroke-width: var(--pen); stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.tag__ring { fill: var(--paper); stroke: var(--ink); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.tag__hole { fill: var(--paper); stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; }
.tag__text {
  position: absolute;
  inset: 39% 8% 6%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 850;
  line-height: 0.85;
  text-align: center;
}
.tag__cur { font-size: 11cqw; }
.tag__num { font-size: 46cqw; font-stretch: 88%; font-variant-numeric: tabular-nums; }
.tag__once { margin-top: 0.4em; font-size: 12cqw; font-stretch: 90%; }

/* Footer */

.foot {
  display: grid;
  gap: 1rem;
  padding: clamp(3rem, 6vw, 5rem) calc(var(--host-w) + var(--pad)) clamp(3rem, 6vw, 5rem) var(--pad);
  border-top: var(--pen) solid var(--ink);
}
.foot__mark { font-weight: 850; font-size: 1.5rem; }
.foot__lines { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; font-size: 0.9375rem; color: var(--muted); }

/* Host. One element: big in the hero, then he walks to the corner and
   stays there. site.js sets the transform. */

.host {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 60;
  width: var(--host-w);
  transform-origin: 0 0;
  will-change: transform;
  pointer-events: none;
}

.host__art {
  width: 100%;
  pointer-events: auto;
  cursor: pointer;
  user-select: none;
  -webkit-user-drag: none;
  transform-origin: 60% 100%;
  transform: rotate(calc(var(--lean, 0) * 1deg)) translateY(var(--duck, 0%));
  transition: transform 500ms var(--ease);
}
.host.is-talking .host__art { animation: pop 420ms var(--ease); }
.host.is-dismissed:not(.is-big) .host__art { --duck: 110%; }

.host__quip {
  position: absolute;
  right: 60%;
  bottom: 94%;
  width: max-content;
  max-width: min(15rem, 60vw);
  padding: 0.65rem 0.95rem 0.7rem;
  border: var(--pen) solid var(--ink);
  border-radius: 1.1rem;
  background: var(--white);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  opacity: 0;
  transform: translateY(8px) scale(0.9);
  transform-origin: 90% 100%;
  transition: opacity 160ms, transform 300ms var(--spring);
}
.host__quip::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: calc(100% - var(--pen) + 0.5px);
  width: 26px;
  height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 22'%3E%3Cpath d='M0 0 L24 20 L13 0 Z' fill='%23fffefb'/%3E%3Cpath d='M1.5 0 L24 20 L13 0' fill='none' stroke='%231d2021' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat;
}
.host__quip.is-on { opacity: 1; transform: none; }
.host.is-big .host__quip, .host.is-dismissed .host__quip { opacity: 0; }

.host__toggle {
  position: absolute;
  right: 0.25rem;
  bottom: 0.5rem;
  pointer-events: auto;
  transition: opacity 200ms;
}
.host.is-big .host__toggle { opacity: 0; pointer-events: none; }

/* Dialogs */

dialog {
  padding: 0;
  border: var(--pen) solid var(--ink);
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
}
dialog::backdrop { background: rgb(29 32 33 / 0.6); }

.status { width: min(40rem, calc(100% - 2rem)); max-height: calc(100% - 2rem); }
.status__head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.25rem; border-bottom: 2px solid var(--ink); background: var(--white);
  position: sticky; top: 0;
}
.status__head h2 { font-size: 1.125rem; }
.status__answer { padding: 1.5rem 1.25rem 0.5rem; font-size: clamp(1.5rem, 4vw, 2.25rem); font-weight: 850; line-height: 1.05; }
.status__answer strong { color: var(--red-deep); }
.status__lead { padding: 0 1.25rem 1rem; color: var(--muted); max-width: 52ch; }
.status__list { padding: 0 1.25rem 1.25rem; }
.status__list div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding: 0.75rem 0; border-top: 1px solid var(--line); }
.status__list dt { font-weight: 750; }
.state { font-weight: 750; }
.state--ok { color: #2d6a3e; }
.state--part { color: #8a5a00; }
.state--no { color: var(--red-deep); }

.viewer { width: calc(100% - 2rem); max-width: 110rem; height: calc(100% - 2rem); max-height: none; display: none; }
.viewer[open] { display: flex; flex-direction: column; }
.viewer__bar { display: flex; align-items: center; gap: 1rem; padding: 0.75rem 1rem; border-bottom: 2px solid var(--ink); background: var(--white); flex-wrap: wrap; }
.viewer__title { font-size: 1rem; }
.viewer__count { color: var(--muted); font-size: 0.875rem; }
.viewer__tools { display: flex; gap: 0.5rem; margin-left: auto; flex-wrap: wrap; }
.viewer__stage { flex: 1; min-height: 0; overflow: auto; display: grid; place-items: center; padding: 1rem; }
.viewer__stage img { max-height: 100%; width: auto; object-fit: contain; }
.viewer.is-actual .viewer__stage { place-items: start; }
.viewer.is-actual .viewer__stage img { max-width: none; max-height: none; width: auto; }
.viewer__caption { padding: 0.75rem 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.875rem; }

/* Motion */

@keyframes speak {
  from { transform: scale(0.55); opacity: 0; }
  55% { transform: scale(1.04); opacity: 1; }
  to { transform: none; }
}
@keyframes lift { from { opacity: 0; transform: translateY(1.5rem); } }
@keyframes enter { from { translate: 0 40%; } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes scrawl { from { opacity: 0; translate: 0 0.5rem; } to { opacity: 1; translate: 0 0; } }
@keyframes pop { 30% { transform: translateY(-3%) rotate(calc(var(--lean, 0) * 1deg - 2deg)); } }
@keyframes shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }

@media (prefers-reduced-motion: no-preference) {
  .bubble--hero { transform-origin: 100% 55%; animation: speak 650ms 350ms var(--ease) both; }
  .hero__sub, .hero__actions { animation: lift 700ms 600ms var(--ease) both; }
  .hero__shot { animation: lift 900ms 150ms var(--ease) both; }
  .host.is-entering .host__art { animation: enter 800ms var(--ease) both; }

  @supports (animation-timeline: view()) {
    .proof .pen path {
      stroke-dasharray: 1;
      animation: draw linear both;
      animation-timeline: --proof;
      animation-range: entry 70% cover 50%;
    }
    .proof .pen path.arrow { animation-range: cover 40% cover 55%; }
    .mods .tick path {
      stroke-dasharray: 1;
      animation: draw linear both;
      animation-timeline: --row;
      animation-range: entry 100% cover 45%;
    }
    .proof .note {
      animation: scrawl linear both;
      animation-timeline: --proof;
      animation-range: cover 45% cover 55%;
    }
  }
}

/* Narrow screens */

@media (max-width: 899px) {
  .try, .feat--undo, .feat--binary, .feat--mods, .feat--mods .feat__text, .feat--copy .feat__text { grid-template-columns: 1fr; padding-right: var(--pad); }
  .feat--copy .feat__text, .feat--mods .feat__text { padding-right: 0; }
  .feat--copy .feat__text h2 { grid-row: auto; }
  .feat--binary .proof-scroll { order: 2; }
  .price { padding-right: var(--pad); }
  .proof-scroll {
    overflow-x: auto;
    margin-inline: calc(var(--pad) * -1);
    padding-inline: var(--pad);
    scrollbar-width: none;
  }
  .proof-scroll .proof { width: 46rem; }
  .note { max-width: 13rem; }
  .feat--copy .proof-scroll { padding-top: 5.5rem; margin-top: 2rem; }
  .feat--binary .proof-scroll { padding-top: 4rem; }
  .feat--binary .proof { width: 31rem; }
}

@media (max-width: 760px) {
  :root { --host-w: 6.5rem; --bar: 4rem; }
  body { font-size: 1rem; }
  .bar__links { display: none; }
  .bar .btn { margin-left: auto; }
  .hero__copy { width: auto; }
  .bubble--hero { font-size: clamp(2.3rem, 11.5vw, 3.4rem); max-width: none; }
  .bubble--hero .bubble__tail { left: 58%; top: calc(100% - var(--pen)); width: 3rem; transform: scaleX(-1) rotate(90deg); transform-origin: 0 0; }
  .hero__sub { max-width: 21ch; margin-top: 2.25rem; }
  .hero__actions { gap: 0.25rem 1rem; }
  .hero__stand { --stand-h: min(43svh, 26rem); right: -0.5rem; }
  .keys { flex-direction: column; gap: 1rem; }
  .mods li { grid-template-columns: 2.5rem minmax(0, 1fr); }
  .mods span { grid-column: 2; }
  .toy { grid-template-columns: 1fr; }
  .toy__game { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  .toy__label { width: 100%; }
  .toy__bar { width: 100%; order: 3; }
  .toy__moves { margin-top: 0; order: 4; }
  .toy__results td:nth-child(3), .toy__results th:nth-child(3) { display: none; }
  .price { grid-template-columns: 1fr; padding-bottom: 10rem; }
  .price__copy { padding-top: 2rem; order: 2; }
  .tag { width: 11rem; justify-self: center; }
  .foot { padding-right: var(--pad); padding-bottom: 10rem; }
  .host__quip { right: 66%; bottom: 82%; font-size: 0.875rem; max-width: 12rem; padding: 0.5rem 0.7rem; }
  .host__toggle { bottom: auto; top: -1.75rem; right: 0; }
  .status__list div { grid-template-columns: 1fr; gap: 0.25rem; }
}

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