/* tokens.css — Bowl Builder design system, derived from SodaPup brand
   (navy paw-print mark, warm cream backgrounds, honeycomb gold accent) */

:root {
  /* ---- Type scale (fluid clamp, 12px floor) ---- */
  --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(1.9rem, 1.4rem + 2vw, 2.75rem);

  /* ---- 4px spacing system ---- */
  --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;

  /* ---- Fonts ---- */
  --font-display: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  --font-body: 'Nunito', 'Segoe UI', sans-serif;

  /* ---- Radius ---- */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --radius-full: 9999px;

  /* ---- Transitions ---- */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* ---- Content widths ---- */
  --content-narrow: 640px;
  --content-default: 1000px;
  --content-wide: 1280px;
}

:root,
[data-theme='light'] {
  /* Surfaces — warm cream, SodaPup site background family */
  --color-bg: #faf6ea;
  --color-surface: #ffffff;
  --color-surface-2: #fffdf8;
  --color-surface-offset: #f2ecdb;
  --color-surface-offset-2: #ebe3cc;
  --color-divider: #e3dac1;
  --color-border: #d8cca8;

  /* Text — warm near-black / navy-tinted grays */
  --color-text: #201c2e;
  --color-text-muted: #635f74;
  --color-text-faint: #a29dae;
  --color-text-inverse: #fdfaf1;

  /* Primary — SodaPup navy */
  --color-primary: #1c2a54;
  --color-primary-hover: #142040;
  --color-primary-active: #0d162d;
  --color-primary-highlight: #d8dceb;

  /* Accent — honeycomb gold */
  --color-gold: #e3a333;
  --color-gold-hover: #c78a1f;
  --color-gold-active: #a67117;
  --color-gold-highlight: #f6e6c4;

  /* Success — pass grade */
  --color-success: #3f8f5c;
  --color-success-hover: #2e7048;
  --color-success-active: #205435;
  --color-success-highlight: #d7ead9;

  /* Warning — needs work */
  --color-warning: #d97b34;
  --color-warning-hover: #b6621f;
  --color-warning-active: #904d18;
  --color-warning-highlight: #f4ddc5;

  /* Error — fail / excess */
  --color-error: #c4483f;
  --color-error-hover: #a3372f;
  --color-error-active: #7d2a24;
  --color-error-highlight: #f0d3d0;

  --shadow-sm: 0 1px 2px rgba(28, 42, 84, 0.08);
  --shadow-md: 0 6px 16px rgba(28, 42, 84, 0.1);
  --shadow-lg: 0 16px 40px rgba(28, 42, 84, 0.16);
}

[data-theme='dark'] {
  --color-bg: #14131c;
  --color-surface: #1a1926;
  --color-surface-2: #201f2e;
  --color-surface-offset: #24233240;
  --color-surface-offset: #242332;
  --color-surface-offset-2: #2b2a3a;
  --color-divider: #322f45;
  --color-border: #3c3953;
  --color-text: #ece9f5;
  --color-text-muted: #a8a3bd;
  --color-text-faint: #706c86;
  --color-text-inverse: #171522;

  --color-primary: #7f92d1;
  --color-primary-hover: #98a8dc;
  --color-primary-active: #b1bee6;
  --color-primary-highlight: #2a3355;

  --color-gold: #f0b94f;
  --color-gold-hover: #f4c66e;
  --color-gold-active: #f7d38d;
  --color-gold-highlight: #453620;

  --color-success: #6cbb85;
  --color-success-hover: #85c99a;
  --color-success-active: #9ed6ae;
  --color-success-highlight: #234030;

  --color-warning: #e8a668;
  --color-warning-hover: #edb782;
  --color-warning-active: #f1c79b;
  --color-warning-highlight: #4a3626;

  --color-error: #e08078;
  --color-error-hover: #e69790;
  --color-error-active: #ecaea8;
  --color-error-highlight: #4a2b28;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.45);
}
