/* ===== Tokens ===== */
:root {
  --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);

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

  --radius-sm: 0.375rem; --radius-md: 0.5rem; --radius-lg: 0.75rem;
  --radius-xl: 1rem;     --radius-full: 9999px;

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

  --font-display: "Clash Display", "Trebuchet MS", sans-serif;
  --font-body: "Satoshi", "Helvetica Neue", sans-serif;
}

/* Dark = the default vibe: deep space */
:root,
[data-theme="dark"] {
  --color-bg: #07100d;
  --color-surface: #0d1a15;
  --color-surface-2: #12241d;
  --color-border: #1f3b30;
  --color-text: #e7f3ec;
  --color-text-muted: #8fae9f;
  --color-text-faint: #5a7568;
  --accent: #3ddc84;        /* blaze green */
  --accent-soft: #1c4b34;
  --gold: #ffc860;          /* golden hour 4:20 */
  --gold-soft: #4a3a16;
  --glow: 0 0 32px rgba(61, 220, 132, 0.45);
}

[data-theme="light"] {
  --color-bg: #f3f7f4;
  --color-surface: #ffffff;
  --color-surface-2: #eef4f0;
  --color-border: #d3e2da;
  --color-text: #11241c;
  --color-text-muted: #4f6a5e;
  --color-text-faint: #8aa294;
  --accent: #138a4e;
  --accent-soft: #c4e9d4;
  --gold: #b8810f;
  --gold-soft: #f0e2c0;
  --glow: 0 0 24px rgba(19, 138, 78, 0.3);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body, sans-serif);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow: hidden;
}
img, picture, video, canvas, svg { display: block; max-width: 100%; }
ul[role="list"], ol[role="list"] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
h1, h2, h3 { text-wrap: balance; line-height: 1.15; }

::selection { background: rgba(61, 220, 132, 0.3); }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

a, button, [role="button"] {
  transition: color var(--transition-interactive),
    background var(--transition-interactive),
    border-color var(--transition-interactive),
    box-shadow var(--transition-interactive),
    transform var(--transition-interactive);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
