/* TOKENS — Leaders Wingman
   Concept: VIGILANT. Slate + bone + ember.
   Dark mode is default. Light mode tuned for daylight reading. */

:root {
  /* 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-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(2.75rem, 0.8rem + 6vw, 7rem);

  /* 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;

  /* RADIUS / SHADOW / MOTION */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-full: 9999px;
  --transition-interactive: 220ms cubic-bezier(0.16, 1, 0.3, 1);

  /* CONTENT WIDTHS */
  --content-narrow: 640px;
  --content-default: 1040px;
  --content-wide: 1280px;

  /* FONT FAMILIES */
  --font-display: 'Boska', 'Georgia', serif;
  --font-body: 'Satoshi', 'Inter', 'Helvetica Neue', sans-serif;
}

/* DARK (DEFAULT) — VIGILANT */
:root,
[data-theme='dark'] {
  /* Surfaces — deep slate, near-black */
  --color-bg: #0b0d10;
  --color-surface: #11141a;
  --color-surface-2: #161a21;
  --color-surface-offset: #1c2129;
  --color-divider: #232831;
  --color-border: #2b313c;

  /* Text — warm bone on slate */
  --color-text: #ece6d8;
  --color-text-muted: #9a958a;
  --color-text-faint: #5d5b56;
  --color-text-inverse: #0b0d10;

  /* Ember — the single accent. Controlled red-shift. */
  --color-ember: #d96a3a;
  --color-ember-hover: #e8825a;
  --color-ember-soft: #6b3522;
  --color-ember-glow: rgba(217, 106, 58, 0.18);

  /* Shadows tuned to dark surfaces */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.55);
}

/* LIGHT — bone surface, ink text, same ember */
[data-theme='light'] {
  --color-bg: #f4f0e6;
  --color-surface: #faf6ec;
  --color-surface-2: #ffffff;
  --color-surface-offset: #ede7d8;
  --color-divider: #ddd6c4;
  --color-border: #c8c0ad;

  --color-text: #1a1f26;
  --color-text-muted: #5a5f68;
  --color-text-faint: #9a9690;
  --color-text-inverse: #faf6ec;

  --color-ember: #b8501f;
  --color-ember-hover: #9a4015;
  --color-ember-soft: #f0d4c4;
  --color-ember-glow: rgba(184, 80, 31, 0.12);

  --shadow-sm: 0 1px 2px rgba(26, 31, 38, 0.06);
  --shadow-md: 0 4px 16px rgba(26, 31, 38, 0.08);
  --shadow-lg: 0 18px 48px rgba(26, 31, 38, 0.12);
}
