/* Black Fox Motors - design tokens "Munich Noir" v1.0
   One file, every page. Car pages override a few tokens through data-theme. */

:root {
  /* ---------- colour: brand ---------- */
  --bf-noir: #0b0b0c;        /* page background, dark */
  --bf-ink: #121213;         /* raised dark surface */
  --bf-graphite: #1b1b1d;    /* cards, inputs on dark */
  --bf-asphalt: #2a2a2d;     /* hairlines on dark */
  --bf-fog: #9a968e;         /* secondary text on dark (6.6:1) */
  --bf-stone: #c9c2b5;       /* limestone mid tone */
  --bf-limestone: #e8e2d6;   /* light section background */
  --bf-bone: #f4f1ea;        /* primary text on dark, light surface */
  --bf-paper: #fbfaf7;
  --bf-umber: #57534c;       /* secondary text on light (7.2:1) */

  --bf-fox: #c4703f;         /* accent, used sparingly: dots, active states, focus */
  --bf-fox-deep: #9a5128;    /* accent as text on light backgrounds */
  --bf-bayern: #14389a;      /* footer variant, Bavarian blue */

  --bf-ok: #7d9a72;
  --bf-error: #d2553f;

  /* ---------- colour: roles (dark default) ---------- */
  --bg: var(--bf-noir);
  --surface: var(--bf-ink);
  --surface-2: var(--bf-graphite);
  --line: color-mix(in oklab, var(--bf-bone) 14%, transparent);
  --line-strong: color-mix(in oklab, var(--bf-bone) 28%, transparent);
  --fg: var(--bf-bone);
  --fg-muted: var(--bf-fog);
  --accent: var(--bf-fox);
  --on-accent: var(--bf-noir);
  --btn-bg: var(--bf-bone);
  --btn-fg: var(--bf-noir);

  /* ---------- type ---------- */
  --font-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --font-sans: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --fs-display-xl: clamp(3.5rem, 1.2rem + 9.2vw, 10.5rem);
  --fs-display-l: clamp(2.75rem, 1.1rem + 6vw, 6.75rem);
  --fs-h1: clamp(2.25rem, 1.2rem + 3.6vw, 4.5rem);
  --fs-h2: clamp(1.75rem, 1.2rem + 1.9vw, 3rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.5vw, 1.625rem);
  --fs-body-l: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-label: 0.71875rem; /* 11.5px expanded caps */
  --fs-mono: 0.8125rem;

  --lh-tight: 0.92;
  --lh-head: 1.05;
  --lh-body: 1.6;

  --label-stretch: 125%;
  --label-track: 0.18em;

  /* ---------- space (4px base) ---------- */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;
  --s-11: 192px;
  --section-y: clamp(96px, 11vw, 192px);
  --gutter: clamp(16px, 1.8vw, 32px);
  --margin: clamp(20px, 4.2vw, 72px);
  --max: 1680px;

  /* ---------- shape ---------- */
  --radius: 0px;        /* architecture, not app: square corners */
  --radius-pill: 999px; /* only swatches, chips, round icon buttons */
  --hairline: 1px;

  /* ---------- motion ---------- */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);       /* UI enters, hovers that move */
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);   /* things moving on screen, wipes */
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);    /* menus, drawers */
  --ease-lux: cubic-bezier(0.16, 1, 0.3, 1);        /* marketing reveals, long and soft */

  --dur-press: 140ms;
  --dur-hover: 200ms;
  --dur-ui: 240ms;
  --dur-drawer: 460ms;
  --dur-reveal: 900ms;
  --dur-media: 1300ms;
  --stagger: 110ms;
  --reveal-y: 28px;
}

/* ---------- light context (any section can flip) ---------- */
[data-tone="light"] {
  --bg: var(--bf-limestone);
  --surface: var(--bf-bone);
  --surface-2: var(--bf-paper);
  --line: color-mix(in oklab, var(--bf-noir) 14%, transparent);
  --line-strong: color-mix(in oklab, var(--bf-noir) 30%, transparent);
  --fg: var(--bf-noir);
  --fg-muted: var(--bf-umber);
  --accent: var(--bf-fox-deep);
  --on-accent: var(--bf-bone);
  --btn-bg: var(--bf-noir);
  --btn-fg: var(--bf-bone);
}

/* =====================================================================
   Car page themes. Each car page sets one archetype + its own paint.
   <body data-theme="corsa" style="--car-paint:#f3f2ee; --car-accent:#c8102e">
   ===================================================================== */

/* Corsa: Ferrari, Lamborghini, Porsche, McLaren. Car colour dominates, speed type. */
[data-theme="corsa"] {
  --car-paint: #f3f2ee;
  --car-accent: #c8102e;
  --bg: var(--car-paint);
  --surface: color-mix(in oklab, var(--car-paint) 92%, black);
  --surface-2: #ffffff;
  --fg: #0e0e10;
  --fg-muted: #55524c;
  --line: color-mix(in oklab, #0e0e10 14%, transparent);
  --line-strong: color-mix(in oklab, #0e0e10 30%, transparent);
  --accent: var(--car-accent);
  --on-accent: #ffffff;
  --btn-bg: var(--car-accent);
  --btn-fg: #ffffff;
  --font-head: var(--font-sans);
  --head-stretch: 125%;
  --head-weight: 900;
  --head-style: italic;
  --head-case: uppercase;
  --head-track: -0.035em;
  --dur-reveal: 620ms;
  --stagger: 60ms;
  --reveal-x: -48px;
}

/* Monolith: G-Class, Brabus, Cullinan Black Badge, Raptor, GMC. Black, heavy, technical. */
[data-theme="monolith"] {
  --car-paint: #070707;
  --car-accent: #b3261e;
  --bg: var(--car-paint);
  --surface: #0f0f0f;
  --surface-2: #161616;
  --fg: #ecebe8;
  --fg-muted: #8f8d88;
  --line: rgba(236, 235, 232, 0.16);
  --line-strong: rgba(236, 235, 232, 0.4);
  --accent: var(--car-accent);
  --on-accent: #ffffff;
  --btn-bg: #ecebe8;
  --btn-fg: #070707;
  --font-head: var(--font-sans);
  --head-stretch: 62%;
  --head-weight: 900;
  --head-style: normal;
  --head-case: uppercase;
  --head-track: -0.01em;
  --dur-reveal: 520ms;
  --stagger: 70ms;
}

/* Salon: Rolls-Royce, Maybach, Bentley, V-Class VIP. Ivory, slow, quiet. */
[data-theme="salon"] {
  --car-paint: #efe9df;
  --car-accent: #6f5a3a;
  --bg: var(--car-paint);
  --surface: #f7f3ec;
  --surface-2: #fffdf9;
  --fg: #1d1a16;
  --fg-muted: #6c6457;
  --line: rgba(29, 26, 22, 0.14);
  --line-strong: rgba(29, 26, 22, 0.3);
  --accent: var(--car-accent);
  --on-accent: #fffdf9;
  --btn-bg: #1d1a16;
  --btn-fg: #f7f3ec;
  --font-head: var(--font-display);
  --head-stretch: 100%;
  --head-weight: 400;
  --head-style: italic;
  --head-case: none;
  --head-track: -0.02em;
  --dur-reveal: 1400ms;
  --stagger: 160ms;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-reveal: 1ms;
    --dur-media: 1ms;
    --stagger: 0ms;
    --reveal-y: 0px;
  }
}
