/* base.css — reset, typography, rhythm.
 *
 * @docs ../../README.md
 *
 * Concatenated (with components.css, filename order) into public/site.css by
 * pipeline/emit.mjs. theme/tokens.css is NOT concatenated in — theme/head.html
 * links it, and it loads FIRST, so every token below is already in scope here.
 *
 * 🔴 NO LITERAL COLOURS BELOW THE FALLBACK BLOCK. design.md's rule: colour
 * comes from theme tokens, never hand-picked, so switching a theme repaints
 * everything with zero JS and zero edits here. A hex in a rule further down is
 * a bug, not a shortcut.
 */

/* ── The token contract, and the window before it exists ────────────────────
 *
 * These are the tokens src/css/ consumes. They are generated by the theme
 * build (theme/tokens.css) from the vendored ColorTheme documents; this block
 * is a floor for the window where a scaffolded site has run `npm run build`
 * but not yet `npm run tokens`, so the page reads as designed rather than as
 * unstyled black-on-white.
 *
 * 🔴 `:where()` is load-bearing, not decoration. It has ZERO specificity, so
 * theme/tokens.css's own `:root { … }` beats every line below without needing
 * !important, without depending on file order, and without this block ever
 * fighting a real theme. A plain `:root` here would silently override the
 * whole palette.
 *
 * The values are design.md's stated defaults: off-black on off-white, never
 * #000 or #fff, one muted accent held for emphasis.
 */
:where(:root) {
  --bg: #FBFAF8;
  --surface: #F4F2ED;
  --surface-lift: #EAE7E0;
  --border: #E0DCD3;
  --border-bright: #9A948A;
  --text-primary: #23211E;
  --text-bright: #121110;
  --text-secondary: #55514B;
  --text-muted: #6B665E;
  --accent: #7A5C3E;
  --accent-bright: #5E4630;
  --link: #5E4630;
  --ink-on-accent: #FBFAF8;

  --font-body: system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --font-display: system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, monospace;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;

  --motion-duration: 160ms;
  --motion-ease: cubic-bezier(0, 0, 0.2, 1);
}

/* Type-led rhythm the theme has no opinion about. `--measure` is the reading
 * line-length ceiling — roughly 70 characters, the editorial register design.md
 * asks for (a well-set spread, not a full-bleed dashboard). */
:root {
  --measure: 46rem;
  --page: 72rem;
  --tracking-tight: -0.011em;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: var(--tracking-tight);
}

/* Tighter than the browser default on purpose: loose-tracked type reads as
 * decorative, tight reads as confident (design.md). */
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--text-bright);
  letter-spacing: var(--tracking-tight);
  line-height: 1.15;
  text-wrap: balance;
  margin: 0 0 var(--space-2);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.125rem; }

p { margin: 0 0 var(--space-2); max-width: var(--measure); }

a {
  color: var(--link);
  text-decoration-color: var(--border-bright);
  text-underline-offset: 0.15em;
}
a:hover { text-decoration-color: currentColor; }

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

/* WCAG 2.1 AA (EN 301 549 / BFSG) is a launch blocker, not a preference. A
 * visible focus ring on EVERY interactive element, verified with tooling rather
 * than eyeballed — theme/tokens.css floors --border-bright at 3:1 (1.4.11) for
 * exactly this. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--surface);
  color: var(--text-bright);
  padding: var(--space-1) var(--space-2);
}
.skip-link:focus {
  left: var(--space-2);
  top: var(--space-2);
}

/* ── page frame ─────────────────────────────────────────────────────────── */

/* The footer floor (wireframe.yml `frame.footer: sticky`, the default — the
 * shell stamps it as data-frame-footer). This is the LAYOUT sense of "sticky
 * footer", not position:sticky: a min-100vh flex column floats a SHORT page's
 * footer to the bottom of the viewport instead of leaving it stranded
 * mid-screen, while a long page's footer still scrolls in after the content.
 * main takes the slack. Auto side margins on main keep it centred inside the
 * flex column (they win over the default stretch, so max-width still holds).
 * `frame.footer: static` opts out — the footer just follows the content. */
