/*
  LeadToRoute design tokens: the Hi-Vis system, shared by the website and the app.
  This file is the source. `node scripts/sync-design.mjs` copies it and design/fonts/
  to public/ (app) and website/assets/ (site); tests/design.test.mjs fails on drift.

  Rules
  - Graphite carries the interface. Safety orange marks only the route and the one
    next action on a screen; never use it for decoration.
  - Text on an orange fill is graphite, never white. Orange used as text is
    --ltr-orange-text.
  - Status colors mean state (booked, qualified, follow up, problem) and are never
    the brand.
  - App text floor is --ltr-text-xs (12px). Times, phone numbers, ZIPs and drive
    minutes use --ltr-font-mono.
*/
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("fonts/archivo.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("fonts/plex-mono-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("fonts/plex-mono-600.woff2") format("woff2");
}

:root {
  /* Neutrals */
  --ltr-graphite: #16191f;
  --ltr-graphite-2: #2b3039;
  --ltr-graphite-3: #3a404b;
  --ltr-slate: #5a616e;
  --ltr-steel: #a9afba;
  --ltr-line-strong: #c9ced6;
  --ltr-line: #e1e4e9;
  --ltr-ground: #f4f5f7;
  --ltr-surface: #ffffff;

  /* Accent: the route and the next action */
  --ltr-orange: #ff6b1a;
  --ltr-orange-hover: #ff8340;
  --ltr-orange-text: #b4470a;
  --ltr-orange-deep: #933806;
  --ltr-orange-soft: #ffe6d5;
  --ltr-orange-tint: #fff3ea;
  --ltr-orange-line: #ffd2b3;

  /* Status */
  --ltr-ok-bg: #e3f4e8;
  --ltr-ok-fg: #1b6638;
  --ltr-ok-line: #b9e0c5;
  --ltr-info-bg: #e7eefb;
  --ltr-info-fg: #284b9c;
  --ltr-info-line: #c3d3f2;
  --ltr-warn-bg: #fff0d6;
  --ltr-warn-fg: #7f4c00;
  --ltr-warn-line: #f0d29c;
  --ltr-danger-bg: #fdecea;
  --ltr-danger-fg: #a3271b;
  --ltr-danger-line: #f3c2bc;
  --ltr-neutral-bg: #eef0f3;
  --ltr-neutral-fg: #5a616e;

  /* Focus: 3px ring, offset 2px. Use --ltr-focus-on-dark on graphite. */
  --ltr-focus: #b4470a;
  --ltr-focus-on-dark: #ff6b1a;

  /* Type */
  --ltr-font-sans:
    "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ltr-font-mono:
    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ltr-display-stretch: 116%;
  --ltr-display-weight: 780;
  --ltr-display-track: -0.025em;
  --ltr-heading-weight: 700;
  --ltr-label-track: 0.1em;

  --ltr-text-xs: 0.75rem;
  --ltr-text-sm: 0.8125rem;
  --ltr-text-md: 0.875rem;
  --ltr-text-base: 1rem;
  --ltr-text-lg: 1.125rem;
  --ltr-text-xl: 1.375rem;
  --ltr-text-2xl: 1.75rem;
  --ltr-text-3xl: 2.25rem;

  /* Space, radius, elevation */
  --ltr-space-1: 4px;
  --ltr-space-2: 8px;
  --ltr-space-3: 12px;
  --ltr-space-4: 16px;
  --ltr-space-5: 20px;
  --ltr-space-6: 24px;
  --ltr-space-7: 32px;
  --ltr-space-8: 48px;
  --ltr-radius-sm: 4px;
  --ltr-radius: 6px;
  --ltr-radius-lg: 12px;
  --ltr-radius-pill: 999px;
  --ltr-shadow-card: 0 1px 2px rgb(22 25 31 / 0.06);
  --ltr-shadow-pop: 0 18px 40px -24px rgb(22 25 31 / 0.35);
}
