/* ------------------------------------------------------------------ */
/* Autopostmate landing page                                                */
/* Tokens follow outpost-brand-and-design-system.md exactly.           */
/* ------------------------------------------------------------------ */

:root {
  --ink: #1c1b18;
  --paper: #f3efe4;
  --surface: #fbf9f3;
  --machine-blue: #3a5a78;
  --machine-blue-deep: #32506b;
  --stamp-red: #b23a2e;
  --approved-green: #4c7a54;
  --ticket-amber: #c98a2e;

  --hairline: rgba(28, 27, 24, 0.35);
  --hairline-faint: rgba(28, 27, 24, 0.14);
  --muted: rgba(28, 27, 24, 0.62);

  --font-display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'Courier New', monospace;

  --radius: 6px;
  --space: 8px;
  --gutter: clamp(16px, 4vw, 48px);
  --measure: 62ch;
  --rail-width: 208px;
  --content-max: 880px;

  /* Ruled paper: faint ledger lines every 32px. */
  --ledger: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 31px,
    rgba(28, 27, 24, 0.07) 31px,
    rgba(28, 27, 24, 0.07) 32px
  );
  /* One sheet on a pile: hard, ink-coloured, never soft grey. */
  --stack: 3px 3px 0 rgba(28, 27, 24, 0.08);
  --stack-deep:
    4px 4px 0 rgba(28, 27, 24, 0.1),
    8px 8px 0 rgba(28, 27, 24, 0.05);

  color-scheme: light;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

/* Paper grain. One fixed layer, barely there, never on top of anything. */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 30;
  background: var(--ink);
  pointer-events: none;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.11 0 0 0 0 0.106 0 0 0 0 0.094 0 0 0 0.09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

h1,
h2,
h3,
p,
dl,
dd,
figure,
blockquote {
  margin: 0;
}

a {
  color: var(--machine-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--machine-blue);
  outline-offset: 2px;
}

img {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.skip {
  position: absolute;
  top: -100px;
  left: var(--gutter);
  padding: 8px 12px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  z-index: 100;
}

.skip:focus {
  top: 12px;
}

/* ------------------------------------------------------------------ */
/* Buttons: one filled action per screen, everything else outlined.     */
/* ------------------------------------------------------------------ */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 1px solid rgba(28, 27, 24, 0.45);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition:
    transform 120ms ease,
    background-color 120ms ease,
    border-color 120ms ease;
}

.button:hover {
  border-color: var(--ink);
  background: rgba(28, 27, 24, 0.04);
  text-decoration: none;
}

.button:disabled,
.button[aria-disabled='true'] {
  cursor: not-allowed;
  opacity: 0.55;
}

.button--primary {
  background: var(--machine-blue);
  border-color: var(--machine-blue);
  color: var(--paper);
}

.button--primary:hover {
  background: var(--machine-blue-deep);
  border-color: var(--machine-blue-deep);
  transform: translateY(-1px);
}

.button--primary:disabled:hover {
  transform: none;
  background: var(--machine-blue);
}

.button--quiet {
  border-color: var(--hairline-faint);
  color: var(--muted);
}

/* ------------------------------------------------------------------ */
/* Masthead                                                            */
/* ------------------------------------------------------------------ */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(var(--space) * 2);
  padding: calc(var(--space) * 1.5) var(--gutter);
  border-bottom: 1px solid var(--hairline-faint);
}

.masthead__brand {
  display: inline-flex;
  align-items: center;
}

.masthead__brand:hover {
  text-decoration: none;
}

/* The wordmark alone, cut from the emblem, so the bar stays one line tall. */
.masthead__logo {
  display: block;
  height: 26px;
  width: auto;
}

.masthead__nav {
  display: flex;
  align-items: center;
  gap: calc(var(--space) * 2.5);
}

.masthead__link {
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 500;
}

.masthead__link[aria-current='page'] {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* The menu button exists only on small screens. */
.masthead__menu {
  display: none;
  padding: 8px 14px;
  border: 1px solid rgba(28, 27, 24, 0.45);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
}

@media (max-width: 680px) {
  .masthead {
    position: relative;
    padding: 10px var(--gutter);
  }

  .masthead__menu {
    display: inline-flex;
  }

  /* Closed: gone. Open: a panel under the bar, links stacked, full width. */
  .masthead__nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 20;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: calc(var(--space) * 1) var(--gutter) calc(var(--space) * 2);
    border-bottom: 2px solid var(--ink);
    background: var(--paper);
  }

  .masthead__nav--open {
    display: flex;
  }

  .masthead__nav .masthead__link {
    padding: calc(var(--space) * 1.5) 0;
    border-bottom: 1px solid var(--hairline-faint);
    font-size: 1.0625rem;
    text-align: left;
  }

  .masthead__nav .masthead__link[aria-current='page'] {
    text-decoration: none;
    color: var(--machine-blue);
  }

  .masthead__nav .masthead__user {
    padding: calc(var(--space) * 1.5) 0 calc(var(--space) * 0.5);
  }

  .masthead__nav .button {
    margin-top: calc(var(--space) * 2);
    justify-content: center;
  }
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: calc(var(--space) * 8);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: calc(var(--space) * 8) var(--gutter) calc(var(--space) * 10);
  /* Ledger rules behind the sheet: a work order is written on ruled paper. */
  background-image: var(--ledger);
  background-size: 100% 32px;
  background-position: 0 calc(var(--space) * 8);
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: calc(var(--space) * 4);
}

/* The stamped shipping-label voice, as large as the paper allows. */
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

/* The pennant from the logo, planted after the last word. */
.hero__flag {
  display: inline-block;
  width: 0.34em;
  height: 0.56em;
  margin-left: 0.08em;
  vertical-align: baseline;
  color: var(--ink);
}

.hero__lede {
  max-width: 46ch;
  font-size: 1.1875rem;
  line-height: 1.5;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space);
}

/* The shop picker: real radios, drawn as chips. Nothing else on the page
   looks like this, because nothing else changes the whole page. */
.picker {
  margin: 0;
  padding: 0;
  border: 0;
}

.picker__legend {
  padding: 0;
  margin-bottom: calc(var(--space) * 1.25);
  font-size: 0.9375rem;
  font-weight: 500;
}

.picker__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space);
}

.chip {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}

.chip__input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}

.chip__text {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 0.9375rem;
  font-weight: 500;
  transition:
    background-color 120ms ease,
    border-color 120ms ease,
    color 120ms ease;
}

.chip:hover .chip__text {
  border-color: var(--ink);
  transform: translateY(-1px);
}

.chip__text {
  box-shadow: 2px 2px 0 rgba(28, 27, 24, 0.08);
}

