/*
 * Blanktick — "Brutal Signal"
 *
 * Near-black, one acid accent used only where action is required. No cards, no
 * radii, no shadows, no gradients, no blur. Hairlines and type scale carry
 * everything.
 *
 * ## Two rules that are not stylistic
 *
 * 1. NO WEBFONTS. A previous version of this page fetched fonts from Google and
 *    Fontshare while the copy invited the reader to "open your network tab —
 *    there is no request to make". System stacks only, so that sentence is now
 *    true.
 *
 * 2. NOTHING HERE MAY HIDE CONTENT. There is no rule in this file that sets
 *    opacity: 0, visibility: hidden or display: none on a content element
 *    awaiting a script. The previous build did, via a scroll-reveal, and if
 *    app.js failed to load, 45 of 45 sections stayed invisible on a
 *    9,684px-tall blank page. The direction forbids scroll animation anyway, so
 *    the mechanism is deleted rather than guarded — a feature that does not
 *    exist cannot regress.
 *
 * Every contrast ratio below was computed, not estimated.
 */

:root {
  /* Surfaces */
  --bg: #0A0A0A;
  --hairline: #242424;      /* 1.28:1 — decorative rules only, never a control */
  --hairline-fn: #6A6A6A;   /* 3.66:1 — functional boundaries, clears 1.4.11    */

  /* Ink ladder */
  --ink: #FFFFFF;           /* 19.80:1 */
  --ink-muted: #B4B4B4;     /*  9.55:1 */
  --ink-faint: #8A8A8A;     /*  5.73:1 */

  /*
   * The accent means ACT HERE, and nothing else. It is the only saturated
   * colour on the page, so it has to keep meaning one thing.
   */
  --accent: #D6FF3F;        /* 17.19:1 on bg; #0A0A0A on accent is also 17.19:1 */

  /*
   * The "could not check" colour, pinned ABOVE --ink-muted on purpose.
   *
   * This token carries the product's central claim, and in the app it was once
   * 3.05:1 — the most honest information in the product was the least legible
   * thing on screen. Here it is 10.69:1, brighter than muted body text, so any
   * future dimming shows up as an inversion of the ladder rather than as a
   * rounding error.
   */
  --not-checked: #B9C0BD;   /* 10.69:1 */

  --measure: 62ch;
  --gap: clamp(20px, 4vw, 48px);

  --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display",
                  "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text",
               "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas,
               "Liberation Mono", monospace;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Anchor targets must clear the fixed header, or a keyboard user lands
   underneath it — WCAG 2.4.11. */
:target, section[id] { scroll-margin-top: 7rem; }

.wrap { max-width: 1240px; margin: 0 auto; padding-inline: var(--gap); }

/* ------------------------------------------------------------------ type */

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; margin: 0; }
h1 { font-size: clamp(40px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -0.03em; }
h2 { font-size: clamp(26px, 2.6vw, 33px); line-height: 1.18; letter-spacing: -0.02em; }
h3 { font-size: 23px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
p  { max-width: var(--measure); }

.micro {
  font-size: 11.5px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--ink-faint); margin: 0 0 12px;
}
.lede { font-size: 19px; color: var(--ink-muted); max-width: 52ch; }
.small { font-size: 13.5px; color: var(--ink-faint); }

.figure {
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 99px);
  font-weight: 700; line-height: 0.9; letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums lining-nums;
  /* Reserve the box: DejaVu Sans has no tnum feature, so on a bare Linux
     stack the figures fall back to proportional and would reflow. */
  display: block; min-width: 3ch;
}

a { color: var(--ink); text-decoration-color: var(--ink-faint); text-underline-offset: 4px; }
a:hover, a:focus-visible { text-decoration-color: var(--accent); }

/* One indicator, both polarities: the inner ring in page-background is what
   keeps this visible on top of an accent-filled button. */
:where(a, button, input, summary, [tabindex]):focus-visible {
  outline: 3px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 5px var(--accent);
}
@media (forced-colors: active) {
  :where(a, button, input, summary, [tabindex]):focus-visible {
    outline: 3px solid CanvasText; outline-offset: 2px;
  }
}

