/* =============================================================================
   CHIAROSCURO DESIGN TOKENS
   Frostroad ecosystem shared design language.
   This is the ONLY file that may contain hardcoded color values.
   Matched to Clockwork reference implementation.
   ============================================================================= */

:root {
  /* -- Backgrounds ---------------------------------------------------------- */
  --color-bg: #0B0B0F;
  --color-bg-warm: #13141a;
  --color-surface: #16171c;
  --color-surface-hover: #1c1d22;
  --color-surface-raised: #222328;
  --color-surface-raised-gradient: linear-gradient(180deg, #222328 0%, #1e1f27 100%);
  --color-surface-element: #2b2c32;

  /* -- White overlays (subtle elevation) ------------------------------------ */
  --white-5:  rgba(255, 255, 255, 0.03);
  --white-8:  rgba(255, 255, 255, 0.05);
  --white-12: rgba(255, 255, 255, 0.08);
  --white-15: rgba(255, 255, 255, 0.18);
  --white-20: rgba(255, 255, 255, 0.25);

  /* -- Text ----------------------------------------------------------------- */
  --color-text: #E6E6E6;
  --color-text-white: #FFFFFF;
  --color-text-muted: #9592A4;
  --color-text-placeholder: #6A7782;
  --color-text-disabled: #46474F;

  /* -- Accent --------------------------------------------------------------- */
  --color-blue: #3B8EFF;
  --color-blue-hover: #5EA8FF;
  --color-blue-light: #70bcff;
  --color-blue-dim: rgba(59, 142, 255, 0.14);
  --color-blue-glow: rgba(59, 142, 255, 0.28);
  --color-blue-ring: rgba(59, 142, 255, 0.22);
  --color-blue-tint: rgba(59, 142, 255, 0.1);

  --color-teal: #2CC9A0;
  --color-teal-dim: rgba(44, 201, 160, 0.16);

  --color-rose: #E84466;
  --color-rose-hover: #F05878;
  --color-rose-light: #f07088;
  --color-rose-dim: rgba(232, 68, 102, 0.16);

  --color-peach: #FFA86E;
  --color-orange: #FF8C4A;
  --color-orange-dim: rgba(255, 140, 74, 0.16);
  --color-yellow-green: #E6E7A3;

  /* -- Semantic ------------------------------------------------------------- */
  --color-success: #2CC9A0;
  --color-error: #E84466;
  --color-warning: #FF8C4A;
  --color-info: #3B8EFF;

  /* -- Borders -------------------------------------------------------------- */
  --color-border: #222328;
  --color-border-strong: #31323a;
  --color-border-focus: rgba(230, 230, 230, 0.4);

  /* -- Overlays ------------------------------------------------------------- */
  --color-overlay: rgba(0, 0, 0, 0.6);

  /* -- Typography ----------------------------------------------------------- */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', 'Consolas', monospace;

  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-base: 15px;
  --font-size-lg: 16px;
  --font-size-xl: 20px;
  --font-size-2xl: 24px;
  --font-size-3xl: 28px;

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --line-height-tight: 1.2;
  --line-height-snug: 1.3;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.6;

  /* -- Spacing (4px grid) --------------------------------------------------- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* -- Border Radius -------------------------------------------------------- */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* -- Shadows (progressive) ------------------------------------------------ */
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-2:
    0 0 rgba(0, 0, 0, 0.30),
    0 9px 20px rgba(0, 0, 0, 0.29),
    0 37px 37px rgba(0, 0, 0, 0.26);
  --shadow-3:
    0 0 rgba(0, 0, 0, 0.30),
    0 9px 20px rgba(0, 0, 0, 0.29),
    0 37px 37px rgba(0, 0, 0, 0.26),
    0 84px 50px rgba(0, 0, 0, 0.15),
    0 149px 60px rgba(0, 0, 0, 0.04),
    0 233px 65px rgba(0, 0, 0, 0.01);

  /* -- Motion --------------------------------------------------------------- */
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --duration-fast: 200ms;
  --duration-base: 320ms;
  --duration-slow: 450ms;

  /* Legacy transition shorthands (used in components.css) */
  --transition-fast: var(--duration-fast) var(--ease);
  --transition-normal: var(--duration-base) var(--ease);
  --transition-slow: var(--duration-slow) var(--ease);
}