.chip__input:checked + .chip__text {
  box-shadow: 2px 2px 0 rgba(28, 27, 24, 0.25);
}

.chip__input:checked + .chip__text {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.chip__input:focus-visible + .chip__text {
  outline: 2px solid var(--machine-blue);
  outline-offset: 2px;
}

/* The work order: the first traveler card on the page. A stub of punched
   holes along the top and a hard offset shadow, like one ticket on a pile. */
.order {
  position: relative;
  border: 1px solid var(--hairline);
  border-top: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--surface);
  padding: calc(var(--space) * 2.25) calc(var(--space) * 2.5) calc(var(--space) * 2.5);
  box-shadow:
    4px 4px 0 rgba(28, 27, 24, 0.1),
    8px 8px 0 rgba(28, 27, 24, 0.05);
}

.order::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 10px;
  right: 10px;
  height: 6px;
  background: radial-gradient(circle at 3px 3px, var(--paper) 2.2px, transparent 2.8px) 0 0 / 12px 6px repeat-x;
  border-bottom: 1px dashed var(--hairline-faint);
}

.order__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space) calc(var(--space) * 2);
  padding-bottom: calc(var(--space) * 0.75);
  border-bottom: 1px solid var(--hairline-faint);
}

.order__label {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.order__id,
.rail__readout,
.approval__readout,
.variant__meta,
.check__value,
.kb__proof-source,
.finding__rule,
.bench__spec dd,
.footer__microline {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.order__rows {
  display: flex;
  flex-direction: column;
}

.order__row {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: calc(var(--space) * 2);
  padding: calc(var(--space) * 1.25) 0;
  border-bottom: 1px solid var(--hairline-faint);
  font-size: 0.9375rem;
}

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

.order__row dd {
  font-weight: 500;
}

.order__note {
  margin-top: calc(var(--space) * 2);
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ------------------------------------------------------------------ */
/* The line: rail plus stages                                          */
/* ------------------------------------------------------------------ */

.line {
  display: grid;
  grid-template-columns: var(--rail-width) minmax(0, 1fr);
  gap: calc(var(--space) * 8);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  border-top: 2px solid var(--ink);
}

.rail {
  position: sticky;
  top: 0;
  align-self: start;
  padding-top: calc(var(--space) * 5);
  padding-bottom: calc(var(--space) * 4);
}

.rail__title {
  margin-bottom: calc(var(--space) * 2);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rail__track {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
}

/* Every stage is a stub of the real tracker: a bar on top, the label under. */
.rail__stage {
  border-top: 3px solid var(--hairline-faint);
  padding: calc(var(--space) * 0.75) 0 calc(var(--space) * 1.25);
  opacity: 0.55;
  transition:
    border-color 200ms ease,
    opacity 200ms ease;
}

.rail__stage a {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.rail__stage a:hover {
  text-decoration: none;
  color: var(--ink);
}

.rail__stage--you a::after {
  content: 'you';
  margin-left: 6px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  vertical-align: 2px;
  color: var(--ticket-amber);
}

.rail__stage--done {
  opacity: 1;
  border-top-color: var(--approved-green);
}

.rail__stage--done a {
  color: var(--approved-green);
}

.rail__stage--active {
  opacity: 1;
  border-top-color: var(--ticket-amber);
  animation: rail-pulse 1600ms ease-in-out infinite;
}

@keyframes rail-pulse {
  0%,
  100% {
    border-top-color: var(--ticket-amber);
  }

  50% {
    border-top-color: rgba(201, 138, 46, 0.45);
  }
}

.rail__stage--active a {
  color: var(--ticket-amber);
}

.rail__readout {
  margin-top: calc(var(--space) * 2);
  padding-top: calc(var(--space) * 1.5);
  border-top: 1px solid var(--hairline-faint);
}

/* "3 of 8 · Copy guardrails": the small-screen strip's one line of text. */
.rail__current {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.stages {
  max-width: var(--content-max);
  counter-reset: stage;
}

.stage {
  position: relative;
  padding: calc(var(--space) * 7) 0 calc(var(--space) * 8);
  border-bottom: 1px solid var(--hairline);
  counter-increment: stage;
}

/* The stage's own number, oversized and faint, like a number painted on the
   floor beside the station. Same real sequence, nothing invented. */
.stage::before {
  content: counter(stage);
  position: absolute;
  top: calc(var(--space) * 2);
  right: 0;
  z-index: 0;
  font-family: var(--font-display);
  font-size: clamp(7rem, 14vw, 12rem);
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
  opacity: 0.055;
  pointer-events: none;
  user-select: none;
}

.stage > * {
  position: relative;
  z-index: 1;
}

.stage:last-child {
  border-bottom: 0;
}

.stage__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: calc(var(--space) * 2);
  margin-bottom: calc(var(--space) * 2);
}

/* Numbering is earned: this is the pipeline's real order. */
.stage__number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--machine-blue);
}

.stage__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.stage__lede {
  max-width: var(--measure);
  margin-bottom: calc(var(--space) * 4);
  font-size: 1.0625rem;
  line-height: 1.55;
}

.stage__note {
  max-width: var(--measure);
  margin-top: calc(var(--space) * 3);
  font-size: 0.875rem;
  color: var(--muted);
}

/* The two stages that are the visitor's: a ticket, not a flat section. */
.stage--you {
  margin-block: calc(var(--space) * 4);
  padding: calc(var(--space) * 5) calc(var(--space) * 4) calc(var(--space) * 6);
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--ticket-amber);
  border-radius: var(--radius);
  background: var(--surface);
}

.stage--you + .stage {
  border-top: 1px solid var(--hairline);
}

/* Who does the stage: a status-style badge, tinted ground, full-strength text. */
.who {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  align-self: center;
}

.who--model {
  background: rgba(58, 90, 120, 0.12);
  color: var(--machine-blue);
}

.who--code {
  background: rgba(28, 27, 24, 0.08);
  color: var(--ink);
}

.who--you {
  background: rgba(201, 138, 46, 0.16);
  color: var(--ticket-amber);
}

.aside {
  max-width: var(--measure);
  margin-top: calc(var(--space) * 4);
  padding-left: calc(var(--space) * 2);
  border-left: 2px solid var(--machine-blue);
  font-size: 0.9375rem;
  color: var(--muted);
}

.aside strong {
  color: var(--ink);
  font-weight: 500;
}

/* ---- 1 Research: the knowledge base as it was handed over ---------- */

.kb {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(var(--space) * 2);
}

.kb__card {
  padding: calc(var(--space) * 2) calc(var(--space) * 2.5);
  border: 1px solid var(--hairline);
  border-top: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 0.9375rem;
  box-shadow: 3px 3px 0 rgba(28, 27, 24, 0.08);
}

.kb__label {
  margin-bottom: calc(var(--space) * 1);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.kb__label--gap {
  margin-top: calc(var(--space) * 2);
}

.kb__voice {
  font-size: 1.0625rem;
}

.kb__list,
.kb__tags {
  margin: 0;
  padding: 0;
  list-style: none;
}

.kb__proof {
  display: flex;
  flex-direction: column;
  padding: calc(var(--space) * 0.75) 0;
  border-top: 1px solid var(--hairline-faint);
}

.kb__proof:first-child {
  border-top: 0;
  padding-top: 0;
}

.kb__tags {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--space) * 0.75);
}

.kb__tag {
  padding: 3px 10px;
  border: 1px solid var(--stamp-red);
  border-radius: 999px;
  color: var(--stamp-red);
  font-size: 0.8125rem;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

/* ---- 2 Generate: two variants ---------------------------------------- */

.variants {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(var(--space) * 2);
}

.variant {
  display: flex;
  flex-direction: column;
  gap: calc(var(--space) * 1.5);
  padding: calc(var(--space) * 1.5) calc(var(--space) * 2.5) calc(var(--space) * 2.5);
  border: 1px solid var(--hairline);
  border-top: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 3px 3px 0 rgba(28, 27, 24, 0.08);
}

.variant__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space);
  padding-bottom: calc(var(--space) * 0.75);
  border-bottom: 1px solid var(--hairline-faint);
}

