/* ============================================
   DESIGN TOKENS — Daniel Reyes Portfolio
   Premium Motion-Led System
   ============================================ */

:root {
  /* --- Color System --- */
  --color-bg:          #0a0a0b;
  --color-bg-elevated: #111113;
  --color-bg-card:     #131315;
  --color-bg-glass:    rgba(10, 10, 11, 0.82);
  --color-bg-hover:    rgba(255, 255, 255, 0.04);

  --color-surface:     #1a1a1d;
  --color-border:      rgba(255, 255, 255, 0.07);
  --color-border-hover:rgba(255, 255, 255, 0.14);

  --color-text:        #f0f0f2;
  --color-text-secondary: #8e8e96;
  --color-text-tertiary:  #4a4a52;
  --color-text-inverse: #0a0a0b;

  --color-accent:      #6e7bf2;
  --color-accent-soft: rgba(110, 123, 242, 0.12);
  --color-accent-glow: rgba(110, 123, 242, 0.06);
  --color-accent-dim:  rgba(110, 123, 242, 0.4);

  /* --- Typography --- */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;

  --text-xs:   0.75rem;
  --text-sm:   0.8125rem;
  --text-base: 0.9375rem;
  --text-md:   1.0625rem;
  --text-lg:   1.25rem;
  --text-xl:   1.5rem;
  --text-2xl:  2rem;
  --text-3xl:  2.75rem;
  --text-4xl:  3.5rem;
  --text-5xl:  4.5rem;
  --text-hero: clamp(4.5rem, 12vw, 10rem);

  --leading-none:    1;
  --leading-tight:   1.1;
  --leading-snug:    1.3;
  --leading-normal:  1.6;
  --leading-relaxed: 1.75;

  --tracking-tighter: -0.04em;
  --tracking-tight:   -0.02em;
  --tracking-normal:   0;
  --tracking-wide:     0.04em;
  --tracking-wider:    0.08em;

  --weight-light:    300;
  --weight-normal:   400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;
  --weight-heavy:    800;

  /* --- Spacing --- */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
  --space-40: 10rem;

  /* --- Layout --- */
  --max-width:    1200px;
  --max-width-sm: 720px;
  --max-width-xs: 560px;
  --gutter:       var(--space-6);
  --side-rail-width: 72px;

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

  /* --- Shadows & Effects --- */
  --shadow-sm:   0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md:   0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-lg:   0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-xl:   0 16px 48px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 40px rgba(110, 123, 242, 0.08);

  --blur-sm:  8px;
  --blur-md:  16px;
  --blur-lg:  32px;

  /* --- Motion --- */
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:  cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);

  --duration-instant: 100ms;
  --duration-fast:    150ms;
  --duration-normal:  300ms;
  --duration-slow:    500ms;
  --duration-reveal:  800ms;
  --duration-hero:    1000ms;
  --duration-cinematic: 1200ms;

  /* Hero entrance stagger */
  --hero-stagger: 120ms;

  /* --- Z-Index --- */
  --z-base:      1;
  --z-card:      10;
  --z-side-rail: 50;
  --z-nav:       100;
  --z-overlay:   200;
  --z-tooltip:   300;
}

@media (max-width: 768px) {
  :root {
    --text-hero: clamp(3rem, 14vw, 5rem);
    --gutter: var(--space-5);
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-instant: 0ms;
    --duration-fast:    0ms;
    --duration-normal:  0ms;
    --duration-slow:    0ms;
    --duration-reveal:  0ms;
    --duration-hero:    0ms;
    --duration-cinematic: 0ms;
    --hero-stagger:     0ms;
  }
}
