/* Relim site. One stylesheet, no build step, no webfont, no third-party asset,
   no JavaScript anywhere on the site — /privacy asserts all four, so each is a
   claim this file has to keep true.

   Every colour below is a token from the app's own palette,
   app/relim-flutter/lib/core/theme/colors.dart, so the site and the product are
   the same object. Two deliberate departures, both because a phone glyph and a
   web paragraph are graded against different WCAG thresholds:

     --on-accent  the app's `onAccent` is white in both themes, which is 3.69:1
                  on the dark violet — enough for the FAB glyph it is used for
                  (1.4.11, 3:1) and not enough for button TEXT (1.4.3, 4.5:1).
                  Dark therefore sets ink on violet, 5.20:1.
     --muted      never placed on `bgHover`/`--raise` in the light theme, where
                  it measures 4.26:1. Text surfaces are `--ink` and `--panel`.

   Measured ratios for every pair in use are listed in web/README.md. */

:root {
  color-scheme: dark light;

  /* Surfaces */
  --ink: #0b100d;
  --panel: #101814;
  --raise: #151d18;
  --line: #1c2420;
  --line-2: #2a302c;         /* app `toggleOff` — the heavier rule */
  --edge: #606a65;           /* app `inactiveElement` — component edges, >=3:1 */

  /* Text */
  --text: #e6e8e4;
  --muted: #828c84;

  /* Accent */
  --accent: #8b6cff;
  --accent-soft: #241b33;
  --accent-text: #c5b4ff;
  --on-accent: #0b100d;

  /* Signal */
  --green: #22c58b;
  --orange: #ff9f43;
  --cyan: #00d4aa;
  --red: #ff6b4a;

  /* App chrome, for the device mockups */
  --bubble-mine: #241b33;
  --bubble-them: #101814;

  --glow: rgba(139, 108, 255, 0.10);

  /* Type scale */
  --t--2: 0.75rem;
  --t--1: 0.875rem;
  --t-0: 1.0625rem;
  --t-1: 1.1875rem;
  --t-2: 1.375rem;
  --t-3: 1.75rem;
  --t-4: clamp(2.1rem, 1.35rem + 3.7vw, 3.4rem);

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;

  /* Layout */
  --shell: 68rem;
  --prose: 36rem;
  --gutter: 1.25rem;
  --radius: 12px;
}

@media (prefers-color-scheme: light) {
  :root {
    --ink: #ece4d2;
    --panel: #f5efe0;
    --raise: #e5dcc8;
    --line: #d6cfbf;
    --line-2: #cfc7b4;
    --edge: #807a68;

    --text: #1a1a1a;
    --muted: #6b6555;

    --accent: #2c5b3f;
    --accent-soft: #d9e5dc;
    --accent-text: #224a33;
    --on-accent: #ffffff;

    --green: #2f7048;
    --orange: #985020;
    --cyan: #0b6b5e;
    --red: #b0301f;

    --bubble-mine: #c8dccb;
    --bubble-them: #f1e9d9;

    --glow: rgba(44, 91, 63, 0.09);
  }
}

/* ── Reset ─────────────────────────────────────────────────────────────── */

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--t-0);
  line-height: 1.6;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

/* ── Layout primitives ─────────────────────────────────────────────────── */

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

.band { padding-block: clamp(2.75rem, 6vw, 4.75rem); }
.band + .band { border-top: 1px solid var(--line); }
.band-tight { padding-block: clamp(1.75rem, 3.5vw, 2.5rem); }

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

/* The reading column for the document pages (privacy, download, security).
   Wider than .prose because those pages carry tables and definition lists. */
.doc { max-width: 41rem; }

.page-head {
  padding-block: clamp(2.25rem, 5vw, 3.5rem) clamp(1.5rem, 3vw, 2rem);
  border-bottom: 1px solid var(--line);
  background: radial-gradient(48rem 20rem at 12% -30%, var(--glow), transparent 70%);
}
.page-head h1 { max-width: 18ch; }
.page-head .lede { max-width: 52ch; margin: 1.1rem 0 0; }
.page-head .meta { margin: 0.9rem 0 0; }

