/* =========================================================================
   YAS design tokens — single source of truth
   Phase 1 scaffold. Namespaced --ds-* so it is purely additive and never
   collides with existing :root vars in main.css / user.css.
   Later phases (buttons, fields, dashboard) consume these tokens.
   ========================================================================= */
:root {
  /* --- font families --- */
  --ds-font-body: "Inter", sans-serif;
  --ds-font-display: "Michroma", sans-serif;
  /* The site self-hosts exactly two families: Inter and Michroma. There is no
     monospace webfont, so this token stays on Inter. Pointing it at a face we
     never load made it fall back to Consolas on Windows and SF Mono on macOS,
     which put a third, machine-dependent typeface on the dashboard. Use the
     .mono utility below when digits need to line up. */
  --ds-font-mono: "Inter", sans-serif;

  /* --- single dark ground + surfaces --- */
  --ds-ground: #151419;
  --ds-panel: #1b1a20;
  --ds-panel-2: #211f27;
  --ds-glass: rgba(255, 255, 255, 0.035);
  --ds-glass-2: rgba(255, 255, 255, 0.06);
  --ds-line: rgba(255, 255, 255, 0.09);
  --ds-line-2: rgba(255, 255, 255, 0.14);

  /* --- text --- */
  --ds-text: #f5f5f5;
  --ds-muted: #a7a3ad;   /* warm-biased grey */
  --ds-faint: #726e78;

  /* --- accent + semantic status (separate from accent) --- */
  --ds-accent: #f56e0f;
  --ds-accent-hi: #ff852e;
  --ds-accent-dim: rgba(245, 110, 15, 0.14);
  --ds-good: #3ec77a;
  --ds-warn: #f2c14e;
  --ds-crit: #ff5540;

  /* --- radius scale (replaces 12+ ad-hoc values) --- */
  --ds-r-xs: 6px;
  --ds-r-sm: 10px;
  --ds-r-md: 14px;
  --ds-r-lg: 20px;
  --ds-r-pill: 999px;

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

  /* --- type scale --- */
  --ds-fs-display: clamp(24px, 3vw, 34px);
  --ds-fs-h1: 24px;
  --ds-fs-h2: 20px;
  --ds-fs-h3: 17px;
  --ds-fs-body-lg: 16px;
  --ds-fs-body: 15px;
  --ds-fs-sm: 13px;
  --ds-fs-caption: 12px;

  /* --- button heights (one scale: sm / md / lg) --- */
  --ds-btn-h-sm: 32px;
  --ds-btn-h-md: 40px;
  --ds-btn-h-lg: 48px;

  --ds-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Utility: monospace + tabular figures for IDs, sums, VIN, dates */
.mono {
  font-family: var(--ds-font-mono);
  font-variant-numeric: tabular-nums;
}
