/* ============================================
   PORTFOLIO DESIGN TOKENS
   Shared across all case studies + main page
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

:root {
  /* ── Typography ── */
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;
  --font-display: 'Inter', 'Helvetica Neue', sans-serif;

  /* Fluid type scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-hero: clamp(3rem,     1rem    + 4.5vw,  5rem);

  /* ── Spacing (4px base) ── */
  --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;

  /* ── Layout ── */
  --content-narrow:  640px;
  --content-default: 1160px;
  --content-wide:    1360px;

  /* ── Radius ── */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;

  /* ── Motion ── */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.4, 0, 1, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Dark theme (Kriya site is always dark) ── */
[data-theme="dark"] {
  --color-bg:              #0a0a0a;
  --color-surface:         #111111;
  --color-surface-2:       #161616;
  --color-surface-offset:  #1a1a1a;
  --color-border:          #2a2a2a;
  --color-divider:         #222222;

  --color-text:            #e8e8e6;
  --color-text-muted:      #888885;
  --color-text-faint:      #444442;
  --color-text-inverse:    #0a0a0a;

  /* Accent: a cold electric blue echoing the SPI spheres */
  --color-accent:          #7b9cff;
  --color-accent-dim:      rgba(123, 156, 255, 0.15);

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.6);
}
