/* ============================================================
   Design Tokens — CSS Custom Properties
   Light cream-white theme with subtle shadows and soft pastel accents
   ============================================================ */

:root {
  /* ---- Color Palette: Light Cream-White Theme ---- */
  --color-bg-primary: #faf9f7;
  --color-bg-secondary: #f5f3f0;
  --color-bg-tertiary: #e8e6e3;
  --color-surface: rgba(255, 255, 255, 0.85);
  --color-surface-glass: rgba(255, 255, 255, 0.6);
  --color-surface-glass-hover: rgba(255, 255, 255, 0.8);
  --color-border: rgba(0, 0, 0, 0.08);
  --color-border-hover: rgba(0, 0, 0, 0.15);

  --color-text-primary: #1a1a1a;
  --color-text-secondary: #4a4a4a;
  --color-text-tertiary: #8a8a8a;
  --color-text-inverse: #ffffff;

  --color-accent-primary: #0071e3;
  --color-accent-secondary: #5856d6;
  --color-accent-tertiary: #5e5ce6;
  --color-gradient: linear-gradient(135deg, #0071e3, #5856d6);
  --color-gradient-warm: linear-gradient(135deg, #0071e3, #5e5ce6, #af52de);
  --color-gradient-subtle: linear-gradient(180deg, rgba(0, 113, 227, 0.08) 0%, transparent 100%);

  --color-success: #34c759;
  --color-warning: #ff9500;
  --color-error: #ff3b30;
  --color-info: #5ac8fa;

  /* ---- Typography ---- */
  --font-family-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
  --font-family-mono: 'SF Mono', 'Roboto Mono', 'Fira Code', monospace;

  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --font-size-xs: 0.75rem;     /* 12px */
  --font-size-sm: 0.875rem;    /* 14px */
  --font-size-base: 1rem;      /* 16px */
  --font-size-lg: 1.125rem;    /* 18px */
  --font-size-xl: 1.25rem;     /* 20px */
  --font-size-2xl: 1.5rem;     /* 24px */
  --font-size-3xl: 2rem;       /* 32px */
  --font-size-4xl: 2.5rem;     /* 40px */
  --font-size-5xl: 3rem;       /* 48px */
  --font-size-6xl: 3.5rem;     /* 56px */

  --line-height-tight: 1.1;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;

  --letter-spacing-tight: -0.02em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.02em;

  /* ---- Spacing Scale ---- */
  --spacing-2xs: 0.125rem;  /* 2px */
  --spacing-xs: 0.25rem;    /* 4px */
  --spacing-sm: 0.5rem;     /* 8px */
  --spacing-md: 1rem;       /* 16px */
  --spacing-lg: 1.5rem;     /* 24px */
  --spacing-xl: 2rem;       /* 32px */
  --spacing-2xl: 3rem;      /* 48px */
  --spacing-3xl: 4rem;      /* 64px */
  --spacing-4xl: 6rem;      /* 96px */
  --spacing-5xl: 8rem;      /* 128px */

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

  /* ---- Shadows (subtle for light theme) ---- */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 16px 40px rgba(0, 0, 0, 0.12);
  --shadow-glass: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-glow: 0 0 20px rgba(0, 113, 227, 0.2);
  --shadow-glow-strong: 0 0 40px rgba(0, 113, 227, 0.3);

  /* ---- Glass Morphism (light glass) ---- */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-bg-strong: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(0, 0, 0, 0.06);
  --glass-border-hover: rgba(0, 0, 0, 0.12);
  --glass-blur: blur(20px);
  --glass-blur-strong: blur(40px);
  --glass-blur-sm: blur(10px);

  /* ---- Transitions & Animation Timing ---- */
  --transition-fast: 150ms cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-base: 300ms cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-slow: 500ms cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-bounce: 400ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --transition-smooth: 600ms cubic-bezier(0.16, 1, 0.3, 1);

  /* ---- Z-Index Scale ---- */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-navbar: 500;
  --z-overlay: 800;
  --z-modal: 900;
  --z-toast: 1000;
  --z-tooltip: 1100;

  /* ---- Layout ---- */
  --navbar-height: 64px;
  --container-max: 1200px;
  --container-wide: 1400px;
  --container-narrow: 800px;
}