.skip {
  position: fixed; inset-block-start: 0; inset-inline-start: 0; z-index: 100;
  transform: translateY(-120%);
  background: var(--accent); color: var(--bg);
  padding: 0.85rem 1.5rem; font-weight: 700; text-decoration: none;
  min-height: 44px; display: inline-flex; align-items: center;
}
.skip:focus-visible { transform: none; }

/* ------------------------------------------------------------------- nav */

header { border-bottom: 1px solid var(--hairline); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.brand { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; text-decoration: none; }
.nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav a { font-size: 14.5px; text-decoration: none; color: var(--ink-muted); padding-block: 0.75rem; display: inline-block; }
.nav a:hover { color: var(--ink); }
@media (max-width: 640px) { .nav ul { display: none; } }

/* --------------------------------------------------------------- layout */

section { padding-block: clamp(64px, 9vw, 128px); }
section + section { border-top: 1px solid var(--hairline); }

/* -------------------------------------------------------------- receipt */

/*
 * The score and the not-checked count at identical weight, side by side.
 *
 * The whole strategy lives in this layout. If the score were 96px and "not
 * checked" were 13px grey caption text, the page would be the thing it is
 * criticising, with an asterisk.
 */
.receipt {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 5vw, 72px);
  border-top: 1px solid var(--hairline); padding-top: 40px; margin-top: 56px;
}
@media (max-width: 720px) { .receipt { grid-template-columns: 1fr; } }
.receipt .figure.ran { color: var(--ink-muted); }
.receipt .figure.gap { color: var(--ink); }
.receipt dt { margin-top: 14px; }
.receipt .lbl-ran { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-faint); }
.receipt .lbl-gap { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--not-checked); }
.receipt dd { margin: 10px 0 0; font-size: 14px; color: var(--ink-muted); max-width: 40ch; }

.cta {
  display: inline-block; background: var(--accent); color: var(--bg);
  font-weight: 700; font-size: 16px; text-decoration: none;
  padding: 16px 28px; min-height: 48px; border: 0;
}
.cta:hover { background: #E4FF6B; }
.cta-quiet {
  display: inline-block; color: var(--ink); text-decoration: none;
  border: 1px solid var(--hairline-fn); padding: 15px 24px; min-height: 48px; font-size: 16px;
}

/* ---------------------------------------------------------------- table */

.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin-top: 32px; }
caption { text-align: left; color: var(--ink-faint); font-size: 13.5px; padding-bottom: 16px; max-width: var(--measure); }
th[scope="col"] { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-faint); border-bottom: 2px solid var(--hairline-fn); padding: 0 16px 10px 0; font-weight: 600; }
th[scope="rowgroup"] { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.14em; padding: 28px 0 10px; border-bottom: 1px solid var(--hairline-fn); color: var(--ink); }
th[scope="row"] { text-align: left; font-weight: 400; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--hairline); }
td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--hairline); font-size: 15px; }
/* Full contrast, deliberately: the honest column must not look quieter than
   the flattering one. */
td.cannot { color: var(--not-checked); }
td .g { font-family: var(--font-mono); color: var(--accent); margin-right: 8px; }

/* ----------------------------------------------------------------- misc */

.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px 56px; }
.item h3 { margin-bottom: 8px; }
.item p { font-size: 15px; color: var(--ink-muted); }

pre {
  font-family: var(--font-mono); font-size: 13.5px; line-height: 1.7;
  color: var(--ink-muted); background: none;
  border: 1px solid var(--hairline); padding: 20px;
  overflow-x: auto; margin: 24px 0 0; max-width: 100%;
}
pre b { color: var(--accent); font-weight: 500; }

.warn { border-left: 4px solid var(--hairline-fn); padding-left: 20px; margin: 32px 0; }
.warn strong { display: block; margin-bottom: 6px; }

footer { border-top: 1px solid var(--hairline); padding-block: 48px; color: var(--ink-faint); font-size: 13.5px; }
footer p { max-width: var(--measure); }
