/* Design tokens — What Is Cost Seg. Custom properties only, no selectors. */
:root {
  /* Color: base */
  --color-ink: #161a20; /* near-black, body text */
  --color-paper: #f8f6f1; /* warm near-white, page background */
  --color-paper-dim: #efebe2; /* slightly deeper paper, section banding */

  /* Color: navy (primary brand) */
  --color-navy: #16324f;
  --color-navy-deep: #0e1e30; /* footer, deepest sections */
  --color-navy-mid: #1f4368; /* hover state, mid tone */

  /* Color: gold (CTA / accent) */
  --color-gold: #b8863b;
  --color-gold-hover: #9c6f2b;
  --color-gold-tint: #f3e6cf;
  --color-gold-text: #8a5c24; /* gold family darkened to 5.3:1 on paper — for small/normal-size text on light backgrounds, where --color-gold itself fails AA (2.99:1) */

  /* Color: benefit / risk callout system (the site's signature honesty device) */
  --color-benefit: #2f6f5e;
  --color-benefit-bg: #eaf3ef;
  --color-risk: #a63c3c;
  --color-risk-bg: #f7ebe9;

  /* Contrast-safe text-on-color pairings (verified — see PROJECT.md Contrast Log) */
  --text-on-navy: var(--color-paper); /* 12.1:1 */
  --text-on-gold: var(--color-ink); /* 5.4:1 — never pair gold bg with paper text (2.99:1, fails) */
  --text-on-paper: var(--color-ink); /* 16.2:1 */

  /* Typography */
  --font-display: "Newsreader", "Iowan Old Style", "Georgia", serif;
  --font-body: "Work Sans", "Segoe UI", system-ui, sans-serif;

  /* Type scale */
  --size-h1: clamp(2.25rem, 4.5vw + 1rem, 4.25rem);
  --size-h2: clamp(1.65rem, 2.6vw + 0.85rem, 2.5rem);
  --size-h3: clamp(1.25rem, 1.4vw + 0.75rem, 1.65rem);
  --size-lead: clamp(1.125rem, 0.6vw + 1rem, 1.375rem);
  --size-body: 1.0625rem;
  --size-small: 0.9rem;

  /* Line heights */
  --leading-tight: 1.15;
  --leading-snug: 1.35;
  --leading-body: 1.65;

  /* Spacing scale (fluid) */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: clamp(1.5rem, 2vw, 2rem);
  --space-lg: clamp(2rem, 3.5vw, 3rem);
  --space-xl: clamp(2rem, 3.5vw, 3rem);
  --space-2xl: clamp(2.5rem, 4.5vw, 4rem);

  /* Layout */
  --measure: 68ch; /* long-form reading line length */
  --container-max: 1200px;
  --container-narrow: 780px;

  /* Radii — deliberately small/sharp, matches the trust/finance register (not rounded/playful) */
  --radius-sm: 4px;
  --radius-md: 6px;

  /* Shadows */
  --shadow-card: 0 1px 2px rgb(14 30 48 / 6%), 0 8px 24px rgb(14 30 48 / 8%);
  --shadow-lifted: 0 4px 8px rgb(14 30 48 / 8%), 0 16px 40px rgb(14 30 48 / 12%);

  /* Motion */
  --ease-standard: cubic-bezier(0.2, 0.7, 0.3, 1);
  --duration-fast: 150ms;
  --duration-standard: 260ms;
}
