/*
  SearchingPie design tokens (SEARCHINGPIE LTD, CRN 16206508)
  International Air Waybill (IATA AWB) & WCO Customs Clearinghouse Dispatch Ledger.
  Static CSS custom properties; every color pair is verified by design/scripts/contrast-check.mjs.
*/

/* ---------- Self-hosted fonts (SIL OFL 1.1, Latin subset) ---------- */
@font-face {
  font-family: "Overpass";
  src: url("fonts/overpass/Overpass-Latin-wght.woff2") format("woff2");
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-017F, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("fonts/atkinson-hyperlegible-next/AtkinsonHyperlegibleNext-Latin-wght.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-017F, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* ---------- Ground & Ink ---------- */
  --color-paper: #F3EFE6;         /* Waybill archival paper ground */
  --color-plate: #FFFFFF;         /* Customs plate white */
  --color-slate: #E7E2D5;         /* Quiet manifest slate paper */
  --color-ink: #14171A;           /* Carbon stencil ink */
  --color-ink-2: #3A4046;         /* Secondary manifest ink */

  /* ---------- Clearinghouse Accents ---------- */
  --color-navy: #153854;          /* WCO Tariff Navy */
  --color-navy-fg: #FFFFFF;       /* White text on Tariff Navy */
  --color-navy-fg-2: #D6E1EB;     /* Secondary text tinted from Tariff Navy */
  --color-vermilion: #B82918;     /* Customs Clearance Vermilion */
  --color-vermilion-fg: #FFFFFF;  /* White text on Vermilion */
  --color-vermilion-fg-2: #FCE1DD;/* Secondary text tinted from Vermilion */
  --color-amber: #FFC51A;         /* Airwaybill Amber Stamp / Marker (#14171A ink ONLY) */
  --color-amber-wash: #FFE58F;    /* Highlight sweep background (#14171A ink ONLY) */

  /* ---------- Structural Rules & Dark-Surface Ink ---------- */
  --color-rule: #14171A;          /* Solid 2px / 3px rules and control borders */
  --color-line-soft: #B8B2A2;     /* Decorative table hairlines only, never sole control border */
  --color-on-ink: #FFFFFF;        /* Text on carbon ink plates */
  --color-on-ink-2: #D4D7DB;      /* Secondary text on carbon ink plates */

  /* ---------- Focus ---------- */
  --focus-color: #14171A;
  --focus-color-on-dark: #FFC51A;
  --focus-width: 3px;
  --focus-offset: 3px;

  /* ---------- Typography ---------- */
  --font-display: "Overpass", "Atkinson Hyperlegible Next", "Noto Sans", sans-serif;
  --font-body: "Atkinson Hyperlegible Next", "Noto Sans", "Hiragino Sans", "Noto Sans CJK JP", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --text-xs: 0.875rem;            /* 14px: tabular metadata cells & code codes */
  --text-sm: 1rem;                /* 16px: secondary labels, nav items */
  --text-body: 1.0625rem;         /* 17px: reading prose */
  --text-lead: 1.25rem;           /* 20px: first-viewport mechanism summary */
  --text-h3: 1.3125rem;           /* 21px: module & card headings */
  --text-h2: clamp(1.625rem, 2.5vw, 2.125rem);
  --text-h1: clamp(2.125rem, 3.8vw, 3.25rem);

  --leading-body: 1.55;
  --leading-tight: 1.12;
  --measure: 68ch;

  /* ---------- Space, Targets, Borders ---------- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  --target-min: 44px;
  --target-primary: 56px;

  --border-control: 2px;
  --border-plate: 3px;
  --radius-sharp: 2px;
  --radius-plate: 4px;
  --radius-control: 6px;

  /* ---------- Motion (one authored sweep) ---------- */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-sweep: 560ms;
  --dur-press: 100ms;
}