/* Vertical rhythm without element selectors that fight each other. */
.flow > * { margin-block: 0; }
.flow > * + * { margin-block-start: 1rem; }
.flow > * + h2 { margin-block-start: 2.5rem; }
.flow > * + h3 { margin-block-start: 1.75rem; }
.flow > * + .notice,
.flow > * + .card,
.flow > * + .cards,
.flow > * + .table-scroll { margin-block-start: 1.5rem; }

/* ── Type ──────────────────────────────────────────────────────────────── */

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

h1 {
  font-size: var(--t-4);
  line-height: 1.03;
  letter-spacing: -0.032em;
  margin: 0;
}

h2 { font-size: var(--t-3); line-height: 1.18; }
h3 { font-size: var(--t-2); line-height: 1.25; letter-spacing: -0.012em; }
h4 { font-size: var(--t-1); line-height: 1.3; }

p, ul, ol, dl { margin: 0 0 1rem; }
ul, ol { padding-left: 1.3rem; }
li { margin-bottom: 0.35rem; }
li > ul, li > ol { margin-top: 0.35rem; }

.lede { font-size: var(--t-1); line-height: 1.5; }
.meta { color: var(--muted); font-size: var(--t--1); }

strong, b { font-weight: 650; }

a { color: var(--accent-text); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 3px;
}

/* The site's one typographic rule: if a MACHINE owns the string it is
   monospaced, if a PERSON wrote it it is not. Field names, hex, hostnames,
   commands, protocol constants and section eyebrows are machine-owned. */
code, kbd, samp, pre { font-family: var(--mono); }
code, kbd, samp { font-size: 0.885em; }

code {
  background: var(--raise);
  padding: 0.1em 0.36em;
  border-radius: 5px;
}

pre {
  background: var(--raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 1.05rem;
  overflow-x: auto;
  line-height: 1.55;
  font-size: var(--t--1);
}
pre code { background: none; padding: 0; font-size: 1em; }

.eyebrow {
  font-family: var(--mono);
  font-size: var(--t--2);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.9rem;
}
.eyebrow-accent { color: var(--accent-text); }

/* ── Skip link ─────────────────────────────────────────────────────────── */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 20;
  background: var(--panel);
  color: var(--text);
  padding: 0.65rem 1rem;
  border: 1px solid var(--edge);
  border-radius: 8px;
  text-decoration: none;
}
.skip:focus { left: 0.75rem; top: 0.75rem; }

/* ── Masthead ──────────────────────────────────────────────────────────── */

.masthead {
  border-bottom: 1px solid var(--line);
}
.masthead-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.5rem;
  padding-block: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}
.brand img { width: 26px; height: 26px; }
.brand:hover { color: var(--accent-text); }

.masthead nav { margin-left: auto; }
.masthead nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--t--1);
}
.masthead nav li { margin: 0; }
.masthead nav a {
  color: var(--muted);
  text-decoration: none;
  padding-block: 0.2rem;
}
.masthead nav a:hover { color: var(--text); text-decoration: underline; }
.masthead nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 650;
  box-shadow: inset 0 -2px 0 var(--accent);
}

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

.hero {
  background:
    radial-gradient(60rem 26rem at 78% -12%, var(--glow), transparent 65%);
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 3.75rem);
}

/* The claim on the left, the four checkable facts on the right. The right
   column holds INFORMATION rather than a picture: the split panel below needs
   the full measure for its four monospaced fields, and halving it would weaken
   the one idea the page is built around. */
.hero-grid { display: grid; gap: 2.25rem; align-items: start; }
@media (min-width: 60rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 4rem;
  }
}
.hero-copy { min-width: 0; }

.hero h1 { max-width: 15ch; }
.hero h1 .turn { color: var(--accent-text); }

.hero-lede {
  /* 34ch left "there." orphaned on a third line in the hero's left column at
     desktop; at narrow widths the column is the binding constraint, not this. */
  max-width: 40ch;
  margin: 1.25rem 0 0;
  font-size: var(--t-1);
  line-height: 1.5;
  color: var(--text);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: var(--t-0);
  font-weight: 650;
  text-decoration: none;
  line-height: 1.3;
}
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn-primary:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.btn-quiet {
  border-color: var(--edge);
  color: var(--text);
}
.btn-quiet:hover { border-color: var(--text); }

