/* By Year Three design tokens, version 2 (18 Nov 2026, from the Claude Design project; renamed from US LLC Abroad on 18 Nov 2026),
   refined on 21 Nov 2026 (rhythm, panel inset, section titles, reading measures, crisper radii).
   Every colour, size and radius used elsewhere comes from here. Documented in DESIGN.md (rules),
   design/design-system.md (component inventory) and on /design-system. Files load in name order (1- … 8-).

   Colour: a triadic palette on the oklch wheel, hues 120° apart at matched lightness
   and chroma: teal 195° (brand and action), saffron 75° (attention: advertised prices,
   estimates) and orchid 315° (personal: your inputs, marker C). They sit on cool
   neutrals in a 60-30-10 split: 60% neutrals, 30% teal and navy, 10% saffron and orchid.
   Contrast (WCAG 2.x, computed for the Claude Design project): ink on paper 16.6:1,
   slate 6.7:1, muted 5.4:1, teal-700 6.1:1, saffron-400 on ink 9.5:1. Control edges
   (line-strong) 3.6:1 on paper. */

@font-face {
  font-family: "Newsreader";
  src: url("/assets/newsreader-latin-4b499f36.woff2") format("woff2");
  font-weight: 500 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/source-sans-3-latin-4320f018.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/source-sans-3-italic-latin-ff843b6e.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}

:root {
  /* Neutrals (cool, hue 230-255). Hex values are approximate, for reference. */
  --paper: oklch(0.995 0.003 240);      /* #fcfeff cards, bands */
  --canvas: oklch(0.975 0.006 240);     /* #f3f7fa page */
  --surface: oklch(0.955 0.010 230);    /* #eaf2f6 panels, table group rows */
  --line: oklch(0.905 0.012 240);       /* #d9e1e7 dividers */
  --line-strong: oklch(0.62 0.025 250); /* #7b8895 control edges, 3.6:1 */
  --ink: oklch(0.23 0.035 255);         /* #111e2d text, dark bands */
  --ink-2: oklch(0.36 0.035 255);       /* #313e4f secondary text, state fees in charts */
  --slate: oklch(0.47 0.03 255);        /* #505c6c secondary text */
  --muted: oklch(0.52 0.025 255);       /* #5f6a77 notes */

  /* Triad: 700 = text-safe, 400 = fills and highlights on dark, 50 = tints. */
  --teal-700: oklch(0.48 0.09 195);     /* #006d6d */
  --teal-800: oklch(0.40 0.08 195);     /* hover on teal */
  --teal-400: oklch(0.74 0.12 195);     /* #25c2c2 */
  --teal-50: oklch(0.955 0.03 195);     /* #daf7f6 */
  --saffron-700: oklch(0.50 0.10 70);   /* #875814 */
  --saffron-400: oklch(0.82 0.14 78);   /* #f6b84d */
  --saffron-50: oklch(0.965 0.04 85);   /* #fff2d6 */
  --orchid-700: oklch(0.48 0.13 315);   /* #79438f */
  --orchid-400: oklch(0.72 0.13 315);   /* #c38adc */
  --orchid-50: oklch(0.955 0.03 315);   /* #f8ebfe */
  --blue-700: oklch(0.46 0.11 255);     /* #285994 Included, marker D */
  --blue-50: oklch(0.955 0.025 255);    /* #e5f1ff */
  --danger: oklch(0.48 0.17 25);
  --danger-50: oklch(0.97 0.02 25);
  --focus: oklch(0.55 0.17 255);
  --focus-on-dark: oklch(0.80 0.10 255);
  /* Text on ink bands. */
  --on-ink: oklch(0.86 0.02 250);
  --on-ink-muted: oklch(0.80 0.02 250);

  /* Type: Newsreader for titles, Source Sans 3 for everything else. */
  --serif: "Newsreader", "Iowan Old Style", "Charter", Georgia, serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-xs: 0.8125rem;                           /* 13px notes, fine print */
  --fs-sm: 0.90625rem;                          /* 14.5px meta, chips */
  --fs-md: 1.0625rem;                           /* 17px body */
  --fs-lg: 1.25rem;                             /* 20px lead */
  --fs-xl: 1.5625rem;                           /* 25px card titles */
  --fs-2xl: clamp(1.75rem, 1.4rem + 0.9vw, 2.125rem);  /* 28-34px headings inside a page */
  --fs-section: clamp(1.875rem, 1.3rem + 1.55vw, 2.625rem); /* 30-42px section titles on landing pages and bands */
  --fs-3xl: clamp(2.125rem, 1.5rem + 1.9vw, 3rem);     /* 34-48px page titles */
  --fs-hero: clamp(2.5rem, 1.2rem + 3.9vw, 4.5rem);    /* 40-72px home */
  --leading-body: 1.55;
  --leading-tight: 1.08;

  /* Space (4px base) */
  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2rem; --s7: 3rem; --s8: 4.5rem; --s9: 6rem;
  /* Rhythm: one vertical step between page sections and bands, one inset for panels. */
  --section-y: clamp(3rem, 1.75rem + 3.5vw, 5rem);    /* 48-80px between sections, and inside full-width bands */
  --panel-pad: clamp(1.25rem, 0.9rem + 1.1vw, 2rem);  /* 20-32px inside panels, cards with a role, the hero card */

  /* Shape: radius grows with the surface (crisper since 21 Nov 2026). */
  --r-xs: 4px;   /* small marks: chip checkboxes, code, skeleton lines */
  --r-sm: 8px;   /* inputs, provider tiles */
  --r-md: 10px;  /* number panels, notices */
  --r-lg: 14px;  /* cards */
  --r-xl: 20px;  /* receipt, hero card, panels */
  --pill: 999px; /* buttons, chips, segmented controls */

  --shadow: 0 1px 2px oklch(0.23 0.035 255 / 0.06), 0 8px 24px oklch(0.23 0.035 255 / 0.08);
  --shadow-lg: 0 2px 6px oklch(0.23 0.035 255 / 0.08), 0 24px 60px oklch(0.23 0.035 255 / 0.16);

  /* Layout: one frame for every page (the header's); text pages cap their content inside it,
     left-aligned, so every page shares the same left edge. Reading stays at the measure. */
  --wide: 105rem;    /* 1680px the frame: header, page heads, product screens */
  --mid: 80rem;      /* 1280px content cap on text pages */
  --measure: 42.5rem; /* 680px body text */
  --measure-wide: 52rem; /* 832px leads, notes and answer boxes that sit in a wide frame */
  --gut: clamp(1.125rem, 3vw, 3.5rem);
  --header-h: 68px;
  --tap: 44px;
}
