/* ==========================================================================
   THEME TOKENS: the only file to edit to re-theme a site.
   TrackSync theme: "Industrial Precision / Amber" (petrol navy + signal amber).
   Every colour, font, size, radius and shadow used by base.css and
   components.css comes from a variable below. Keep text/background pairs
   at a 4.5:1 contrast ratio or higher (WCAG 2.2 AA).
   ========================================================================== */

@layer reset, tokens, base, components, site;

@layer tokens {
  :root {
    /* Brand */
    --color-brand: #ffa726;          /* signal amber: buttons, icons, accents (not for text on white) */
    --color-brand-strong: #e99116;   /* hover/active */
    --color-brand-contrast: #0b1529; /* text on amber (9.4:1) */
    --color-brand-text: #995000;     /* amber-family text on white (6.0:1): eyebrows, "learn more" links */
    --color-accent: #995000;         /* links */

    /* Neutrals */
    --color-ink: #0b1529;            /* body text */
    --color-ink-muted: #526174;      /* secondary text (5.9:1 on cloud) */
    --color-surface: #ffffff;
    --color-surface-alt: #f7f8fa;    /* "cloud": alternate sections */
    --color-surface-dark: #0a1f30;   /* deep petrol: hero, dark bands, footer */
    --color-on-dark: #e8edf3;
    --color-on-dark-muted: #afc0d0;  /* 8.6:1 on petrol */
    --color-border: #e2e8f0;
    --color-focus: #2f80ed;          /* 3:1+ on both white and petrol */

    /* Header (dark, as in the brand boards) */
    --header-bg: rgb(10 31 48 / 0.92);
    --header-bg-solid: var(--color-surface-dark);
    --header-fg: #ffffff;
    --header-accent: var(--color-brand);
    --header-border: rgb(255 255 255 / 0.10);

    /* Hero */
    --fs-hero: clamp(2.25rem, 1.4rem + 3vw, 3.5rem);
    --hero-glow-1: #1f6aa5;          /* steel-blue glow, top right */
    --hero-glow-2: #ffa726;          /* faint amber glow, bottom left */

    /* Icon tiles: amber icon on a petrol tile */
    --icon-tile-bg: #0a1f30;
    --icon-tile-fg: #ffa726;

    /* Typography (self-hosted variable fonts, declared in site.css) */
    --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-heading: "Manrope", var(--font-sans);
    --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

    --fs-xs: 0.8125rem;
    --fs-sm: 0.9375rem;
    --fs-base: 1.0625rem;
    --fs-lg: 1.25rem;
    --fs-xl: clamp(1.375rem, 1.1rem + 1vw, 1.875rem);
    --fs-2xl: clamp(1.75rem, 1.3rem + 2vw, 2.625rem);
    --fs-3xl: clamp(2.25rem, 1.4rem + 3.6vw, 3.875rem);

    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 800;

    --lh-tight: 1.12;
    --lh-snug: 1.35;
    --lh-body: 1.65;

    /* Spacing scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 3rem;
    --space-8: 4.5rem;
    --space-9: 6rem;

    /* Layout */
    --container-max: 76rem;
    --container-narrow: 46rem;
    --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
    --header-height: 4.5rem;
    --hero-min-height: 34rem;

    /* Shape and depth */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-pill: 999px;
    --btn-radius: 8px;
    --shadow-sm: 0 1px 2px rgb(12 35 52 / 0.06), 0 1px 3px rgb(12 35 52 / 0.08);
    --shadow-md: 0 6px 20px rgb(10 31 48 / 0.08);
    --shadow-lg: 0 24px 60px rgb(10 31 48 / 0.18);

    /* Motion */
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --duration: 200ms;
  }
}