/* ── The signature: one message, seen from both ends ───────────────────── */

.wire {
  margin: clamp(2.25rem, 5vw, 3.25rem) 0 0;
}
.wire-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 47rem) {
  .wire-grid { grid-template-columns: 1fr 1fr; }
}

.wire-pane {
  background: var(--panel);
  padding: 1.15rem 1.15rem 1.35rem;
  min-width: 0;
}
.wire-pane .eyebrow { margin-bottom: 1rem; }

/* left pane: what a person sees */
.bubbles { display: grid; gap: 0.55rem; margin: 0; padding: 0; list-style: none; }
.bubbles li { margin: 0; display: flex; }
.bubbles li.mine { justify-content: flex-end; }
.bubble {
  background: var(--bubble-them);
  border: 1px solid var(--line-2);
  border-radius: 14px 14px 14px 4px;
  padding: 0.5rem 0.75rem;
  font-size: var(--t--1);
  max-width: 85%;
}
.mine .bubble {
  background: var(--bubble-mine);
  border-radius: 14px 14px 4px 14px;
}
.bubble .stamp {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--mono);
  font-size: var(--t--2);
  color: var(--muted);
}

/* right pane: what the server holds */
.fields { margin: 0; display: grid; gap: 0.55rem; }
.field {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 0.15rem 0.75rem;
  align-items: baseline;
  font-family: var(--mono);
  font-size: var(--t--2);
}
.field dt { color: var(--muted); }
.field dd {
  margin: 0;
  color: var(--text);
  overflow-wrap: anywhere;
}
.field dd .note {
  display: block;
  color: var(--muted);
  font-family: var(--sans);
  letter-spacing: 0;
}
@media (max-width: 25rem) {
  .field { grid-template-columns: 1fr; }
}

/* the padded ciphertext, drawn rather than written */
.blob {
  display: block;
  height: 0.6rem;
  border-radius: 3px;
  background: repeating-linear-gradient(
    90deg, var(--edge) 0 0.55rem, transparent 0.55rem 0.75rem);
  margin-block: 0.35rem 0.2rem;
}

.wire-note {
  margin: 0.85rem 0 0;
  font-size: var(--t--1);
  color: var(--muted);
  max-width: 62ch;
}
.wire-note strong { color: var(--text); }

/* ── Facts strip ───────────────────────────────────────────────────────── */

/* One column at every width: it lives in the hero's right-hand column, which is
   never wide enough for a row of four. */
.facts {
  display: grid;
  margin: 0;
  min-width: 0;
  border-top: 1px solid var(--line);
}

.fact {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.fact dt {
  font-family: var(--mono);
  font-size: var(--t--2);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.fact dd {
  margin: 0.35rem 0 0;
  font-size: var(--t--1);
  color: var(--muted);
}

/* ── Cards ─────────────────────────────────────────────────────────────── */

.cards {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 44rem) { .cards-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 44rem) { .cards-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  margin: 0;
}
.card > :last-child { margin-bottom: 0; }
.card h3 { margin: 0 0 0.5rem; font-size: var(--t-1); }
.card h3 .tag { display: block; width: max-content; margin: 0 0 0.4rem;
                font-weight: 400; letter-spacing: 0; }
.card p, .card ul, .card ol { font-size: var(--t--1); color: var(--muted); }
.card ul, .card ol { padding-left: 1.15rem; }
.card p strong { color: var(--text); }
.card .mono-note {
  font-family: var(--mono);
  font-size: var(--t--2);
  color: var(--accent-text);
  overflow-wrap: anywhere;
  margin-bottom: 0;
}

a.card { display: block; text-decoration: none; color: inherit; }
a.card:hover { border-color: var(--edge); }
a.card h3 { color: var(--accent-text); text-decoration: underline;
            text-underline-offset: 0.18em; }

/* ── Device mockups ────────────────────────────────────────────────────── */

.showcase { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 52rem) {
  .showcase { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; }
}

.device {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 0.9rem;
}
.device-frame {
  width: min(17rem, 100%);
  border: 2px solid var(--edge);
  border-radius: 26px;
  padding: 6px;
  background: var(--ink);
}
.device-screen {
  border-radius: 20px;
  overflow: hidden;
  background: var(--ink);
  font-size: 0.8125rem;
  line-height: 1.35;
}
.device figcaption {
  font-size: var(--t--1);
  color: var(--muted);
  max-width: 34ch;
  text-align: center;
}

.app-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0.85rem 0.15rem;
  font-family: var(--mono);
  font-size: 0.625rem;
  color: var(--muted);
}
.app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.85rem 0.7rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.app-bar svg { width: 18px; height: 18px; color: var(--muted); }
.app-mode {
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0;
  color: var(--accent-text);
}
.app-copy {
  margin: 0;
  padding: 0.1rem 0.85rem 0.55rem;
  font-size: 0.6875rem;
  line-height: 1.4;
}
.app-copy.muted-note { color: var(--muted); }

.app-banner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0.55rem 0.6rem;
  padding: 0.5rem 0.6rem;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 0.6875rem;
}
.app-banner svg { width: 14px; height: 14px; flex: none; }

