/* Super Bike SPA design tokens.
   The only file where raw values live. Names and roles: docs/design-system/tokens.md.
   Light theme on :root (the only theme the site ships in phase 0.5).
   Dark theme on [data-theme="dark"]: kept and contrast-checked, not enabled on the site yet.
   --font-heading is not defined here: the Astro Fonts API defines it (cssVariable '--font-heading'). */

:root {
  color-scheme: light;

  /* Surfaces and lines */
  --surface: #ffffff;
  --surface-alt: #f3f3f2;
  --line: #e1e0de;
  --line-strong: #8a8783;

  /* Ink */
  --ink: #121212;
  --ink-muted: #5b5955;
  --solid-hover: #34322f;

  /* Band: the logo's black */
  --band: #121212;
  --on-band: #f7f7f7;
  --on-band-muted: #b5b3af;
  --line-on-band: rgb(247 247 247 / 0.16);

  /* Orange: the logo's orange */
  --orange: #fe6404;
  --orange-hover: #e85700;
  --on-orange: #121212;
  --orange-text: #b04300;
  --orange-soft: #ffebdc;
  --link: var(--orange-text);

  /* Semantic, always with a word */
  --success: #1d7438;
  --success-soft: #e3f2e7;
  --danger: #b3261e;
  --danger-soft: #fce8e6;

  /* Elevation and focus */
  --shadow-float: 0 -1px 0 rgb(18 18 18 / 0.08), 0 -8px 24px rgb(18 18 18 / 0.12);
  --focus-ring: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink);

  /* Type families (heading: Astro Fonts API) */
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Type scale: size, line height, tracking per role */
  --text-display-xl: 52px;  --leading-display-xl: 54px;  --tracking-display-xl: -0.01em;
  --text-display: 36px;     --leading-display: 38px;     --tracking-display: -0.005em;
  --text-heading: 28px;     --leading-heading: 32px;
  --text-title: 21px;       --leading-title: 26px;
  --text-price: 32px;       --leading-price: 36px;
  --text-button: 18px;      --leading-button: 24px;      --tracking-button: 0.01em;
  --text-button-lg: 20px;
  --text-body-lg: 18px;     --leading-body-lg: 28px;
  --text-body: 16px;        --leading-body: 24px;
  --text-small: 14px;       --leading-small: 20px;
  --text-caption: 13px;     --leading-caption: 18px;     --tracking-caption: 0.01em;
  --text-label: 12px;       --leading-label: 16px;       --tracking-label: 0.08em;
  --weight-strong: 600;
  --weight-heading: 700;

  /* Space: 4px base */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-full: 9999px;

  /* Sizes */
  --tap: 48px;
  --tap-lg: 56px;
  --logo-header: 56px;
  --marker: 40px;
  --thumb: 72px;
  --icon: 20px;
  --icon-sm: 18px;
  --icon-lg: 22px;
  --traco-width: 120px;
  --traco-height: 5px;
  --content-max: 1200px;
  --prose-max: 68ch;

  /* Motion: color transitions on hover only */
  --duration-hover: 120ms;
  --ease-out: ease-out;

  /* Layers */
  --z-sticky: 40;
  --z-cookie: 60;
}

[data-theme="dark"] {
  color-scheme: dark;

  --surface: #161616;
  --surface-alt: #202020;
  --line: #2f2f2e;
  --line-strong: #7a7772;

  --ink: #f2f2f0;
  --ink-muted: #aaa7a2;
  --solid-hover: #d6d4d0;

  --band: #0a0a0a;
  --on-band: #f7f7f7;
  --on-band-muted: #b5b3af;
  --line-on-band: rgb(247 247 247 / 0.16);

  --orange: #fe6404;
  --orange-hover: #ff7a2b;
  --on-orange: #121212;
  --orange-text: #ff8a47;
  --orange-soft: #3a1c08;
  --link: var(--orange-text);

  --success: #6fcf8a;
  --success-soft: #11301b;
  --danger: #ff8a80;
  --danger-soft: #3b1412;

  --shadow-float: 0 -1px 0 rgb(255 255 255 / 0.1), 0 -8px 24px rgb(0 0 0 / 0.7);
  --focus-ring: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink);
}
