/* Design tokens: override per client fork */

:root {
  color-scheme: light;

  /* Brand: Blythe Driveways "Tarmac and high-vis" (re-locked 2026-07-29 after
   * the A/B/C colour spread; supersedes the sandstone accent, Hugh picked A).
   * Deep slate-ink ground, stone off-white paper, one burnt-orange accent.
   * Clear of our other forks (blues and golden ambers) and of the Solihull
   * SERP field (green twice, dark red once). See DESIGN-VISION.md.
   *
   * IMPORTANT: --color-secondary is a brand accent only, use it for FILLS
   * (button backgrounds, decorative bars, icon backgrounds), NEVER as text on
   * white or dark backgrounds. The orange fill carries the warm-white
   * --color-secondary-fg. --color-accent is fill-only under the same rule.
   * Run `npm run check` to validate contrast after any token override.
   */
  --color-primary: #1d2733;
  --color-primary-hover: #131c26;
  --color-primary-fg: #f6f4ef;
  --color-secondary: #c1470f;
  --color-secondary-hover: #a63c0b;
  --color-secondary-fg: #fdf8f4;
  --color-accent: #d97b4a;

  /* Neutrals */
  --color-bg: #f5f4f0;
  --color-bg-alt: #fbfaf7; /* Stone off-white that harmonises with --color-bg. */
  --color-bg-dark: #141d27;
  --color-fg: #1d2733;
  --color-fg-muted: #545f6b;
  --color-fg-subtle: #828b97;
  --color-fg-inverse: #f6f4ef;
  --color-border: #e2dfd7;
  --color-border-strong: #c7c1b3;

  /* Status */
  --color-success: #2f8a5f;
  --color-danger: #c44a4a;
  --color-warning: #d99a39;

  /* Hero overlay (gradient on top of background image) */
  --overlay-hero: linear-gradient(180deg, rgba(20, 29, 39, 0.45) 0%, rgba(20, 29, 39, 0.7) 100%);

  /* Typography */
  /* Fonts: Inter for both body and display (house rule since 2026-05-14,
     Fraunces retired after client feedback; see the Abbott fork LOG Round 2.2). */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-display: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 2rem;
  --fs-4xl: 2.5rem;
  --fs-5xl: 3rem;
  --fs-6xl: 4rem;

  --fw-normal: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-black: 900;

  --lh-tight: 1.2;
  --lh-snug: 1.375;
  --lh-normal: 1.5;
  --lh-relaxed: 1.7;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 800px;
  --container-padding: var(--space-6);

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 400ms;

  /* Z-index */
  --z-header: 100;
  --z-mobile-nav: 200;
  --z-back-to-top: 250;
  --z-cookie: 300;
  --z-modal: 1000;
}
