/* GENERATED FROM docs/design-system/options/option-a-plainspoken/tokens.css — edit there, then copy. Variables only. */
/* Dave Knows Mortgages — Option A · Plainspoken — rev5 2026-10-07 (the live site: white page, green section bands, filled tiles, cards and panels)
   Canonical token source. Every colour, size and space on the site comes from here.
   Spec and reasoning: ../option-a-plainspoken.md
   Contrast (WCAG 2.1): all text pairs >= 6.1:1; control borders >= 3.6:1. Checked 2026-09-19. */

:root {
  /* ---------- Type ---------- */
  /* Display: headlines, the wordmark, the one hero sentence. Utility: everything else. No third face. */
  /* rev3: ONE family, and not Inter — Inter is the default face of generated pages. Public Sans (SIL OFL, USWDS) reads
     institutional and plain, which is right for a licensed professional. */
  --font-display: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-utility: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Mobile-first scale (375px is the design surface) */
  --text-h1: 2.5rem;        /* 40px */
  --lh-h1: 1.08;
  --text-h2: 1.75rem;       /* 28px */
  --lh-h2: 1.2;
  --text-h3: 1.375rem;      /* 22px */
  --lh-h3: 1.25;
  --text-body: 1.125rem;    /* 18px — the floor for running text */
  --lh-body: 1.55;
  --text-small: 0.9375rem;  /* 15px */
  --lh-small: 1.45;
  --text-legal: 0.8125rem;  /* 13px — disclosures only */
  --lh-legal: 1.45;
  --text-credential: 0.8125rem; /* 13px caps, tracked — the NMLS line */
  --tracking-credential: 0.06em;

  --weight-display: 700;    /* rev2: was 600 — headlines need to carry the page without a serif */
  --weight-body: 400;
  --weight-strong: 600;

  --measure: 34rem;         /* max line length for running text */

  /* ---------- Colour ---------- */
  --ground-page: #FFFFFF;   /* rev3b: white. Bands alternate with --ground-band */
  --ground-band: #0B6B3A;   /* rev3c: the alternate section ground IS the action green, white type on it (Anthony, 2026-09-24) */
  --ground-card: #FFFFFF;
  --ground-panel: #F1EFE9;  /* rev4: frames around grouped controls, step cards, open FAQ items */
  --ground-bubble: #E6F2EA; /* message bubbles holding David's own words; the tile icon chip on a green band */
  --star: #FBBC04;          /* 2026-09-28 (Anthony): every review star on the site. Google's own review-star yellow */
  --ground-pick: #E6F2EA;   /* 2026-09-28: the recommended column of a comparison table (TMK pattern). Action green text on it = 5.7:1 */
  --ground-note: #FFF6DC;   /* the amber note — retired from Home and ad pages 2026-09-28; article template only */

  --ink: #14171A;
  --ink-muted: #56606B;
  --ink-note: #5C4300;

  --border: #DAD7CF;         /* decorative dividers, card outlines */
  --border-control: #7C838C; /* anything tappable or typeable: tiles, inputs */

  /* THE brand green. Fills: primary buttons, quiz tiles, alternate section bands, the 6px header rule, step numeral chips.
     As text: David's name in the hero headline, links, the recommended column of a comparison table. */
  --action: #0B6B3A;
  --action-hover: #095730;
  --on-action: #FFFFFF;

  --focus: #14171A;
  --on-ink: #FFFFFF;        /* text on ink grounds: portrait caption, skip link */

  /* ---------- Space (4px base) ---------- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  --gutter: var(--space-5);       /* page side padding at 375 */
  --section-gap: var(--space-9);  /* rev2: 96px between sections at 375 (was 64) — air is the cleanliness */
  --content-max: 70rem;           /* 1120px */

  /* ---------- Shape ---------- */
  --radius: 6px;           /* controls: buttons, tiles, inputs */
  --radius-panel: 8px;      /* rev4: panels and cards — the only non-control radius */
  --radius-bubble: 16px;   /* message bubbles only */
  --border-width: 1px;
  --border-width-control: 2px;    /* rev2: was 1.5 — tiles and inputs must read as tappable, not as list rows */
  --border-width-selected: 3px; /* selected quiz tile */
  --border-pill: 0;                /* rev3: the audience line is text, not a pill */
  /* Shadows: none. Gradients: none. */

  /* ---------- Targets ---------- */
  --tap-min: 3.5rem;       /* 56px — buttons */
  --tap-tile: 5rem;        /* 80px — quiz answer tiles */
}

/* Breakpoints (custom properties can't be used in media queries — these are the values to type):
   750px  tablet
   990px  desktop — structure changes only where the conversion rules list a desktop delta */
@media (min-width: 990px) {
  :root {
    --text-h1: 3.75rem;    /* 60px */
    --lh-h1: 1.02;
    --text-h2: 2.25rem;    /* 36px */
    --text-h3: 1.5rem;     /* 24px */
    --gutter: var(--space-7);
    --section-gap: var(--space-9);
  }
}