body[data-frame-footer="sticky"] {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body[data-frame-footer="sticky"] > main { flex: 1 0 auto; }

main {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--space-3) var(--space-6);
}

main > h1 { margin: var(--space-5) 0 var(--space-4); }

/* One main idea per screen (design.md: roomy, low density by default). Bands
 * are separated by air, not by rules. */
main > section,
main > header { margin: 0 0 var(--space-6); }

/* A structural SLOT — scaffolded, not yet written. It renders as nothing at
 * all rather than as an empty box, so an unfinished page looks unfinished in
 * the source and finished on the screen. */
.slot { display: none; }

/* Motion is under 200ms, ease-out, and only ever on a state change
 * (design.md). `prefers-reduced-motion` is honoured here AND in tokens.css,
 * which zeroes --motion-duration at the root — belt and braces, because this
 * rule is the one that survives a theme that forgot. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* components.css — the chrome partials and the eight section layouts.
 *
 * @docs ../../README.md
 *
 * One class per layout id, in the order layouts/ lists them, so a layout and
 * its styling are findable from either end. Everything reads theme tokens
 * (base.css documents the contract); a literal colour here is a bug.
 */

/* ── site header (src/html/_header.html + _nav.html) ─────────────────────── */

.site-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  max-width: var(--page);
  margin: 0 auto;
  padding: var(--space-3);
}

/* Pinned to the top on scroll by default (wireframe.yml `frame.header: sticky`,
 * stamped onto <body> by the shell). Opaque page-bg so bands scrolling under it
 * stay legible; z-index sits above the sections but below the skip-link (z 100),
 * so keyboard focus still reaches it first. `frame.header: static` opts out and
 * the bar scrolls away with the page. */
body[data-frame-header="sticky"] .site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text-bright);
  text-decoration: none;
  letter-spacing: var(--tracking-tight);
}

.nav {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9375rem;
  padding-bottom: 2px;
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--text-bright); }
.nav a[aria-current="page"] { border-bottom: 2px solid var(--accent); }

/* The theme mount point. In single and paired modes nothing ever renders into
 * it — an empty seam should cost no layout, so it collapses rather than
 * reserving a gap that never gets used. */
.site-theme-picker:empty { display: none; }

/* ── site footer (src/html/_footer.html) ─────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border);
  max-width: var(--page);
  margin: 0 auto;
  padding: var(--space-4) var(--space-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: baseline;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.legal-nav { display: flex; gap: var(--space-3); flex: 1; justify-content: center; }
.legal-nav a, .footer-contact a { color: var(--text-secondary); text-decoration: none; }
.legal-nav a:hover, .footer-contact a:hover { color: var(--text-bright); text-decoration: underline; }
.colophon { font-family: var(--font-mono); font-size: 0.68rem; width: 100%; text-align: center; }

/* ── hero ────────────────────────────────────────────────────────────────── */

.hero { padding: var(--space-5) 0 var(--space-4); }

.eyebrow {
  margin: 0 0 var(--space-2);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* The one accent word in the lockup — content/copy.json's `{{accent:…}}`
 * marker. Sparing, and the only place colour carries meaning above the fold. */
.hero-title .accent { color: var(--accent); }

.hero-sub {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: var(--measure);
}

.hero-cta, .cta-final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.hero-note { color: var(--text-muted); font-size: 0.875rem; }

/* ── buttons and store badges (hero + cta-final) ─────────────────────────── */

.btn, .badge {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;              /* 44px — the tap-target floor */
  padding: 0 var(--space-3);
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--motion-duration) var(--motion-ease),
              border-color var(--motion-duration) var(--motion-ease),
              color var(--motion-duration) var(--motion-ease);
}

.btn--primary {
  background: var(--accent);
  color: var(--ink-on-accent);
  border: 1px solid var(--accent);
}
.btn--primary:hover { background: var(--accent-bright); border-color: var(--accent-bright); }