.variant__tag {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.variant__headline {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.25;
}

.variant__caption {
  font-size: 0.9375rem;
  line-height: 1.5;
}

.variant--fixed {
  margin-top: calc(var(--space) * 3);
  border-top-color: var(--approved-green);
}

/* ---- 3 Guardrails: a finding, a return, a rewrite -------------------- */

.finding {
  padding: calc(var(--space) * 2) calc(var(--space) * 2.5);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--stamp-red);
  border-radius: var(--radius);
  background: var(--surface);
}

.finding__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space);
  margin-bottom: calc(var(--space) * 1);
}

.finding__rule {
  color: var(--stamp-red);
  font-weight: 500;
}

.finding__where {
  font-size: 0.8125rem;
  color: var(--muted);
}

.finding__detail {
  font-size: 0.9375rem;
}

.finding__quote {
  margin-top: calc(var(--space) * 1.5);
  padding: calc(var(--space) * 1) calc(var(--space) * 1.5);
  border-radius: 4px;
  background: rgba(178, 58, 46, 0.07);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.finding__quote:empty {
  display: none;
}

.return {
  display: flex;
  align-items: center;
  gap: calc(var(--space) * 1.5);
  max-width: var(--measure);
  margin: calc(var(--space) * 3) 0 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

.return__arrow {
  flex: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--stamp-red);
}

/* ---- 4 Fact-check: verdicts ------------------------------------------ */

.verdicts {
  display: flex;
  flex-direction: column;
  gap: calc(var(--space) * 1.5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.verdict {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr);
  gap: calc(var(--space) * 0.5) calc(var(--space) * 3);
  padding: calc(var(--space) * 1.5) calc(var(--space) * 2);
  border: 1px solid var(--hairline-faint);
  border-left: 3px solid var(--approved-green);
  border-radius: var(--radius);
  background: var(--surface);
}

.verdict--question {
  border-left-color: var(--ticket-amber);
}

.verdict__head {
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.verdict__kind {
  font-weight: 500;
  color: var(--approved-green);
}

.verdict--question .verdict__kind {
  color: var(--ticket-amber);
}

.verdict__where {
  font-size: 0.8125rem;
  color: var(--muted);
}

.verdict__claim {
  font-weight: 500;
}

.verdict__note {
  font-size: 0.9375rem;
  color: var(--muted);
}

/* ---- 5 Copy selection: your choice ----------------------------------- */

.choose {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(var(--space) * 2);
}

.choice {
  position: relative;
  display: block;
  cursor: pointer;
}

.choice__input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}

.choice__body {
  display: flex;
  flex-direction: column;
  gap: calc(var(--space) * 1);
  height: 100%;
  padding: calc(var(--space) * 2) calc(var(--space) * 2.5) calc(var(--space) * 2.5);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 3px 3px 0 rgba(28, 27, 24, 0.08);
  transition:
    border-color 120ms ease,
    box-shadow 120ms ease,
    transform 120ms ease;
}

.choice:hover .choice__body {
  border-color: var(--ink);
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 rgba(28, 27, 24, 0.12);
}

.choice__input:checked + .choice__body {
  border-color: var(--machine-blue);
  background: var(--surface);
  box-shadow:
    inset 0 0 0 1px var(--machine-blue),
    3px 3px 0 rgba(58, 90, 120, 0.25);
}

.choice__input:focus-visible + .choice__body {
  outline: 2px solid var(--machine-blue);
  outline-offset: 2px;
}

.choice__tag {
  display: flex;
  align-items: center;
  gap: var(--space);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.choice__tag::before {
  content: '';
  width: 14px;
  height: 14px;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  background: var(--surface);
}

.choice__input:checked + .choice__body .choice__tag::before {
  border-color: var(--machine-blue);
  background: radial-gradient(circle, var(--machine-blue) 45%, transparent 50%);
}

.choice__headline {
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.3;
}

.choice__caption {
  font-size: 0.9375rem;
  color: var(--muted);
}

/* ---- 6 Design: the slide the page draws ------------------------------ */

.bench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.8fr);
  gap: calc(var(--space) * 4);
  align-items: start;
}

.slide {
  --slide-bg: #e9d8b4;
  --slide-band: var(--slide-bg);
  --slide-text: #2b2118;
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 440px;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  background: var(--slide-bg);
  color: var(--slide-text);
  overflow: hidden;
  container-type: inline-size;
  box-shadow:
    4px 4px 0 rgba(28, 27, 24, 0.1),
    8px 8px 0 rgba(28, 27, 24, 0.05);
}

.slide__band {
  position: absolute;
  left: 0;
  right: 0;
  padding: 7cqw 8cqw;
  background: var(--slide-band);
}

.slide[data-layout='lower_third'] .slide__band {
  bottom: 0;
  padding-bottom: 16cqw;
}

.slide[data-layout='upper_third'] .slide__band {
  top: 0;
}

.slide[data-layout='centered'] .slide__band {
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
}

.slide__headline {
  font-family: var(--font-display);
  font-size: 11cqw;
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

.slide__body {
  margin-top: 3cqw;
  font-size: 3.6cqw;
  line-height: 1.35;
}

.slide__logo {
  position: absolute;
  right: 4cqw;
  bottom: 4cqw;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 11cqw;
  height: 11cqw;
  padding: 0 2cqw;
  border-radius: 2cqw;
  background: var(--slide-text);
  color: var(--slide-bg);
  font-family: var(--font-display);
  font-size: 4.5cqw;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.slide__stamp {
  position: absolute;
  top: 6cqw;
  right: 6cqw;
}

.slide[data-layout='upper_third'] .slide__stamp {
  top: auto;
  bottom: 20cqw;
}

.bench__spec {
  display: flex;
  flex-direction: column;
  font-size: 0.9375rem;
}

.bench__spec > div {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: var(--space);
  padding: calc(var(--space) * 1.25) 0;
  border-bottom: 1px solid var(--hairline-faint);
}

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

.bench__spec dd {
  font-size: 0.8125rem;
  color: var(--ink);
}

/* The QC stamp. Earned marks only. */
.stamp {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 5px 12px;
  border: 2px double var(--approved-green);
  border-radius: 2px;
  color: var(--approved-green);
  font-family: var(--font-mono);
  text-transform: uppercase;
  background: rgba(251, 249, 243, 0.85);
  transform: rotate(-6deg);
  animation: stamp-press 260ms cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}

.stamp__label {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.stamp__sub {
  font-size: 0.5625rem;
  letter-spacing: 0.06em;
}

@keyframes stamp-press {
  from {
    opacity: 0;
    transform: rotate(-6deg) scale(1.5);
  }

  to {
    opacity: 1;
    transform: rotate(-6deg) scale(1);
  }
}

/* ---- 7 Visual checks: readouts computed on this page ----------------- */

.checks {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hairline);
}

.check {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 6rem;
  gap: calc(var(--space) * 2);
  align-items: baseline;
  padding: calc(var(--space) * 1.5) 0;
  border-bottom: 1px solid var(--hairline-faint);
  font-size: 0.9375rem;
}

.check__name {
  font-weight: 500;
}

.check__mark {
  justify-self: end;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: lowercase;
}

.check--pass .check__mark {
  background: rgba(76, 122, 84, 0.14);
  color: var(--approved-green);
}

.check--corrected .check__mark {
  background: rgba(201, 138, 46, 0.16);
  color: var(--ticket-amber);
}

/* ---- 8 Final approval -------------------------------------------------- */

.approval {
  display: flex;
  flex-direction: column;
  gap: calc(var(--space) * 2);
}

.approval__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space);
}

.approval__result {
  max-width: var(--measure);
  padding: calc(var(--space) * 1.5) calc(var(--space) * 2);
  border-left: 3px solid var(--approved-green);
  background: rgba(76, 122, 84, 0.08);
  font-size: 0.9375rem;
}

.approval--capped .approval__result {
  border-left-color: var(--stamp-red);
  background: rgba(178, 58, 46, 0.07);
}

.approval__after {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space);
}

