/* GearMotive design tokens.
 *
 * Every value here was measured off the rendered WordPress original at 1366px
 * (tools/measure.mjs → BRAND.md), not read out of the Kadence stylesheets.
 * Where a value differs from the original it is because the original failed
 * WCAG AA; those are marked ORIGINAL/FIXED with the measured ratio, because a
 * later reader will otherwise "restore" them.
 */

:root {
  /* ---- Type ------------------------------------------------------------ */
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fw-body: 500;
  --fw-bold: 700;

  --fs-h1: 2rem;   --lh-h1: 3rem;
  --fs-h2: 1.75rem;   --lh-h2: 2.625rem;
  --fs-h2-card: 1.5625rem; --lh-h2-card: 1.875rem;
  --fs-h3: 1.5rem;   --lh-h3: 2.25rem;
  --fs-eyebrow: 1.25rem; --lh-eyebrow: 1.875rem;
  --fs-body: 1.0625rem; --lh-body: 1.6;
  --fs-small: 0.9375rem;
  --fs-xs: 0.8125rem;
  --fs-tag: 0.74375rem;

  /* ---- Colour ---------------------------------------------------------- */
  --page: #f7fafc;
  --surface: #ffffff;
  --ink: #424242;
  /* ⚠ NOT the dark content band's surface any more. That band is now a
   * photograph under #000000 @ 0.6 (`--band-overlay` in styles.css), whose
   * worst-case composite is #666666 — the SAME worst case #555555 @ 0.9 had,
   * so every ratio quoted against --band-mid below still bounds correctly, and
   * in practice the near-black band photographs land far darker than that.
   * --band-mid survives as Kadence palette6 and as that reference point. */
  --band-mid: #555555;
  --band-dark: #2f2f2f;
  --footer: #191919;
  --on-dark: #edf2f7;
  --accent: #ff0000;
  --accent-veil: rgba(201, 0, 0, 0.5);
  --rule: #edf2f7;

  /* ORIGINAL #696969 on --footer = 3.20:1 and on --band-dark = 2.44:1.
   * FIXED to the lightest neutral grey clearing 4.5:1 on BOTH dark surfaces:
   * 5.94:1 on --footer, 4.53:1 on --band-dark. (#8a8a8a, the obvious guess,
   * is only 3.88:1 on --band-dark — verify, do not eyeball.)
   * ⚠ It is 2.52:1 on --band-mid #555, so it must NOT be used there. */
  --muted-on-dark: #969696;
  /* #696969 was 4.38:1 on the light band's worst-case surface (#e6e6e6).
   * #676767 is 4.53:1 there and 5.66:1 on white. */
  --muted: #676767;

  /* ORIGINAL link colour #a38f8f failed everywhere it was used — 3.05:1 on
   * white, 2.91:1 on --page, 2.44:1 on --band-mid. It is a theme default
   * nobody chose, not a brand colour. FIXED to #7e2121 (client's choice,
   * 2026-08-21) after #6b5a5a read as too faint against the page: 9.87:1 on
   * white, 9.42:1 on --page.
   * ⚠ Only 1.15:1 on --band-mid — on any dark band use --link-on-dark. */
  --link: #7e2121;
  /* ⚠ TEXT LINKS ONLY — body copy, in a band, a card, an accordion, an article.
   * NOT the menu (white) and NOT the footer (--link-on-dark). Client, 2026-08-25.
   *
   * ⚠ Measured, so nobody has to wonder: #fc0000 is 4.09:1 on white, 3.90:1 on
   * --page and 3.27:1 on the light band's worst-case surface — all BELOW the
   * 4.5:1 that 17px text needs. On the dark band it is 4.84:1 over a typical
   * near-black pixel but 2.31:1 where the photograph brightens. It is the
   * client's choice with those numbers on the table; see PROJECT.md. The
   * nearest red that passes everywhere on light is #c60000 (4.95:1 worst case),
   * and swapping it in is one line. */
  --link-text: #fc0000;
  /* ⚠ …and the SAME red, deepened, for text on a light surface. Not a second
   * opinion about the colour — arithmetic. #fc0000 measured 4.09:1 on white and
   * failed the contrast gate 324 times, on every card, article listing and
   * accordion panel on the site. #c60000 is 6.17:1 on white, 5.89:1 on --page
   * and 4.95:1 on the light band's worst-case surface, and next to #fc0000 on a
   * dark band nobody can tell the two apart.
   *
   * ⚠ Making these one value again means picking which half fails. #fc0000 on
   * white is 4.09:1; #c60000 on a near-black band is 3.06:1. There is no single
   * red that clears 4.5:1 on both. */
  --link-text-on-light: #c60000;
  /* 9.45:1 on --band-dark, 12.41:1 on --footer, 5.26:1 on --band-mid. */
  --link-on-dark: #e2d6d6;

  /* ORIGINAL testimonial name: #ffffff on --accent = 4.00:1, needs 4.5.
   * FIXED by darkening the band, not the text — the red must stay red.
   * --accent-deep is the reddest value that clears it: 4.53:1 against white. */
  --accent-deep: #ee0000;

  /* ---- Layout ---------------------------------------------------------- */
  --container: 1290px;
  --content: 1200px;
  --narrow: 500px;
  --gutter: 24px;
  /* Was 90px — the original's. The client asked for a shorter bar on the
   * desktop too (2026-08-25); the nav links are 48px, so 72px is the shortest
   * that keeps 12px of breathing room above and below them. Phones take it
   * lower still — see the phone block in styles.css. ⚠ A token, not a number:
   * the nav dropdown's `top`, the hero's padding and the sticky offset all read
   * it. Never hard-code a header height. */
  --header-h: 72px;

  /* ---- Shape ----------------------------------------------------------- */
  --r: 8px;
  --r-sm: 5px;
  --r-xs: 3px;
  --r-pill: 30px;

  --shadow-card: rgba(0, 0, 0, 0.2) 4px 2px 14px 0px;
  --shadow-soft: rgba(0, 0, 0, 0.05) 0px 15px 15px -10px;

  /* ---- Rhythm ---------------------------------------------------------- */
  --space-section: 60px;
  --space-block: 30px;
  --space-tight: 16px;

  /* The header floats transparently over photography, so its white text has no
   * computable contrast (128 occurrences flagged as undecidable by
   * tools/contrast-report.mjs). A scrim makes it decidable and is the smallest
   * change that does — the original simply had nothing. */
  --scrim: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0) 100%);
  /* ⚠ The STICKY header's own scrim, and it is a contrast guarantee, not a
   * decoration. The header is transparent and its links are white; once it is
   * `position: fixed` it scrolls over `.section--light`, whose surface is
   * #e6e6e6-#ffffff. White on that is 1.1:1.
   *
   * So the veil holds a FLAT rgba(0,0,0,0.55) for the full height of the bar
   * and only fades below it — the fade must never reach the text. Worst cases:
   * over #ffffff -> #737373, 4.67:1. Over #e6e6e6 -> #676767, 5.65:1. Both AA.
   * ⚠ Do not turn this into a plain gradient again "because it looks lighter":
   * the link row sits in the middle of the bar, where a top-to-bottom fade has
   * already given up most of its opacity. The stop is at 62.5% because the box
   * is 1.6x the header height. */
  --header-scrim: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.55) 62.5%,
    rgba(0, 0, 0, 0) 100%
  );
  --scrim-solid: rgba(0, 0, 0, 0.45);
}