.btn--ghost {
  border: 1px solid var(--border-bright);
  color: var(--text-primary);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--text-bright); }

.badge {
  border: 1px solid var(--border-bright);
  color: var(--text-secondary);
  font-weight: 500;
}

/* A store badge with nowhere to point yet. It still carries its label, because
 * an unlabelled control fails WCAG 4.1.2 whether or not there is anything to
 * click — cta.json's own note makes that call. Muted, not hidden: the roadmap
 * is part of the message. */
.badge--coming-soon {
  color: var(--text-muted);
  border-style: dashed;
  cursor: default;
}

/* ── cta-final ───────────────────────────────────────────────────────────── */

.cta-final {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: var(--space-4);
  text-align: center;
}
.cta-final-actions { justify-content: center; }

/* ── showcase-band ───────────────────────────────────────────────────────── */

.showcase-frames {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: var(--space-3);
}

.showcase-frame {
  margin: 0;
  padding: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.showcase-frame h3 { margin-bottom: var(--space-2); }
.showcase-shot { border-radius: 6px; border: 1px solid var(--border); }

/* content/showcase.json's `reducedMotion: static-first-frame`, expressed
 * declaratively: when the visitor asks for less motion, a looping band shows
 * only its first frame instead of cycling. No JS reads the preference. */
@media (prefers-reduced-motion: reduce) {
  .showcase-band[data-loop="true"] .showcase-frame:not(:first-child) { display: none; }
}

/* ── steps ───────────────────────────────────────────────────────────────── */

.steps-list {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: var(--space-4);
}

/* 01 / 02 / 03 comes from a CSS counter, not from the markup and not from the
 * build — see layouts/steps.yml. `decimal-leading-zero` is the whole feature.
 * Generated content is not in the accessibility tree, which is right here: the
 * <ol> already announces the position, and a screen reader should not have to
 * hear "zero one" before every step title. */
.step { counter-increment: step; }
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--accent);
  margin-bottom: var(--space-1);
}
.step-title { margin-bottom: var(--space-1); }
.step-detail { color: var(--text-secondary); margin: 0; }

/* ── feature-grid ────────────────────────────────────────────────────────── */

/* A per-placement band, set by wireframe.yml's `class: band-alt` and passed
 * through the layout's `#{plot@class!}`. The layout has no opinion about it —
 * the same grid on another page may want no band at all. */
.band-alt {
  background: var(--surface);
  border-block: 1px solid var(--border);
  padding: var(--space-4) var(--space-3);
  border-radius: 10px;
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: var(--space-3);
}

.feature-card {
  padding: var(--space-3);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.feature-card h3 { margin-bottom: var(--space-1); font-size: 1rem; }
.feature-card p { margin: 0; color: var(--text-secondary); }

/* ── feature-list ────────────────────────────────────────────────────────── */

.feature-entries { margin: 0; }
.feature-entry {
  padding: var(--space-3) 0;
  border-top: 1px solid var(--border);
}
.feature-entry:first-child { border-top: 0; padding-top: 0; }
.feature-entry dt {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--text-bright);
  margin-bottom: var(--space-1);
}
.feature-entry dd { margin: 0; color: var(--text-secondary); max-width: var(--measure); }

/* ── release-notes ───────────────────────────────────────────────────────── */

.platform-section { margin-bottom: var(--space-5); }
.platform-title { font-size: 1.25rem; }

.release-entries { list-style: none; margin: 0; padding: 0; }
.release-entry {
  padding: var(--space-3) 0;
  border-top: 1px solid var(--border);
}

.release-head {
  display: flex;
  gap: var(--space-2);
  align-items: baseline;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}
.release-head .build-number { font-family: var(--font-mono); }

.highlights { margin: 0 0 var(--space-2); }
.highlights dt { font-weight: 600; color: var(--text-primary); }
.highlights dd { margin: 0 0 var(--space-2); color: var(--text-secondary); max-width: var(--measure); }

/* The sanctioned record of a maintenance re-ship — an empty `highlights` in
 * release-notes.json. Stated in words, not left blank. */
