/*
 * clawharbor.io — the public site.
 *
 * DIRECTION
 * ---------
 * The console is a customs desk: a dark instrument panel where a tenant's own
 * palette lights up as a specimen under examination. This is the same customs
 * house seen from the water — the arrival record rather than the desk. So it
 * shares the console's ground family, its signal yellow and, exactly, its
 * cleared/turned verdict colours, because those are the company's semantics and
 * changing them would make this a different company.
 *
 * What it does NOT share is the console's shape. Two departures:
 *
 *  1. WIDTH AS VOICE. Both surfaces are set in Archivo. The console never leaves
 *     the normal width; every display line here is Archivo at wdth 118-125 —
 *     dockside signage, stencilled wide. Same family, a register the tool never
 *     uses, which is what "same company, different room" should mean.
 *
 *  2. ONE PIECE OF PAPER. A manifest is a cargo declaration, and a declaration
 *     is a physical document. Entry 03 — the refusal, which is the only claim on
 *     this page worth making — is printed on vellum in the middle of the night
 *     water. It is the single inverted band on the site and the only risk taken;
 *     everything around it stays quiet so it lands.
 *
 * Committed to dark everywhere except that band. Colour is not decorative here:
 * signal yellow marks the one thing you should do next, green and red are
 * clearance verdicts and appear nowhere else.
 */

:root {
  /* Night water. Deeper and bluer than the console's hull: same firm, later hour. */
  --ink: #070c11;
  --ink-2: #0c141c;
  --ink-3: #111c26;
  --rule: #1a2733;
  --rule-2: #27394a;

  --chalk: #dbe6ee;
  --chalk-2: #93a7b6;
  --dim: #63788a;

  /* The company lamp. Identical to the console's --signal, on purpose. */
  --signal: #ffc300;
  --signal-ink: #1a1200;

  /* Verdicts. Semantic only — never used to decorate anything. */
  --cleared: #3fcf95;
  --turned: #ff6b66;

  /* The declaration, printed. */
  --vellum: #f0ebdf;
  --vellum-2: #e3dbc9;
  --vellum-ink: #15181c;
  --vellum-dim: #5c6167;

  --sans: Archivo, "Archivo Variable", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;

  --gutter: clamp(20px, 5vw, 60px);
  --measure: 76rem;
  --mark-col: 9.5rem;
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--chalk);
  font-family: var(--sans);
  font-variation-settings: "wdth" 100;
  font-size: 16px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--signal); color: var(--signal-ink); }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 60;
  background: var(--signal);
  color: var(--signal-ink);
  font-family: var(--mono);
  font-size: 12px;
  padding: 10px 16px;
}
.skip:focus { left: 8px; top: 8px; }

.sr {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%);
  white-space: nowrap;
}

/* ── Shared grammar ───────────────────────────────────────────────────── */

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.mono {
  font-family: var(--mono);
  font-variant-numeric: normal;
}

/* Stencilled label. The only uppercase on the site apart from the wordmark. */
.stencil {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--dim);
}

.display {
  font-variation-settings: "wdth" 118;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: .98;
  margin: 0;
  text-wrap: balance;
}

/* ── Rail ─────────────────────────────────────────────────────────────── */

.rail {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--rule);
  background: color-mix(in srgb, var(--ink) 86%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.rail__in {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 58px;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--chalk);
  white-space: nowrap;
}
/* The pennant. Same shape the console flies. */
.mark__flag {
  width: 13px;
  height: 13px;
  flex: none;
  background: var(--signal);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 26% 50%);
}

.rail__spacer { flex: 1; }

.rail__nav {
  display: flex;
  gap: 20px;
}
.rail__nav a {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dim);
  text-decoration: none;
  transition: color .16s var(--ease);
}
.rail__nav a:hover { color: var(--chalk); }

@media (max-width: 720px) {
  .rail__nav { display: none; }
}