.approval__after-note {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ------------------------------------------------------------------ */
/* Rules, the floor, close, footer                                     */
/* ------------------------------------------------------------------ */

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.section-lede {
  max-width: 56ch;
  margin-top: calc(var(--space) * 1.5);
  font-size: 1.0625rem;
  color: var(--muted);
}

.rules {
  padding: calc(var(--space) * 10) max(var(--gutter), calc((100% - 1200px) / 2 + var(--gutter)));
  background: var(--ink);
  color: var(--paper);
}

.rules .section-lede {
  color: rgba(243, 239, 228, 0.66);
}

.rules__head {
  margin-bottom: calc(var(--space) * 5);
}

.rules__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: calc(var(--space) * 4) calc(var(--space) * 5);
}

.rule {
  padding-top: calc(var(--space) * 1.5);
  border-top: 3px solid var(--approved-green);
}

.rule dt {
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.3;
}

.rule dd {
  margin-top: calc(var(--space) * 0.75);
  font-size: 0.9375rem;
  color: rgba(243, 239, 228, 0.7);
}

.floor {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: calc(var(--space) * 8);
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: calc(var(--space) * 9) var(--gutter);
}

.floor__list {
  margin-top: calc(var(--space) * 4);
  border-top: 1px solid var(--hairline);
}

.floor__list > div {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: calc(var(--space) * 2);
  padding: calc(var(--space) * 1.5) 0;
  border-bottom: 1px solid var(--hairline-faint);
}

.floor__list dt {
  font-weight: 500;
}

.floor__list dd {
  font-size: 0.9375rem;
  color: var(--muted);
}

.floor__art {
  position: sticky;
  top: calc(var(--space) * 3);
  padding: calc(var(--space) * 2);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: #f2ecdf;
  box-shadow:
    4px 4px 0 rgba(28, 27, 24, 0.1),
    8px 8px 0 rgba(28, 27, 24, 0.05);
}

.floor__art img {
  display: block;
  width: 100%;
  height: auto;
}

.floor__art figcaption {
  margin-top: calc(var(--space) * 1.5);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  color: var(--muted);
}

.close {
  display: flex;
  flex-direction: column;
  gap: calc(var(--space) * 3);
  max-width: 1200px;
  margin: 0 auto;
  padding: calc(var(--space) * 12) var(--gutter);
  border-top: 2px solid var(--ink);
}

.close__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

.close__lede {
  max-width: 48ch;
  font-size: 1.125rem;
}

.close__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: calc(var(--space) * 2);
  max-width: 1200px;
  margin: 0 auto;
  padding: calc(var(--space) * 3) var(--gutter) calc(var(--space) * 5);
  border-top: 1px solid var(--hairline-faint);
}

.footer__microline {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer__links {
  display: flex;
  gap: calc(var(--space) * 2);
  font-size: 0.875rem;
}

/* ------------------------------------------------------------------ */
/* Document pages (privacy policy). Same paper, a contents rail, and   */
/* one reading column. Placeholders that still need a fact are amber.  */
/* ------------------------------------------------------------------ */

.doc {
  max-width: 1200px;
  margin: 0 auto;
  padding: calc(var(--space) * 7) var(--gutter) calc(var(--space) * 10);
}

.doc {
  position: relative;
}

.doc::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: min(520px, 55vh);
  z-index: -1;
  background-image: var(--ledger);
  background-size: 100% 32px;
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent);
  mask-image: linear-gradient(to bottom, #000 60%, transparent);
  pointer-events: none;
}

.doc__head {
  max-width: 70ch;
  padding-bottom: calc(var(--space) * 4);
  border-bottom: 2px solid var(--ink);
}

.doc__kind {
  margin-bottom: calc(var(--space) * 1.5);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.doc__title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

.doc__lede {
  max-width: 56ch;
  margin-top: calc(var(--space) * 3);
  font-size: 1.125rem;
}

.doc__meta {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--space) * 1.5) calc(var(--space) * 5);
  margin-top: calc(var(--space) * 3);
  font-size: 0.875rem;
}