.maintenance { color: var(--text-muted); font-style: italic; margin: 0; }

/* ── contact ─────────────────────────────────────────────────────────────── */

.contact-email {
  font-family: var(--font-mono);
  font-size: 1.125rem;
}

/* Home entrance. Glass walls and a hollow ball, from the Reveal screens.
 * The ball's red is the mark: #F6211F. The lines are #EBEBEB. */

.entrance {
  --line: #ebebeb;
  --ball: #f6211f;
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  overflow: hidden;
  color: var(--line);
  background: transparent;
}

html, body { background: transparent; }

body:has(.entrance) main {
  display: flex;
  flex-direction: column;
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
}

body:has(.entrance) main > section { margin: 0; }

.field {
  /* Plain gradient blobs, NOT an SVG with feGaussianBlur: a stdDeviation-78
   * blur over a full-screen animated group was re-rasterised on the CPU every
   * frame (~185 ms/frame measured, ~17 ms without it). Transform-only
   * animation on gradient layers stays on the compositor. */
  position: fixed;
  inset: -28%;
  z-index: 0;
  width: 156%;
  height: 156%;
  background: #b7a48c;
  overflow: hidden;
  pointer-events: none;
  transform: translate3d(var(--shift-x, 0), var(--shift-y, 0), 0);
}

.field .blob {
  position: absolute;
  display: block;
  border-radius: 50%;
  transform-origin: center;
  will-change: transform;
}