/* ── Buttons ──────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-decoration: none;
  padding: 11px 17px;
  border: 1px solid var(--signal);
  background: var(--signal);
  color: var(--signal-ink);
  white-space: nowrap;
  transition: background .16s var(--ease), border-color .16s var(--ease), transform .16s var(--ease);
}
.btn:hover {
  background: #ffd23f;
  border-color: #ffd23f;
  transform: translateY(-1px);
}

.btn--ghost {
  background: none;
  border-color: var(--rule-2);
  color: var(--chalk);
}
.btn--ghost:hover {
  background: var(--ink-2);
  border-color: var(--chalk-2);
}

.btn--sm { padding: 8px 13px; font-size: 11.5px; }

/*
 * The default focus ring is signal yellow, which is invisible on a signal
 * yellow button. Anything painted in the signal colour inverts its ring.
 */
.btn:not(.btn--ghost):focus-visible,
.skip:focus-visible {
  outline-color: var(--chalk);
}

.arrow { font-size: 1.1em; line-height: 1; }

/* ── Hero ─────────────────────────────────────────────────────────────── */

.hero {
  padding-top: clamp(56px, 11vw, 116px);
  padding-bottom: clamp(40px, 7vw, 76px);
  position: relative;
}

/* One horizon line under the arrival, the only ambient mark on the page. */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rule-2) 18%, var(--rule-2) 82%, transparent);
}

.hero__kicker {
  margin: 0 0 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
}
/* The kicker is the pipeline, so its separator is an arrow and not a bullet. */
.hero__kicker span::before {
  content: "\2192";
  color: var(--rule-2);
  margin-right: 13px;
}
.hero__kicker span:first-child::before { display: none; }

.hero__h {
  font-size: clamp(2.5rem, 7.4vw, 5.1rem);
  max-width: 17ch;
}
.hero__h em {
  font-style: normal;
  color: var(--signal);
}

.hero__sub {
  margin: 26px 0 0;
  max-width: 60ch;
  font-size: clamp(1.03rem, 1.5vw, 1.24rem);
  line-height: 1.55;
  color: var(--chalk-2);
}
.hero__sub strong {
  color: var(--chalk);
  font-weight: 600;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero__fine {
  margin: 18px 0 0;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .04em;
}

/* ── The arrival: one origin becomes two surfaces ─────────────────────── */

.arrival {
  margin-top: clamp(40px, 6vw, 68px);
  border: 1px solid var(--rule);
  background: var(--ink-2);
}

.arrival__head {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  align-items: baseline;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--rule);
}

.arrival__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  background: var(--rule);
}
@media (min-width: 860px) {
  .arrival__body { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
}

.arrival__cell {
  background: var(--ink-2);
  padding: 22px 18px 24px;
}

.arrival__role {
  margin: 0 0 12px;
  display: block;
}

.arrival__host {
  font-family: var(--mono);
  font-size: clamp(.86rem, 1.6vw, 1.02rem);
  font-weight: 500;
  color: var(--chalk);
  word-break: break-all;
  margin: 0 0 4px;
}
.arrival__host a { text-decoration-color: var(--rule-2); text-underline-offset: 3px; }
.arrival__host a:hover { text-decoration-color: var(--signal); }

.arrival__note {
  margin: 0;
  font-size: 13.5px;
  color: var(--dim);
  line-height: 1.5;
}

.arrival__out { display: grid; gap: 20px; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}
.chip {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--chalk-2);
  border: 1px solid var(--rule-2);
  padding: 4px 9px;
  white-space: nowrap;
}
.chip--ok { color: var(--cleared); border-color: color-mix(in srgb, var(--cleared) 38%, transparent); }

/* ── Record entries ───────────────────────────────────────────────────── */

.rec {
  border-bottom: 1px solid var(--rule);
  padding-block: clamp(52px, 8vw, 92px);
}
.rec:last-of-type { border-bottom: 0; }

.rec__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
}
@media (min-width: 1000px) {
  .rec__in {
    grid-template-columns: var(--mark-col) minmax(0, 1fr);
    gap: 0 40px;
  }
}