.doc__meta > div {
  display: flex;
  gap: var(--space);
}

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

.doc__meta dd {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
}

.doc__body {
  display: grid;
  grid-template-columns: var(--rail-width) minmax(0, 1fr);
  gap: calc(var(--space) * 8);
  padding-top: calc(var(--space) * 5);
}

.contents {
  position: sticky;
  top: calc(var(--space) * 3);
  align-self: start;
}

.contents__title {
  margin-bottom: calc(var(--space) * 1.5);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contents__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hairline);
}

.contents__list li {
  border-bottom: 1px solid var(--hairline-faint);
}

.contents__list a {
  display: block;
  padding: calc(var(--space) * 0.75) 0;
  font-size: 0.875rem;
  color: var(--ink);
}

.prose {
  max-width: var(--measure);
}

.prose section {
  padding: calc(var(--space) * 3) 0 calc(var(--space) * 4);
  border-bottom: 1px solid var(--hairline-faint);
}

.prose section:first-child {
  padding-top: 0;
}

.prose h2 {
  margin-bottom: calc(var(--space) * 2);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.prose h3 {
  margin: calc(var(--space) * 3) 0 var(--space);
  font-size: 1rem;
  font-weight: 500;
}

.prose p {
  margin: 0 0 calc(var(--space) * 2);
  font-size: 1rem;
  line-height: 1.6;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose ul {
  margin: 0 0 calc(var(--space) * 2);
  padding-left: 1.25em;
  line-height: 1.55;
}

.prose li {
  margin-bottom: calc(var(--space) * 0.75);
}

.prose strong {
  font-weight: 500;
}

/* The user guide: numbered steps and tips inside the document column. */
.prose ol {
  margin: 0 0 calc(var(--space) * 2);
  padding-left: 1.5em;
  line-height: 1.55;
}

.prose ol li {
  margin-bottom: calc(var(--space) * 0.75);
  padding-left: 0.25em;
}

.prose .aside {
  margin: calc(var(--space) * 2) 0 calc(var(--space) * 2);
}

.prose .table-wrap {
  margin-bottom: calc(var(--space) * 2);
}

.prose .services {
  min-width: 480px;
}

.prose .services tbody th {
  width: 11rem;
}

/* A fact the operator still has to supply. Loud on purpose. */
.todo {
  padding: 0 4px;
  border-radius: 3px;
  background: rgba(201, 138, 46, 0.18);
  color: #7a5417;
  font-size: 0.9375em;
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 calc(var(--space) * 2);
}

.services {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.services th,
.services td {
  padding: calc(var(--space) * 1.25) calc(var(--space) * 1.5) calc(var(--space) * 1.25) 0;
  border-bottom: 1px solid var(--hairline-faint);
  text-align: left;
  vertical-align: top;
}

.services thead th {
  border-bottom: 2px solid var(--ink);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.services tbody th {
  width: 8rem;
  font-weight: 500;
}

.keep > div {
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr);
  gap: calc(var(--space) * 2);
  padding: calc(var(--space) * 1.5) 0;
  border-bottom: 1px solid var(--hairline-faint);
}

.keep dt {
  font-weight: 500;
}

.keep dd {
  font-size: 0.9375rem;
  color: var(--muted);
}

@media (max-width: 1000px) {
  .doc__body {
    display: block;
  }

  .contents {
    position: static;
    margin-bottom: calc(var(--space) * 5);
  }

  .contents__list {
    columns: 2;
    column-gap: calc(var(--space) * 4);
  }

  .keep > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* ------------------------------------------------------------------ */
/* Blog: a list of entries, and a post. Rows, not cards. The date is    */
/* real data, so it is the one mono thing on the row.                   */
/* ------------------------------------------------------------------ */

.entries {
  max-width: 70ch;
  margin: 0;
  padding: calc(var(--space) * 2) 0 0;
  list-style: none;
}

.entry {
  position: relative;
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: calc(var(--space) * 3);
  margin-bottom: calc(var(--space) * 2.5);
  padding: calc(var(--space) * 3) calc(var(--space) * 3) calc(var(--space) * 3.5);
  border: 1px solid var(--hairline);
  border-top: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--stack);
  transition:
    transform 120ms ease,
    box-shadow 120ms ease;
}

.entry:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 rgba(28, 27, 24, 0.12);
}

/* The whole ticket is the link: the title's anchor is stretched over it. */
.entry__title a::after {
  content: '';
  position: absolute;
  inset: 0;
}

.entry__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.entry__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

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

.entry__title a:hover {
  color: var(--machine-blue);
  text-decoration: none;
}

.entry__standfirst {
  margin-top: calc(var(--space) * 1.5);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--muted);
}

.doc--post {
  padding-top: calc(var(--space) * 6);
}

.post {
  max-width: 68ch;
}

.post__head {
  padding-bottom: calc(var(--space) * 4);
  margin-bottom: calc(var(--space) * 5);
  border-bottom: 2px solid var(--ink);
}

.post__crumb {
  margin-bottom: calc(var(--space) * 2);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

.post__title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6vw, 4.75rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

.post__standfirst {
  margin-top: calc(var(--space) * 3);
  font-size: 1.1875rem;
  line-height: 1.5;
}

.prose--post {
  max-width: none;
}

.prose--post p,
.prose--post ul {
  font-size: 1.0625rem;
  line-height: 1.65;
}

.prose--post h2 {
  margin-top: calc(var(--space) * 5);
  font-size: 1.75rem;
}

/* Tables inside a post: hairline rows, display-face header, scroll when narrow. */
.prose--post table {
  width: 100%;
  margin: 0 0 calc(var(--space) * 3);
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.prose--post th,
.prose--post td {
  padding: calc(var(--space) * 1.25) calc(var(--space) * 1.5) calc(var(--space) * 1.25) 0;
  border-bottom: 1px solid var(--hairline-faint);
  text-align: left;
  vertical-align: top;
}

.prose--post thead th {
  border-bottom: 2px solid var(--ink);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.prose--post hr {
  margin: calc(var(--space) * 5) 0;
  border: 0;
  border-top: 2px solid var(--ink);
}

.prose--post ol {
  margin: 0 0 calc(var(--space) * 2);
  padding-left: 1.4em;
  line-height: 1.55;
}

.prose--post ol li {
  margin-bottom: calc(var(--space) * 1.5);
}

/* One editorial device: the first letter set in the display face. */
.prose--post > p:first-of-type::first-letter {
  float: left;
  margin: 0.08em 0.14em 0 0;
  font-family: var(--font-display);
  font-size: 3.6em;
  font-weight: 800;
  line-height: 0.8;
  color: var(--ink);
}

.post__figure {
  margin: calc(var(--space) * 4) 0;
}

.post__figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--stack-deep);
}

.prose--post img {
  box-shadow: var(--stack-deep);
  border-radius: var(--radius);
}

.post__figure figcaption {
  margin-top: var(--space);
  font-size: 0.875rem;
  color: var(--muted);
}

.post__foot {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space);
  margin-top: calc(var(--space) * 6);
  padding-top: calc(var(--space) * 4);
  border-top: 1px solid var(--hairline);
}

@media (max-width: 680px) {
  .entry {
    grid-template-columns: 1fr;
    gap: var(--space);
  }

  .entry__meta {
    flex-direction: row;
    flex-wrap: wrap;
    gap: calc(var(--space) * 2);
    padding-top: 0;
  }

  .entry {
    padding: calc(var(--space) * 2) calc(var(--space) * 2) calc(var(--space) * 2.5);
  }

  .prose--post table {
    display: block;
    overflow-x: auto;
  }

  .doc::before {
    display: none;
  }
}

.entries__status {
  padding: calc(var(--space) * 3) 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

.entry__author {
  color: var(--ink);
}

.doc__filter {
  margin-top: calc(var(--space) * 3);
  font-size: 0.9375rem;
  color: var(--muted);
}

/* ---- Author card: under a post, and on the writers page ------------ */

.post__author {
  margin-top: calc(var(--space) * 6);
}

.post__author .author {
  position: relative;
  padding: calc(var(--space) * 3) calc(var(--space) * 3) calc(var(--space) * 3);
  border: 1px solid var(--hairline);
  border-top: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--stack-deep);
}

.post__author .author::before,
.writer::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 10px;
  right: 10px;
  height: 6px;
  background: radial-gradient(circle at 3px 3px, var(--paper) 2.2px, transparent 2.8px) 0 0 / 12px 6px repeat-x;
  border-bottom: 1px dashed var(--hairline-faint);
}