.app-rows { list-style: none; margin: 0; padding: 0; }
.app-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: center;
  padding: 0.5rem 0.85rem;
  margin: 0;
  border-bottom: 1px solid var(--line);
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
}
.avatar-group { background: var(--green); }
.avatar-group svg { width: 17px; height: 17px; }
/* The title and the preview are two BOXES, not two inline runs sharing a line.
   As inline spans they joined one flow, so a title that reached the end of the
   line wrapped mid-row and the preview began flush against it — rendering
   "Rooftop crewSam: five minutes out" — and `text-overflow` did nothing at all,
   because it has no effect on an inline box. Both now truncate on their own
   line, which is what the chat list does on the device.
   `min-width: 0` on the wrapper is load-bearing: a grid item's automatic
   minimum size is its content, so without it the track never shrinks and the
   ellipsis can never engage. */
.app-row .lines { min-width: 0; }
.app-row .who,
.app-row .sub {
  display: block;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-row .who { font-weight: 650; }
.app-row .sub {
  color: var(--muted);
  font-size: 0.6875rem;
}
.app-row .when {
  font-family: var(--mono);
  font-size: 0.625rem;
  color: var(--muted);
  align-self: start;
  padding-top: 0.15rem;
}

.app-space { height: 3.25rem; position: relative; }
.app-fab {
  position: absolute;
  right: 0.7rem;
  bottom: 0.35rem;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: var(--accent);
  display: grid;
  place-items: center;
}
.app-fab svg { width: 18px; height: 18px; color: var(--on-accent); }

.app-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  padding: 0.4rem 0.15rem 0.45rem;
}
/* The inactive tab uses `--muted` (5.51:1 dark, 4.59:1 light) rather than the
   app's own `inactiveElement` (3.4:1) — the phone grades that glyph as a UI
   component under WCAG 1.4.11, and a 9px label in a web page does not get that
   exemption. */
.app-tab {
  display: grid;
  justify-items: center;
  gap: 0.2rem;
  font-size: 0.5625rem;
  color: var(--muted);
}
.app-tab svg { width: 18px; height: 18px; }
.app-tab.on { color: var(--accent-text); }
.app-tab.on .pill {
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 0.1rem 0.7rem;
}

/* Network screen */
.app-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.3rem 0.85rem;
  font-size: 0.6875rem;
}
/* A flex item's automatic minimum is its content, so a label with no `min-width`
   cannot shrink and pushes its value off the row instead. The label may wrap —
   a settings label on two lines is normal; the value may not. */
.app-line .k { color: var(--muted); min-width: 0; }
.app-line .v {
  font-family: var(--mono);
  font-size: 0.625rem;
  text-align: right;
  flex: none;
  white-space: nowrap;
}
.app-line .v.ok { color: var(--green); }
.app-headline {
  padding: 0.15rem 0.85rem 0.5rem;
  font-size: 0.75rem;
}
.app-headline .dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 0.35rem;
}
.app-rule { height: 1px; background: var(--line); margin: 0.5rem 0.85rem; }