.rec__mark {
  align-self: start;
  position: relative;
}
@media (min-width: 1000px) {
  .rec__mark { position: sticky; top: 96px; }
}
.rec__no {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--signal);
}
.rec__label {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dim);
  line-height: 1.45;
}

.rec__h {
  font-size: clamp(1.65rem, 3.4vw, 2.6rem);
  font-variation-settings: "wdth" 112;
  max-width: 22ch;
  margin: 0 0 18px;
}

.rec__lede {
  max-width: 66ch;
  font-size: clamp(1rem, 1.3vw, 1.11rem);
  color: var(--chalk-2);
  margin: 0 0 30px;
}
.rec__lede strong { color: var(--chalk); font-weight: 600; }
.rec__lede code {
  font-family: var(--mono);
  font-size: .9em;
  color: var(--chalk);
  background: var(--ink-3);
  border: 1px solid var(--rule);
  padding: 1px 5px;
}

/* ── Transcript ───────────────────────────────────────────────────────── */

.xchg {
  border: 1px solid var(--rule);
  background: var(--ink-3);
}
.xchg + .xchg { margin-top: 22px; }

.xchg__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--rule);
  background: var(--ink-2);
}
.xchg__who {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--chalk-2);
}
.xchg__when {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
}

.xchg pre {
  margin: 0;
  padding: 18px 16px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  tab-size: 2;
  color: var(--dim);
}
@media (min-width: 700px) { .xchg pre { font-size: 13px; padding: 20px; } }

/*
 * Code colouring stays clear of the verdict colours. Green means cleared and
 * red means turned back everywhere else on this site, so neither appears in a
 * transcript where they would mean nothing.
 */
.t-k { color: #7fb2d8; }                   /* object keys, header names */
.t-s { color: var(--chalk); }              /* string values — the data itself */
.t-n { color: var(--signal); }             /* numbers, booleans, null */
.t-m { color: var(--chalk); font-weight: 600; }  /* HTTP method / verb */

.caption {
  margin: 14px 0 0;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--dim);
  max-width: 78ch;
}
.caption b { color: var(--chalk-2); font-weight: 500; }

/* ── Tool ledger ──────────────────────────────────────────────────────── */

.ledger {
  border: 1px solid var(--rule);
  border-bottom: 0;
}
.ledger__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px 22px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--rule);
  background: var(--ink-2);
}
@media (min-width: 800px) {
  .ledger__row {
    grid-template-columns: 15.5rem minmax(0, 1fr);
    align-items: baseline;
  }
}
.ledger__name {
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--signal);
  word-break: break-word;
}
.ledger__what { margin: 0; font-size: 14.5px; color: var(--chalk); }
.ledger__meta {
  margin: 5px 0 0;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--dim);
  word-break: break-all;
}
.ledger__meta b { color: var(--chalk-2); font-weight: 500; }

/* ── Entry 03: the declaration, printed ───────────────────────────────── */

.customs {
  background: var(--vellum);
  color: var(--vellum-ink);
  padding-block: clamp(56px, 9vw, 104px);
  /* Ruled stock. Two hairlines, nothing more. */
  background-image:
    linear-gradient(var(--vellum-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--vellum-2) 1px, transparent 1px);
  background-size: 100% 34px, 34px 100%;
  background-position: -1px -1px;
}

