/* ==========================================================================
   BIUI design tokens
   Single source of truth for colors, spacing, typography, shadows, motion.
   Load before any page-specific <style>.
   ========================================================================== */

:root {
  /* ----- Colors ----- */
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #1a1a26;
  --bg-card-hover: #22223a;

  --accent: #00e5c8;
  --accent-dim: #00c9b0;
  --accent-glow: rgba(0, 229, 200, 0.15);
  --accent-glow-strong: rgba(0, 229, 200, 0.3);

  --text-primary: #f0f0f5;
  --text-secondary: #9595a8;
  --text-muted: #6a6a7e;

  --border: #2a2a3a;
  --border-strong: #3a3a4e;

  --gradient-accent: linear-gradient(135deg, #00e5c8, #00c9b8);
  --gradient-bg: linear-gradient(180deg, #0a0a0f 0%, #0f1018 50%, #12121a 100%);

  /* ----- Typography ----- */
  --font-display: 'Rubik', sans-serif;
  --font-body: 'Heebo', sans-serif;
  --font-mono: 'Space Mono', ui-monospace, monospace;

  /* Fluid type scale (clamp: min, fluid, max) */
  --text-xs:   clamp(0.72rem, 0.70rem + 0.1vw, 0.78rem);
  --text-sm:   clamp(0.84rem, 0.82rem + 0.1vw, 0.92rem);
  --text-base: clamp(0.98rem, 0.95rem + 0.2vw, 1.08rem);
  --text-lg:   clamp(1.10rem, 1.05rem + 0.3vw, 1.25rem);
  --text-xl:   clamp(1.30rem, 1.20rem + 0.5vw, 1.55rem);
  --text-2xl:  clamp(1.55rem, 1.40rem + 0.8vw, 1.95rem);
  --text-3xl:  clamp(1.85rem, 1.55rem + 1.2vw, 2.50rem);
  --text-4xl:  clamp(2.20rem, 1.75rem + 2.0vw, 3.40rem);
  --text-hero: clamp(2.00rem, 1.50rem + 3.2vw, 4.20rem);

  --leading-tight:  1.25;
  --leading-normal: 1.5;
  --leading-body:   1.7;  /* Hebrew long-form */
  --leading-loose:  1.9;

  /* ----- Spacing scale (4px base) ----- */
  --space-1:  0.25rem;  /*  4px */
  --space-2:  0.5rem;   /*  8px */
  --space-3:  0.75rem;  /* 12px */
  --space-4:  1rem;     /* 16px */
  --space-5:  1.25rem;  /* 20px */
  --space-6:  1.5rem;   /* 24px */
  --space-8:  2rem;     /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */
  --space-32: 8rem;     /* 128px */

  /* Section padding (fluid) */
  --section-y: clamp(3rem, 6vw, 6rem);
  --section-x: clamp(1rem, 3vw, 1.5rem);

  /* ----- Radii ----- */
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  /* ----- Shadows ----- */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.25);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.35);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.45);
  --shadow-xl: 0 24px 60px rgba(0,0,0,0.55);
  --shadow-glow: 0 0 0 1px var(--accent-glow), 0 8px 24px var(--accent-glow);
  --shadow-glow-strong: 0 0 0 1px var(--accent-glow-strong), 0 12px 40px var(--accent-glow-strong);

  /* ----- Motion ----- */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

  /* ----- Layout ----- */
  --container-max: 1200px;
  --container-prose: 740px;
  --nav-height: 64px;

  /* ----- Z-index scale ----- */
  --z-base: 1;
  --z-sticky: 90;
  --z-nav: 100;
  --z-overlay: 500;
  --z-modal: 1000;
  --z-skip: 99999;
}

/* ----- Documented breakpoints (for reference; use in @media rules) -----
   sm:  640px   phones (large)
   md:  768px   tablets
   lg:  1024px  small desktop
   xl:  1280px  wide desktop
   2xl: 1536px  ultra-wide
   --------------------------------------------------------------------- */