.post__author-title {
  margin-bottom: calc(var(--space) * 2);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.author {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: calc(var(--space) * 2.5);
  align-items: start;
}

.author__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--paper);
  box-shadow: var(--stack);
}

.author__avatar--blank {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--machine-blue);
}

.author__body {
  display: flex;
  flex-direction: column;
  gap: calc(var(--space) * 0.5);
}

.author__name {
  font-size: 1.125rem;
  font-weight: 500;
}

.author__title {
  font-size: 0.9375rem;
  color: var(--muted);
}

.author__bio {
  margin-top: calc(var(--space) * 0.5);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.author__links {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--space) * 2);
  margin-top: calc(var(--space) * 0.75);
  font-size: 0.9375rem;
  font-weight: 500;
}

.writers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: calc(var(--space) * 3);
  padding-top: calc(var(--space) * 4);
}

.writer {
  position: relative;
  padding: calc(var(--space) * 3) calc(var(--space) * 2.5) calc(var(--space) * 2.5);
  border: 1px solid var(--hairline);
  border-top: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--stack);
  transition:
    transform 120ms ease,
    box-shadow 120ms ease;
}

.writer:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 rgba(28, 27, 24, 0.12);
}

.writer__count {
  margin-top: calc(var(--space) * 2);
  padding-top: calc(var(--space) * 1.5);
  border-top: 1px solid var(--hairline-faint);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* ---- Sidebar on the blog list and on a post -------------------------- */

.post-layout,
.list-layout {
  display: grid;
  grid-template-columns: minmax(0, 68ch) 300px;
  gap: calc(var(--space) * 8);
  align-items: start;
}

.list-layout {
  padding-top: calc(var(--space) * 2);
  grid-template-columns: minmax(0, 70ch) 300px;
}

.list-layout .entries {
  padding-top: 0;
}

.side {
  position: sticky;
  top: calc(var(--space) * 3);
  display: flex;
  flex-direction: column;
  gap: calc(var(--space) * 3);
}

.side__box {
  padding: calc(var(--space) * 2) calc(var(--space) * 2.5) calc(var(--space) * 2.5);
  border: 1px solid var(--hairline);
  border-top: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--stack);
}

.side__title {
  margin-bottom: calc(var(--space) * 1.5);
  padding-bottom: calc(var(--space) * 0.75);
  border-bottom: 1px solid var(--hairline-faint);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.side__text {
  margin: 0 0 calc(var(--space) * 2);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--muted);
}

.side__more {
  display: inline-block;
  margin-top: calc(var(--space) * 1.5);
  font-size: 0.9375rem;
  font-weight: 500;
}

.side__box--cta {
  border-top-color: var(--ticket-amber);
}

.side__cta-title {
  margin-bottom: calc(var(--space) * 1);
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

.side__box--cta .button {
  width: 100%;
}

.next {
  margin: 0;
  padding: 0;
  list-style: none;
}

.next__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: calc(var(--space) * 1.25) 0;
  border-bottom: 1px solid var(--hairline-faint);
}

.next__item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.next__title {
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
}

.next__title:hover {
  color: var(--machine-blue);
  text-decoration: none;
}

.next__meta {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.side-writers {
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-writers__item {
  display: flex;
  align-items: center;
  gap: calc(var(--space) * 1.5);
  padding: calc(var(--space) * 1) 0;
  border-bottom: 1px solid var(--hairline-faint);
}

.side-writers__item:last-child {
  border-bottom: 0;
}

.side-writers__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--paper);
}

.side-writers__avatar--blank {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--machine-blue);
}

.side-writers__body {
  display: flex;
  flex-direction: column;
  font-size: 0.9375rem;
  font-weight: 500;
}

.side-writers__body a {
  color: var(--ink);
}

.side-writers__title {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--muted);
}

@media (max-width: 1000px) {
  .post-layout,
  .list-layout {
    grid-template-columns: 1fr;
    gap: calc(var(--space) * 5);
  }

  .side {
    position: static;
  }
}

/* ------------------------------------------------------------------ */
/* Writers' portal (admin/). Forms, tabs, a table, the editor.         */
/* ------------------------------------------------------------------ */

.admin-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.admin-body .footer {
  width: 100%;
  margin-top: auto;
}

.masthead__user {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.admin {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: calc(var(--space) * 6) var(--gutter) calc(var(--space) * 10);
}

.admin__gate {
  max-width: 440px;
}

.admin__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

.admin__lede {
  max-width: 56ch;
  margin: calc(var(--space) * 2) 0 calc(var(--space) * 4);
  font-size: 1rem;
  color: var(--muted);
}

.admin__foot {
  margin-top: calc(var(--space) * 4);
  padding-top: calc(var(--space) * 2);
  border-top: 1px solid var(--hairline-faint);
  font-size: 0.9375rem;
  color: var(--muted);
}

.form {
  display: flex;
  flex-direction: column;
  gap: calc(var(--space) * 2);
}

.form--profile {
  max-width: 560px;
}

.form--inline {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
  gap: calc(var(--space) * 2);
  align-items: end;
  max-width: 760px;
  margin-bottom: calc(var(--space) * 4);
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space);
  align-items: center;
}