.customs .rec__no { color: #a8600d; }
.customs .rec__label { color: var(--vellum-dim); }
.customs .rec__lede { color: #3c4147; }
.customs .rec__lede strong { color: var(--vellum-ink); }
.customs .rec__lede code {
  color: var(--vellum-ink);
  background: #e6dfcd;
  border-color: var(--vellum-2);
}
.customs .caption { color: var(--vellum-dim); }
.customs .caption b { color: var(--vellum-ink); }
.customs :focus-visible { outline-color: #a8600d; }
.customs ::selection { background: var(--vellum-ink); color: var(--vellum); }

.form {
  background: #faf7f0;
  border: 1px solid var(--vellum-ink);
  box-shadow: 5px 5px 0 rgba(21, 24, 28, .1);
}

.form__head {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  align-items: baseline;
  justify-content: space-between;
  padding: 13px 18px;
  border-bottom: 1px solid var(--vellum-ink);
}
.form__title {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--vellum-ink);
}
.form__ref {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--vellum-dim);
}

/* The attrition columns: what was declared, what survived each gate. */
.tally {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--vellum-2);
}
@media (min-width: 780px) {
  .tally { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.tally__col {
  padding: 20px 18px 22px;
  border-right: 1px solid var(--vellum-2);
  border-bottom: 1px solid var(--vellum-2);
}
@media (min-width: 780px) {
  .tally__col { border-bottom: 0; }
  .tally__col:last-child { border-right: 0; }
}
@media (max-width: 779px) {
  .tally__col:nth-child(2n) { border-right: 0; }
  .tally__col:nth-child(n+3) { border-bottom: 0; }
}

.tally__n {
  display: block;
  font-variation-settings: "wdth" 122;
  font-weight: 800;
  font-size: clamp(2.4rem, 5.6vw, 3.5rem);
  line-height: .92;
  letter-spacing: -.03em;
  color: var(--vellum-ink);
}
.tally__col--last .tally__n { color: #b4443f; }
.tally__k {
  display: block;
  margin-top: 9px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--vellum-dim);
}
.tally__d {
  margin: 7px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #4a4f55;
}

.form__note {
  margin: 0;
  padding: 18px;
  font-size: 14px;
  line-height: 1.6;
  color: #3c4147;
  border-bottom: 1px solid var(--vellum-2);
}
.form__note:last-child { border-bottom: 0; }
.form__note b { color: var(--vellum-ink); }
.form__note code {
  font-family: var(--mono);
  font-size: .88em;
  background: #ece5d4;
  border: 1px solid var(--vellum-2);
  padding: 1px 5px;
  word-break: break-word;
}

.form__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  align-items: center;
  padding: 13px 18px;
  border-top: 1px solid var(--vellum-ink);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--vellum-dim);
}
.stamp {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  border: 1.5px solid currentColor;
  padding: 4px 10px;
  color: #b4443f;
  transform: rotate(-1.5deg);
}

/* ── Two surfaces ─────────────────────────────────────────────────────── */

.pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
@media (min-width: 900px) {
  .pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.pane {
  background: var(--ink-2);
  padding: 26px 22px 28px;
  display: flex;
  flex-direction: column;
}
.pane__tag { display: block; margin-bottom: 16px; }
.pane__h {
  font-size: 1.32rem;
  font-variation-settings: "wdth" 112;
  font-weight: 700;
  letter-spacing: -.015em;
  margin: 0 0 12px;
  line-height: 1.15;
}
.pane__p {
  font-size: 14.7px;
  color: var(--chalk-2);
  margin: 0 0 14px;
  line-height: 1.6;
}
.pane__p code {
  font-family: var(--mono);
  font-size: .89em;
  color: var(--chalk);
  background: var(--ink-3);
  border: 1px solid var(--rule);
  padding: 1px 5px;
  word-break: break-word;
}
.pane__spacer { flex: 1; min-height: 8px; }
.pane__url {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--chalk);
  background: var(--ink-3);
  border: 1px solid var(--rule);
  padding: 9px 11px;
  word-break: break-all;
  text-decoration: none;
  display: block;
  transition: border-color .16s var(--ease);
}
.pane__url:hover { border-color: var(--signal); }
.pane__url::before {
  content: "→ ";
  color: var(--signal);
}

.why {
  margin-top: 20px;
  border-left: 2px solid var(--signal);
  padding: 2px 0 2px 16px;
  max-width: 68ch;
  font-size: 14.7px;
  color: var(--chalk-2);
}
.why strong { color: var(--chalk); font-weight: 600; }
.why code {
  font-family: var(--mono);
  font-size: .89em;
  color: var(--chalk);
  word-break: break-word;
}

