/* Design tokens — extracted verbatim from nearby.css (Step 2.1 of docs/DESIGN_INTEGRATION.md).
   Do not add values here that aren't in the source :root block, and do not edit values that
   are. The comments below are load-bearing intent, not decoration — --acc in particular is
   fill-only and must carry ink-black labels, never white; see docs/DESIGN_INTEGRATION.md §1.1
   for why nearby.css's naming (not this comment) is the source of truth if the two ever
   disagree after a future nearby.css update. */

/* 01 · DESIGN TOKENS ======================================================= */
:root{
  /* --- surfaces ------------------------------------------------------- */
  --bg:#FAF9F7;          /* page ground, warm off-white                    */
  --surface:#FFFFFF;     /* cards, sheets, inputs                          */
  --tint:#FBF8F4;        /* soft panel behind quieter blocks               */

  /* --- ink (text + dark surfaces) ------------------------------------- */
  --ink:#121211;         /* primary text, dark buttons                     */
  --ink-2:#403E3A;       /* secondary text, icon strokes                   */
  --mut:#6E6B66;         /* meta, captions, helper copy - AA (4.7:1+) on every light surface incl. --line-2 table heads (was #75726D) */
  --faint:#ADAAA3;       /* NON-TEXT ONLY - dividers, disabled/inert chrome; use --faint-2 for text */
  --faint-2:#6E6B66;     /* text-safe faint (AA on --line-2 too, was #767269): placeholders, muted labels, locked/inert-but-readable text */
  --line:#EBE8E3;        /* hairlines, card borders                        */
  --line-2:#F5F3EF;      /* fills: segmented tracks, progress rails        */

  /* --- orange --------------------------------------------------------- */
  --acc:#FF5C35;         /* FILL ONLY — carries ink-black labels, never text. Enforced by tools/contrast-gate.php. */
  --acc-d:#CA3E1B;       /* text form: links, small labels on white (darkened for AA on --acc-w, was #D2401C) */
  --acc-w:#FFF2EE;       /* wash: grounds a block, never sits behind text  */
  --acc-b:#FFD9CD;       /* border tint for washed blocks                  */
  --acc-ink:#FF5C35;     /* accent text, --ink grounds ONLY (.ticker, .host) - same value as --acc; --acc-d fails there (3.76:1), --acc itself already clears AA on --ink (6.10:1) - this just names that one legitimate text use so the fill-only gate can allow it by name instead of by accident, and stays independently tunable if --acc or --ink ever move */

  /* --- semantic (meaning only, never decoration) ---------------------- */
  --ok:#127A5A;   --ok-w:#E9F5F1;
  --warn:#986405; --warn-w:#FCF3E4; /* --warn darkened for AA on --warn-w, was #A06A05 */
  --err:#C13A2E;  --err-w:#FBEEEC;

  /* --- radii ---------------------------------------------------------- */
  --r-sm:9px; --r:12px; --r-lg:16px; --r-xl:22px; --r-pill:999px;

  /* --- elevation ------------------------------------------------------ */
  --s1:0 1px 2px rgba(16,17,20,.05);
  --s2:0 6px 20px -10px rgba(16,17,20,.22);
  --s3:0 24px 60px -28px rgba(16,17,20,.42);

  /* --- type ----------------------------------------------------------- */
  --ff:"Syne","Instrument Sans",system-ui,-apple-system,sans-serif; /* body / small text (frontend). Admin pins Instrument Sans (nb-admin.css) */
  --fm:"IBM Plex Mono",ui-monospace,SFMono-Regular,monospace;
  --fd:"Unbounded","Inter Tight","Instrument Sans",system-ui,sans-serif; /* display / titles (frontend). Admin pins Inter Tight (nb-admin.css) */
  --cream:#FFF3EA;       /* header chips, hero text on ink (spotlight design) */
  --rust:#C94F2E;        /* perforation dots, icon accents on light (spotlight design) */
  /* Mono scale. Plex Mono ships at weight 400 ONLY (fonts.css) - never set it bolder, the
     browser fakes bold by smearing the glyphs. Emphasis comes from size + ink colour.
     label: uppercase kickers / stat labels / table heads; data: IDs, refs, times, counts;
     code: ticket codes, OTP digits. Phones: label 12px, data 13px (nb-mobile.css). */
  --fm-label:11px;
  --fm-data:12.5px;
  --fm-code:26px;

  /* --- rhythm --------------------------------------------------------- */
  --gap:16px;
  --sec-y:44px;          /* vertical padding of a section                  */
  --shell:1200px;        /* max content width                             */
  --pad:24px;            /* gutter                                        */
}

/* ONE z-index scale - site and admin (the site's nb-polish.css repeats it). Never a raw number above 20. */
:root {
  --z-base: 1; --z-sticky: 100; --z-dropdown: 200; --z-header: 300; --z-bar: 800; --z-banner: 850;
  --z-overlay: 900; --z-sheet: 1000; --z-modal: 1000; --z-toast: 1100; --z-tip: 1200;
}