.field {
  display: flex;
  flex-direction: column;
  gap: calc(var(--space) * 0.5);
}

.field--grow {
  flex: 1;
}

.field__label {
  font-size: 0.8125rem;
  font-weight: 500;
}

.field__aside {
  margin-left: var(--space);
  font-weight: 400;
  color: var(--muted);
}

.field__hint {
  font-size: 0.75rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.4;
}

.input:focus {
  outline: 2px solid var(--machine-blue);
  outline-offset: 1px;
  border-color: var(--machine-blue);
}

textarea.input {
  resize: vertical;
}

.input--title {
  font-size: 1.25rem;
  font-weight: 500;
}

.input--mono {
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.input--body {
  min-height: 420px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.6;
}

.notice {
  padding: calc(var(--space) * 1.25) calc(var(--space) * 1.5);
  border-left: 3px solid var(--approved-green);
  background: rgba(76, 122, 84, 0.08);
  font-size: 0.875rem;
}

.notice--error {
  border-left-color: var(--stamp-red);
  background: rgba(178, 58, 46, 0.07);
  color: var(--stamp-red);
}

.button--ghost {
  border-color: transparent;
  padding-inline: var(--space);
}

.button--ghost:hover {
  border-color: transparent;
  background: rgba(28, 27, 24, 0.06);
}

.button--danger {
  border-color: var(--stamp-red);
  color: var(--stamp-red);
}

.button--danger:hover {
  border-color: var(--stamp-red);
  background: rgba(178, 58, 46, 0.08);
}

.button--danger-text {
  color: var(--stamp-red);
}

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

label.button {
  cursor: pointer;
}

label.button:focus-within {
  outline: 2px solid var(--machine-blue);
  outline-offset: 2px;
}

.tabs {
  display: flex;
  gap: calc(var(--space) * 0.5);
  margin-bottom: calc(var(--space) * 4);
  border-bottom: 2px solid var(--ink);
}

.tabs__tab {
  padding: calc(var(--space) * 1.25) calc(var(--space) * 2);
  border: 0;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  background: transparent;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
}

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

.tabs__tab[aria-selected='true'] {
  color: var(--ink);
  border-bottom-color: var(--ticket-amber);
}

.panel__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: calc(var(--space) * 2);
  margin-bottom: calc(var(--space) * 3);
}

.panel__title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.panel__readout {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.table th,
.table td {
  padding: calc(var(--space) * 1.25) calc(var(--space) * 1.5) calc(var(--space) * 1.25) 0;
  border-bottom: 1px solid var(--hairline-faint);
  text-align: left;
  vertical-align: middle;
}

.table thead th {
  border-bottom: 2px solid var(--ink);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.table__title {
  font-weight: 500;
}

.table__mono {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--muted);
}

.table__me {
  font-weight: 400;
  color: var(--muted);
}

.table__actions {
  white-space: nowrap;
  text-align: right;
}

.table__actions .button {
  padding-block: 4px;
  font-size: 0.875rem;
}

.status {
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.status--draft {
  background: rgba(201, 138, 46, 0.16);
  color: var(--ticket-amber);
}

.status--published {
  background: rgba(76, 122, 84, 0.14);
  color: var(--approved-green);
}

.status--admin {
  background: rgba(58, 90, 120, 0.12);
  color: var(--machine-blue);
}

.editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: calc(var(--space) * 4);
}

.editor__fields {
  display: flex;
  flex-direction: column;
  gap: calc(var(--space) * 2);
}

.editor__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space);
}

.editor__preview {
  border: 1px solid var(--hairline);
  border-top: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--surface);
  padding: calc(var(--space) * 2) calc(var(--space) * 3) calc(var(--space) * 3);
  max-height: 80vh;
  overflow: auto;
  align-self: start;
  position: sticky;
  top: calc(var(--space) * 2);
  box-shadow: var(--stack);
}

.editor__preview-label {
  margin-bottom: calc(var(--space) * 2);
  padding-bottom: calc(var(--space) * 0.75);
  border-bottom: 1px solid var(--hairline-faint);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.editor__preview-title {
  margin-bottom: calc(var(--space) * 2);
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

.editor__preview-standfirst {
  margin-bottom: calc(var(--space) * 3);
  font-size: 1.0625rem;
  color: var(--muted);
}

.editor__preview-body p,
.editor__preview-body ul {
  font-size: 0.9375rem;
}

.editor__preview-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.editor__actions {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: calc(var(--space) * 2);
  padding-top: calc(var(--space) * 2);
  border-top: 1px solid var(--hairline);
}

.profile__avatar {
  display: flex;
  align-items: center;
  gap: calc(var(--space) * 2);
}

@media (max-width: 900px) {
  .editor {
    grid-template-columns: 1fr;
  }

  .editor__preview {
    position: static;
    max-height: none;
  }

  .form--inline {
    grid-template-columns: 1fr;
  }

  .table thead {
    display: none;
  }

  .table tr {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px calc(var(--space) * 2);
    padding: calc(var(--space) * 1.5) 0;
    border-bottom: 1px solid var(--hairline-faint);
  }

  .table td {
    padding: 0;
    border: 0;
  }

  .table__actions {
    grid-column: 1 / -1;
    text-align: left;
    padding-top: calc(var(--space) * 0.5);
  }
}

/* ------------------------------------------------------------------ */
/* Pricing: four tickets in a row, the same numbers side by side in a  */
/* table, the ink band for what a post is, and the questions. Every     */
/* surface is one the site already owns; nothing here is a new style.  */
/* ------------------------------------------------------------------ */

.doc--pricing {
  padding-bottom: calc(var(--space) * 9);
}

.plans {
  padding-top: calc(var(--space) * 5);
}

.plans__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: calc(var(--space) * 2);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* One ticket per plan: the same sheet as the work order and the cards on
   the line. The trial plan carries the amber top the human steps carry. */
.plan {
  display: flex;
  flex-direction: column;
  gap: calc(var(--space) * 1.5);
  padding: calc(var(--space) * 2) calc(var(--space) * 2.5) calc(var(--space) * 2.5);
  border: 1px solid var(--hairline);
  border-top: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--stack);
}

.plan--trial {
  border-top: 3px solid var(--ticket-amber);
}

.plan__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space);
  padding-bottom: calc(var(--space) * 0.75);
  border-bottom: 1px solid var(--hairline-faint);
}

.plan__name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plan__tag {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ticket-amber);
}