/* ── Facts list (politeness) ──────────────────────────────────────────── */

.facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
@media (min-width: 720px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.fact {
  background: var(--ink-2);
  padding: 18px 18px 20px;
}
.fact__k {
  display: block;
  margin-bottom: 7px;
}
.fact__v {
  margin: 0;
  font-size: 14.5px;
  color: var(--chalk-2);
  line-height: 1.55;
}
.fact__v b {
  color: var(--chalk);
  font-weight: 600;
  font-family: var(--mono);
  font-size: .95em;
  word-break: break-all;
}

/* ── Close ────────────────────────────────────────────────────────────── */

.close {
  padding-block: clamp(60px, 9vw, 110px);
  border-top: 1px solid var(--rule);
}
.close__h {
  font-size: clamp(1.9rem, 4.6vw, 3.2rem);
  max-width: 18ch;
  margin: 0 0 20px;
}
.close__p {
  max-width: 56ch;
  color: var(--chalk-2);
  font-size: clamp(1rem, 1.3vw, 1.11rem);
  margin: 0 0 30px;
}
/* The closing pair reuses the hero's button row; it needs no leading space. */
.close .hero__cta { margin-top: 0; animation: none; }

/* ── Footer ───────────────────────────────────────────────────────────── */

.foot {
  border-top: 1px solid var(--rule);
  padding-block: 34px 44px;
  background: var(--ink-2);
}
.foot__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}
@media (min-width: 780px) {
  .foot__in { grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; }
}
.foot__h {
  margin: 0 0 12px;
  display: block;
}
.foot ul li { margin-bottom: 7px; }
.foot a {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--chalk-2);
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color .16s var(--ease);
}
.foot a:hover { color: var(--signal); text-decoration: underline; }
.foot__fine {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--dim);
  max-width: 40ch;
}

/* ── Long-form pages (/bot, /takedown) ────────────────────────────────── */

.doc { padding-block: clamp(44px, 7vw, 84px) clamp(56px, 9vw, 96px); }
.doc__in { max-width: 68ch; }
/*
 * A policy page is one column of prose, and it starts exactly where a record
 * entry's content starts, so the two page types share a left edge instead of
 * each inventing their own.
 */
@media (min-width: 1000px) {
  .doc__in { margin-left: calc(var(--mark-col) + 40px); }
}
.doc__h {
  font-size: clamp(2.1rem, 5.4vw, 3.4rem);
  margin: 14px 0 16px;
}
.doc__lede {
  font-size: clamp(1.03rem, 1.5vw, 1.2rem);
  color: var(--chalk-2);
  margin: 0 0 12px;
}
.doc h2 {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--signal);
  margin: 44px 0 14px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--rule);
}
.doc p, .doc li { color: var(--chalk-2); }
.doc strong { color: var(--chalk); font-weight: 600; }
.doc ul.bullets { margin: 0 0 1em; }
.doc ul.bullets li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 9px;
}
.doc ul.bullets li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .62em;
  width: 7px;
  height: 1px;
  background: var(--signal);
}
.doc a { color: var(--chalk); text-underline-offset: 3px; text-decoration-color: var(--rule-2); }
.doc a:hover { text-decoration-color: var(--signal); }
.doc code {
  font-family: var(--mono);
  font-size: .9em;
  color: var(--chalk);
  background: var(--ink-3);
  border: 1px solid var(--rule);
  padding: 1px 5px;
}
.block {
  display: block;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--chalk);
  background: var(--ink-3);
  border: 1px solid var(--rule);
  padding: 14px 16px;
  margin: 0 0 1em;
  overflow-x: auto;
  white-space: pre;
}

