/*
 * autocross.tools — design tokens
 * Shared CSS custom properties for the site. Loaded once (typically injected
 * by <ax-shell>) and consumed by every page and component via var(--ax-*).
 */

:root {
  /* ---- Colors: backgrounds ---- */
  --ax-bg: #0c0c0f;          /* page background */
  --ax-surface: #1a1a21;     /* panels, cards — needs clear lift off bg */
  --ax-elevated: #2a2a33;    /* raised surfaces, nested content */
  --ax-well: #08080b;        /* inset/recessed areas — input fields, wells */
  --ax-border: #3a3a44;      /* dividers/borders — must be clearly visible */
  --ax-border-accent: rgba(212, 160, 36, 0.15);   /* amber-tinted border for standout cards/sections */
  --ax-border-accent-2: rgba(91, 141, 239, 0.15); /* blue-tinted variant */

  /* ---- Colors: text ---- */
  --ax-text: #ededf0;            /* primary text */
  --ax-text-secondary: #9a9aa2;  /* labels, secondary copy */
  --ax-text-muted: #5c5c64;      /* de-emphasized / disabled */

  /* ---- Colors: accents ---- */
  --ax-accent: #d4a024;        /* primary — amber/gold, the site's signature color */
  --ax-accent-dim: #7a5c17;    /* primary, low-emphasis (borders, dim fills) */
  --ax-accent-2: #5b8def;      /* secondary — slate blue: compare mode, links */
  --ax-accent-2-dim: #33507f;  /* secondary, low-emphasis */
  --ax-accent-3: #5ec989;       /* tertiary — green: multi-link, third comparison */
  --ax-accent-3-dim: #2d6b47;   /* tertiary, low-emphasis */

  /* ---- Colors: data ---- */
  --ax-positive: #4caf6d;  /* positive delta */
  --ax-negative: #e0555c;  /* negative delta */

  /* ---- Typography ---- */
  --ax-font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --ax-font-mono: 'SFMono-Regular', Consolas, 'Courier New', monospace; /* numeric readouts only */

  /* ---- Spacing (4px base unit) ---- */
  --ax-space-1: 4px;
  --ax-space-2: 8px;
  --ax-space-3: 12px;
  --ax-space-4: 16px;
  --ax-space-5: 20px;
  --ax-space-6: 24px;
  --ax-space-8: 32px;
  --ax-space-10: 40px;

  /* ---- Radii ---- */
  --ax-radius-sm: 4px;
  --ax-radius-md: 8px;
  --ax-radius-lg: 10px;

  /* ---- Component tokens ---- */
  --ax-max-width: 1400px;
  --ax-header-height: 56px;
}