.blob-a { left: -22.50%; top: -0.31%; width: 108.33%; height: 65.62%; background: radial-gradient(closest-side, #e4d3bc 0%, #e4d3bc 45%, #e4d3bc00 100%); }
.blob-b { left: 21.67%; top: 18.12%; width: 100.00%; height: 81.25%; background: radial-gradient(closest-side, #8d7360 0%, #8d7360 45%, #8d736000 100%); }
.blob-c { left: -17.92%; top: 50.31%; width: 129.17%; height: 59.38%; background: radial-gradient(closest-side, #c3ad93 0%, #c3ad93 45%, #c3ad9300 100%); }
.blob-d { left: -17.50%; top: -10.94%; width: 75.00%; height: 46.88%; background: radial-gradient(closest-side, #efe2cc 0%, #efe2cc 45%, #efe2cc00 100%); }
.blob-e { left: 46.25%; top: -13.44%; width: 70.83%; height: 71.88%; background: radial-gradient(closest-side, #6e5c4c 0%, #6e5c4c 45%, #6e5c4c00 100%); }

.blob-a { animation: frost-a 13s ease-in-out infinite alternate; }
.blob-b { animation: frost-b 17s ease-in-out infinite alternate; }
.blob-c { animation: frost-c 15s ease-in-out infinite alternate; }
.blob-d { animation: frost-d 11s ease-in-out infinite alternate; }
.blob-e { animation: frost-e 19s ease-in-out infinite alternate; }

.stage {
  position: absolute;
  left: 0;
  right: 0;
  top: 62%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: auto;
}

.entrance h1 {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 0;
}

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

.maze {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.maze .walls,
.maze .mark {
  fill: none;
  stroke: rgb(255 255 255 / 0.9);
  stroke-width: 16;
}

.maze .walls {
  opacity: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.maze .mark {
  stroke-linecap: round;
  stroke-linejoin: round;
}

.entrance.is-settled .maze .walls {
  opacity: 0;
  transition: opacity 1.05s ease;
}

.maze .mark { opacity: 1; }
.entrance.is-playing:not(.is-settled) .maze .mark { opacity: 0; }
.entrance.is-settled .maze .mark {
  opacity: 1;
  transition: opacity 0.7s ease;
}

.maze .word {
  font-family: var(--font-body);
  font-size: 34px;
  font-weight: 500;
  letter-spacing: 0.34em;
  fill: #ebebeb;
  stroke: none;
  stroke-width: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: translateY(16px) scale(0.9);
}

.entrance.is-settled .maze .word {
  transform: translateY(0) scale(1);
  transition: transform 0.95s cubic-bezier(0.16, 0.84, 0.32, 1) 0.2s;
}

.ball-halo { fill: url("#ball-feather"); }

.ball-body {
  fill: var(--ball);
  stroke: var(--ball);
  stroke-width: 2;
}

.ball-shine { fill: rgb(255 255 255 / 0.85); opacity: 0; }

.entrance.is-playing .ball-body {
  fill: transparent;
  stroke: rgb(255 255 255 / 0.92);
  stroke-width: 4;
}
.entrance.is-playing .ball-shine { opacity: 1; }
.entrance.is-playing:not(.is-settled) .entrance-cta {
  opacity: 0;
  pointer-events: none;
}

.entrance.is-settled .ball-body {
  fill: var(--ball);
  stroke: var(--ball);
  transition: fill 0.8s ease, stroke 0.8s ease;
}
.entrance.is-settled .ball-shine { opacity: 0; transition: opacity 0.6s ease; }
.entrance.is-settled .entrance-cta { opacity: 1; transition: opacity 0.8s ease; }

.entrance-cta {
  margin-top: 0.25rem;
  perspective: 900px;
}

.btn-tilt {
  display: inline-block;
  transform-style: preserve-3d;
  transition: transform 0.16s ease-out;
  will-change: transform;
}

.entrance-cta .btn {
  display: inline-block;
  padding: 0.9rem 1.5rem;
  border: 1px solid rgb(255 255 255 / 0.38);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.12);
  color: var(--line);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35);
  transform: translateZ(18px);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, backdrop-filter 0.2s ease;
}

.entrance-cta .btn.is-hot {
  background: rgb(255 255 255 / 0.26);
  border-color: rgb(255 255 255 / 0.72);
  backdrop-filter: blur(30px) saturate(1.7);
  -webkit-backdrop-filter: blur(30px) saturate(1.7);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.7),
    0 16px 36px rgb(70 54 32 / 0.22);
}

.entrance-cta .btn[aria-disabled="true"] { cursor: default; }

main {
  position: relative;
  z-index: 1;
}

/* Support/Privacy/Terms are short prose, not a full-bleed scene like Home.
 * The house default (wireframe.yml frame.footer: sticky) floats a short
 * page's footer to the viewport floor, which reads as a stray gap on these
 * three — so here the footer follows the content instead. Scoped by
 * data-page rather than turned off site-wide, because Home's min-100vh flex
 * column is what gives .entrance its full-viewport height. */
body[data-page="support"],
body[data-page="privacy"],
body[data-page="terms"] {
  min-height: 0;
  display: block;
}
body[data-page="support"] > main,
body[data-page="privacy"] > main,
body[data-page="terms"] > main {
  flex: none;
}

.site-footer {
  position: relative;
  z-index: 2;
  max-width: none;
  border: 0;
  background: transparent;
  box-shadow: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-align: center;
}

.legal-nav {
  flex: none;
  align-items: center;
  gap: 0.55rem;
}

.nav-sep { color: rgb(58 50 44 / 0.45); }

.legal-nav a,
.colophon {
  color: rgb(58 50 44 / 0.82);
}

.legal-nav a[aria-current="page"],
body[data-page="home"] .legal-nav a[data-nav="home"],
body[data-page="support"] .legal-nav a[data-nav="support"],
body[data-page="privacy"] .legal-nav a[data-nav="privacy"],
body[data-page="terms"] .legal-nav a[data-nav="terms"] {
  color: #3a322c;
}

.colophon,
.copyright {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: rgb(58 50 44 / 0.55);
}

.legal,
.issue-report {
  max-width: 38rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
  color: #3a322c;
}

.legal h2,
.issue-report h2 { font-size: 1.15rem; margin: 1.75rem 0 0.5rem; }

.legal a,
.issue-report a { color: #3a322c; }

.legal-updated,
.report-intro,
.report-hint { color: rgb(58 50 44 / 0.82); }

.report-form { display: grid; gap: 0.9rem; margin-top: 1.25rem; }
.report-form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
/* Question / Problem / Idea: one track, one thumb that slides to the checked
 * option. Pure CSS: three equal columns, and the thumb's translateX follows
 * which radio is checked (:has). Radios stay real inputs, so keyboard and
 * screen readers work as for any radio group. */
.report-kinds {
  --pad: 4px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-self: start;
  width: min(100%, 22rem);
  padding: var(--pad);
  border: 1px solid rgb(58 50 44 / 0.25);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.18);
}
.report-kinds::before {
  content: "";
  position: absolute;
  top: var(--pad);
  bottom: var(--pad);
  left: var(--pad);
  width: calc((100% - 2 * var(--pad)) / 3);
  border-radius: 999px;
  background: #3a322c;
  transition: transform 0.28s cubic-bezier(0.3, 0.9, 0.3, 1);
}
.report-kinds:has(.report-kind:nth-child(2) input:checked)::before { transform: translateX(100%); }
.report-kinds:has(.report-kind:nth-child(3) input:checked)::before { transform: translateX(200%); }
.report-kind { position: relative; z-index: 1; display: block; cursor: pointer; }
.report-kind input { position: absolute; opacity: 0; pointer-events: none; }
.report-kind span {
  display: block;
  padding: 0.55rem 0.5rem;
  min-height: 2.75rem;
  text-align: center;
  line-height: 1.6;
  border-radius: 999px;
  transition: color 0.28s ease;
}
.report-kind input:checked + span { color: #f4efe8; }
.report-kind input:focus-visible + span { outline: 2px solid #3a322c; outline-offset: 1px; }
@media (prefers-reduced-motion: reduce) {
  .report-kinds::before, .report-kind span { transition: none; }
}
.report-field { display: grid; gap: 0.3rem; }
.report-optional { display: grid; gap: 0.9rem; }
.report-label { font-size: 0.85rem; }
.report-field input,
.report-field textarea,
.report-field select {
  font: inherit;
  color: #3a322c;
  background: rgb(255 255 255 / 0.35);
  border: 1px solid rgb(58 50 44 / 0.2);
  border-radius: 0.6rem;
  padding: 0.65rem 0.75rem;
}
/* Turnstile's normal widget is a fixed 300x65. Sizing the frame to it (not
 * 100% wide) leaves none of the challenge page's own white canvas showing. */
.report-challenge iframe {
  display: block;
  width: 300px;
  max-width: 100%;
  height: 65px;
  border: 0;
  border-radius: 6px;
  overflow: hidden;
  color-scheme: light;
}
.report-form .btn {
  justify-self: start;
  font: inherit;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  border: 0;
  background: #3a322c;
  color: #f4efe8;
}
.report-status.is-error { color: #8c2f24; }
.report-status.is-ok { color: #2d5a32; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.plain,
main > h1 {
  max-width: var(--measure);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-3);
  padding-right: var(--space-3);
  color: #3a322c;
}

.plain { padding-top: var(--space-5); padding-bottom: var(--space-4); }

main > h1 { padding-top: var(--space-5); }

@keyframes frost-a {
  from { transform: translate(-8%, -6%) scale(1.05); }
  to { transform: translate(14%, 12%) scale(1.28); }
}

@keyframes frost-b {
  from { transform: translate(10%, 8%) scale(1.12); }
  to { transform: translate(-16%, -10%) scale(0.92); }
}

@keyframes frost-c {
  from { transform: translate(-6%, 12%) scale(1); }
  to { transform: translate(12%, -14%) scale(1.22); }
}

@keyframes frost-d {
  from { transform: translate(8%, -4%) scale(1.18); }
  to { transform: translate(-12%, 16%) scale(0.9); }
}

@keyframes frost-e {
  from { transform: translate(-14%, 6%) scale(1.08); }
  to { transform: translate(10%, -12%) scale(1.24); }
}

@media (prefers-reduced-motion: reduce) {
  .field .blob { animation: none; }
}