/* ── Load sequence ────────────────────────────────────────────────────── */
/*
 * One orchestrated moment, in the hero only: the record is stamped top to
 * bottom, then the arrival opens. Base styles are the FINAL state, so killing
 * the animation leaves the page correct rather than blank.
 */

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@keyframes wipe {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

.hero__kicker { animation: rise .5s var(--ease) both; }
.hero__h      { animation: rise .62s .06s var(--ease) both; }
.hero__sub    { animation: rise .62s .14s var(--ease) both; }
.hero__cta    { animation: rise .62s .22s var(--ease) both; }
.hero__fine   { animation: rise .62s .28s var(--ease) both; }
.arrival      { animation: rise .66s .34s var(--ease) both; }
.arrival__head { animation: wipe .5s .5s var(--ease) both; }
.chips .chip  { animation: rise .4s var(--ease) both; }
.chips .chip:nth-child(1) { animation-delay: .62s; }
.chips .chip:nth-child(2) { animation-delay: .70s; }
.chips .chip:nth-child(3) { animation-delay: .78s; }
.chips .chip:nth-child(4) { animation-delay: .86s; }

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

@media print {
  .rail, .hero__cta, .close { display: none; }
  body { background: #fff; color: #000; }
}

/* ---------------------------------------------------------------- legal --
 * The imprint's definition list, and the marker for details nobody has
 * supplied yet. `.todo` is deliberately loud: a blank on a provider-identity
 * page should look unfinished, because it is, and quietly styling it to blend
 * in would make an incomplete legal notice read as a complete one.
 */
.imprint {
  margin: 1.75rem 0 0;
  display: grid;
  gap: 0;
}
.imprint > div {
  display: grid;
  grid-template-columns: minmax(7rem, 12rem) 1fr;
  gap: 0.5rem 1.5rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.imprint dt {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}
.imprint dd { margin: 0; color: var(--chalk); }

.todo {
  font-family: var(--mono);
  font-size: 0.85em;
  color: var(--turned);
  border: 1px dashed color-mix(in oklab, var(--turned) 55%, transparent);
  border-radius: 3px;
  padding: 0.05em 0.4em;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .imprint > div { grid-template-columns: 1fr; gap: 0.15rem; }
}

/* ------------------------------------------------------- touch targets --
 * Standalone controls get a 44px hit area. Measured on a real render, the
 * wordmark sat at 19px and the rail links at 18px, well under the guidance.
 *
 * Links inside a sentence are deliberately NOT padded. WCAG 2.5.8 exempts
 * them precisely because enlarging an inline link breaks the line box around
 * it, and a paragraph with 44px-tall words in the middle is worse for everyone
 * than a small target is for anyone.
 */
/* A link that is the whole of its line is a standalone control, wherever it
   lives -- the arrival block and the imprint list both hold bare URLs and
   addresses that read as rows, not as words in a sentence. */
.mark,
.rail__nav a,
.foot ul a,
.arrival__host a,
.imprint dd a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* The padding goes on the row, not each link, so the footer keeps its rhythm. */
.foot ul a { padding-block: 2px; }

@media (pointer: coarse) {
  .foot ul li { margin-block: 2px; }
}

/* ----------------------------------------------------- narrow viewports --
 * Long, unbreakable strings were widening the whole document.
 *
 * Measured at 390px: the page scrolled 258px sideways because a <code> block
 * ran to 784px, a JSON string span to 660px and a stencil label to 609px, all
 * with overflow-x: visible — so instead of scrolling inside their own box they
 * pushed the body. This is the single most common responsive failure and it is
 * invisible in source, because every one of these elements is correct until the
 * viewport is narrower than its content.
 *
 * Each one scrolls within itself, and nothing is allowed to widen its parent.
 */
pre,
code,
.block,
.code,
.term {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

/* A grid or flex child defaults to min-width:auto, which refuses to shrink below
   its content — the reason an overflow-x on the child alone often does nothing. */
main,
main *,
.foot,
.foot * {
  min-width: 0;
}

/* Labels are prose, not code: they wrap rather than scroll. */
.stencil {
  overflow-wrap: anywhere;
  max-width: 100%;
}

/* A bare URL has no break opportunity, so give it one. */
a[href^="http"],
.mono {
  overflow-wrap: anywhere;
}