/* ── Status lists (works / not yet) ────────────────────────────────────── */

.status {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.15rem;
}
@media (min-width: 44rem) { .status { grid-template-columns: repeat(2, 1fr); gap: 0.15rem 1.75rem; } }

.status li {
  margin: 0;
  padding: 0.5rem 0 0.5rem 1.6rem;
  position: relative;
  border-bottom: 1px solid var(--line);
  font-size: var(--t--1);
}
.status li::before {
  position: absolute;
  left: 0;
  top: 0.5rem;
  font-family: var(--mono);
  font-size: var(--t--1);
  line-height: 1.55;
}
.status-yes li::before { content: "✓"; color: var(--green); }
.status-no li::before { content: "—"; color: var(--orange); }
.status li strong { color: var(--text); }
.status .why { display: block; color: var(--muted); font-size: var(--t--2); }

/* ── Notice / callout ──────────────────────────────────────────────────── */

.notice {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.1rem 1.25rem;
  margin: 1.5rem 0;
}
.notice > :last-child { margin-bottom: 0; }
.notice > :first-child { margin-top: 0; }
.notice h2, .notice h3 { margin-top: 0; }
.notice-warn { border-left-color: var(--orange); }
.notice-loud { border-left-width: 6px; }

/* ── Small pieces ──────────────────────────────────────────────────────── */

.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: var(--t--2);
  line-height: 1.5;
  padding: 0.05em 0.55em;
  border-radius: 999px;
  border: 1px solid currentColor;
  color: var(--muted);
  margin-right: 0.4rem;
  white-space: nowrap;
  vertical-align: 0.05em;
}
.tag.not-yet { color: var(--orange); }

.todo {
  display: inline-block;
  background: var(--raise);
  border: 1px dashed var(--orange);
  color: var(--text);
  border-radius: 5px;
  padding: 0.08em 0.45em;
  font-family: var(--mono);
  font-size: 0.85em;
}

dl.kv { margin: 0 0 1rem; }
dl.kv dt { font-weight: 650; margin-top: 1rem; }
dl.kv dt:first-child { margin-top: 0; }
dl.kv dd { margin: 0.2rem 0 0; }

.table-scroll { overflow-x: auto; margin: 0 0 1.25rem; }
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 28rem;
  font-size: var(--t--1);
}
th, td {
  border: 1px solid var(--line);
  padding: 0.55rem 0.7rem;
  text-align: left;
  vertical-align: top;
}
th { background: var(--panel); font-weight: 650; }
caption { text-align: left; padding-bottom: 0.4rem; }

/* Page-level table of contents (privacy) */
.toc {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 1rem 1.15rem;
}
.toc h2 { font-size: var(--t--2); font-family: var(--mono); letter-spacing: 0.12em;
          text-transform: uppercase; color: var(--muted); margin: 0 0 0.6rem;
          font-weight: 400; }
.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 1.5rem;
  font-size: var(--t--1);
}
.toc li { margin: 0 0 0.3rem; break-inside: avoid; }
@media (max-width: 34rem) { .toc ol { columns: 1; } }

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

footer.site {
  border-top: 1px solid var(--line);
  padding-block: 2rem 3rem;
  color: var(--muted);
  font-size: var(--t--1);
}
footer.site ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.4rem;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}
footer.site li { margin: 0; }
footer.site p { max-width: 62ch; margin: 0 0 0.5rem; }
footer.site p:last-child { margin-bottom: 0; }

/* ── Narrow screens: verified down to 320px ────────────────────────────── */

@media (max-width: 26rem) {
  :root { --gutter: 0.9rem; }
  .btn { padding: 0.65rem 1rem; }
  .actions { gap: 0.6rem; }
  .actions .btn { flex: 1 1 auto; justify-content: center; }
}

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

@media print {
  .hero { background: none; }
  .masthead nav, .skip, .device { display: none; }
  body { background: #fff; color: #000; }
}
