/* ==========================================================================
   WanderHash design tokens
   Palette: ink (deep navy) + signal teal -> lime gradient + coral "you are here".
   Dark is the default identity; light is a warm-paper variant.
   ========================================================================== */
:root {
  /* brand (theme independent) */
  --wh-teal: #19d3b0;
  --wh-lime: #c8f04d;
  --wh-coral: #ff8a5b;
  --wh-gradient: linear-gradient(135deg, var(--wh-teal), var(--wh-lime));

  /* type */
  --font-display: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* scale */
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-md: 1.0625rem;
  --fs-lg: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  --fs-xl: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
  --fs-2xl: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
  --fs-3xl: clamp(2.25rem, 1.5rem + 3.6vw, 4rem);
  --fs-hero: clamp(2.5rem, 1.4rem + 5.2vw, 5rem);

  /* space */
  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem; --sp-5: 1.5rem;
  --sp-6: 2rem; --sp-7: 3rem; --sp-8: 4.5rem; --sp-9: 6.5rem;
  --section-y: clamp(3.5rem, 2rem + 6vw, 7rem);
  --gutter: clamp(1rem, 0.5rem + 2.4vw, 2rem);

  /* shape */
  --radius-sm: 8px; --radius-md: 14px; --radius-lg: 22px; --radius-pill: 999px;
  --container: 72.5rem;
  --header-h: 68px;
  --tap: 44px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---- dark (default) ---- */
:root, :root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #08121d;
  --bg-alt: #0b1a29;
  --surface: #0f2234;
  --surface-2: #14293d;
  --line: rgba(160, 200, 225, 0.16);
  --line-strong: rgba(160, 200, 225, 0.3);
  --text: #e8eef3;
  --text-muted: #9fb2c2;
  --accent: #3ee0c0;        /* text/links on bg */
  --accent-strong: #19d3b0;
  --on-accent: #06221d;     /* text on gradient buttons */
  --coral: #ff8a5b;
  --ok: #4ade80; --warn: #fbbf24; --err: #ff7a7a;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --glow: 0 0 80px rgba(25, 211, 176, 0.18);
  --hero-bg:
    radial-gradient(60rem 30rem at 85% -10%, rgba(25, 211, 176, 0.16), transparent 60%),
    radial-gradient(40rem 26rem at -5% 20%, rgba(200, 240, 77, 0.07), transparent 60%);
}

/* ---- light ---- */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f4ec;
  --bg-alt: #efece1;
  --surface: #ffffff;
  --surface-2: #f2f0e7;
  --line: rgba(11, 27, 43, 0.12);
  --line-strong: rgba(11, 27, 43, 0.28);
  --text: #0b1b2b;
  --text-muted: #4a5d6e;
  --accent: #0a7f6e;
  --accent-strong: #0a7f6e;
  --on-accent: #06221d;
  --coral: #d9481c;
  --ok: #15803d; --warn: #a16207; --err: #b91c1c;
  --shadow: 0 18px 40px rgba(11, 27, 43, 0.12);
  --glow: 0 0 80px rgba(25, 211, 176, 0.22);
  --hero-bg:
    radial-gradient(60rem 30rem at 85% -10%, rgba(25, 211, 176, 0.22), transparent 60%),
    radial-gradient(40rem 26rem at -5% 20%, rgba(200, 240, 77, 0.25), transparent 60%);
}