.plan__price {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

.plan__per {
  margin-left: calc(var(--space) * 0.75);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}

.plan__alt {
  margin-top: calc(var(--space) * -0.75);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.plan__posts {
  padding-top: calc(var(--space) * 1.5);
  border-top: 1px solid var(--hairline-faint);
  font-size: 1.0625rem;
  font-weight: 500;
}

.plan__list {
  display: flex;
  flex-direction: column;
  gap: calc(var(--space) * 0.75);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
  line-height: 1.45;
}

/* The green bar from the rules band, cut short, in front of each line. */
.plan__list li {
  position: relative;
  padding-left: calc(var(--space) * 2.25);
}

.plan__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 10px;
  height: 2px;
  background: var(--approved-green);
}

.plan__action {
  margin-top: auto;
  padding-top: calc(var(--space) * 1);
}

.plan__action .button {
  width: 100%;
}

.plans__note {
  max-width: var(--measure);
  margin-top: calc(var(--space) * 3);
  font-size: 0.875rem;
  color: var(--muted);
}

.compare {
  padding-top: calc(var(--space) * 9);
}

.compare .table-wrap {
  margin-top: calc(var(--space) * 4);
}

.compare__table {
  min-width: 640px;
}

.compare__table tbody th {
  width: 16rem;
}

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

.faq {
  max-width: 1200px;
  margin: 0 auto;
  padding: calc(var(--space) * 10) var(--gutter);
}

.faq__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(var(--space) * 3) calc(var(--space) * 6);
  margin-top: calc(var(--space) * 5);
}

.faq__item {
  padding-top: calc(var(--space) * 1.5);
  border-top: 1px solid var(--hairline);
}

.faq__item dt {
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.3;
}

.faq__item dd {
  margin-top: calc(var(--space) * 1);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--muted);
}

/* One line under the hero buttons on the landing page: the trial, and a
   way to the prices. Quiet, because the headline has already spoken. */
.hero__note {
  margin-top: calc(var(--space) * -2);
  font-size: 0.875rem;
  color: var(--muted);
}

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

  .faq__list {
    grid-template-columns: 1fr;
    gap: calc(var(--space) * 2.5);
  }
}

@media (max-width: 680px) {
  .plans {
    padding-top: calc(var(--space) * 4);
  }

  .plans__grid {
    grid-template-columns: 1fr;
  }

  .plan__price {
    font-size: 2.5rem;
  }

  .compare {
    padding-top: calc(var(--space) * 6);
  }

  /* The wrap scrolls sideways anyway; give the four value columns the room. */
  .compare__table tbody th {
    width: 10rem;
  }

  .faq {
    padding-block: calc(var(--space) * 6);
  }

  .faq__list {
    margin-top: calc(var(--space) * 3);
  }
}

/* ------------------------------------------------------------------ */
/* Narrow screens                                                      */
/* ------------------------------------------------------------------ */

@media (max-width: 1000px) {
  .hero,
  .floor {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: calc(var(--space) * 5);
    padding-block: calc(var(--space) * 5) calc(var(--space) * 8);
  }

  .order {
    max-width: 520px;
  }

  .line {
    display: block;
    padding: 0 var(--gutter);
  }

  /* The rail becomes a thin strip pinned to the top: one line naming the
     stage being read, and eight bars that are the real tracker in miniature.
     Each bar is still the stage's link. */
  .rail {
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: calc(var(--space) * 0.75);
    margin: 0 calc(var(--gutter) * -1);
    padding: calc(var(--space) * 1.25) var(--gutter) calc(var(--space) * 1.25);
    border-bottom: 1px solid var(--hairline-faint);
    background: var(--paper);
  }

  .rail__title,
  .rail__readout {
    display: none;
  }

  .rail__current {
    display: block;
  }

  .rail__track {
    flex-direction: row;
    gap: 4px;
  }

  .rail__stage {
    flex: 1 1 0;
    padding: 0;
    border-top-width: 4px;
  }

  .rail__stage a {
    display: block;
    height: 10px;
    font-size: 0;
    line-height: 0;
    color: transparent;
  }

  .rail__stage--you a::after {
    content: none;
  }

  .stages {
    max-width: none;
  }

  html {
    scroll-padding-top: 64px;
  }

  .floor__art {
    position: static;
    max-width: 420px;
  }
}

@media (max-width: 680px) {
  /* Less air between things on a phone: the page is read one section at a
     time, so the desktop's breathing room reads as emptiness. */
  .hero {
    gap: calc(var(--space) * 4);
    padding-block: calc(var(--space) * 3) calc(var(--space) * 5);
  }

  .hero__copy {
    gap: calc(var(--space) * 3);
  }

  .hero__lede {
    font-size: 1.0625rem;
  }

  .hero__actions .button {
    flex: 1 1 auto;
  }

  .order {
    padding: calc(var(--space) * 1.25) calc(var(--space) * 2) calc(var(--space) * 2);
  }

  .stage {
    padding: calc(var(--space) * 5) 0 calc(var(--space) * 5);
  }

  .stage::before {
    top: calc(var(--space) * 1);
    font-size: 6rem;
  }

  .hero {
    background-image: none;
  }

  .stage--you {
    margin-block: calc(var(--space) * 3);
    padding: calc(var(--space) * 4) calc(var(--space) * 2.5) calc(var(--space) * 5);
  }

  .stage__head {
    gap: calc(var(--space) * 1.5);
    margin-bottom: calc(var(--space) * 1.5);
  }

  .stage__lede {
    margin-bottom: calc(var(--space) * 3);
    font-size: 1rem;
  }

  .kb__card {
    padding: calc(var(--space) * 1.5) calc(var(--space) * 2);
  }

  .aside {
    margin-top: calc(var(--space) * 3);
  }

  .rules,
  .floor {
    padding-block: calc(var(--space) * 6);
  }

  .rules__head {
    margin-bottom: calc(var(--space) * 3);
  }

  .rules__list {
    gap: calc(var(--space) * 3);
  }

  .close {
    padding-block: calc(var(--space) * 8);
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .kb,
  .variants,
  .choose,
  .bench {
    grid-template-columns: 1fr;
  }

  .verdict {
    grid-template-columns: 1fr;
  }

  .verdict__head {
    grid-row: auto;
    flex-direction: row;
    gap: var(--space);
    align-items: baseline;
  }

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

  .check__value {
    grid-column: 1 / -1;
    order: 3;
  }

  /* Short label, short value: these stay two columns so the card halves. */
  .order__row,
  .bench__spec > div {
    grid-template-columns: 5.5rem minmax(0, 1fr);
    gap: var(--space);
    padding-block: calc(var(--space) * 1);
  }

  .floor__list > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .stage--you {
    padding-inline: calc(var(--space) * 2.5);
  }
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
