/* ══════════════════════════════════════════
   FIRE SITE KIT: TOKENS
   Privacy is dignity.
   fire.co's tokens (fire-devspace/fire-marketing, public/css/tokens.css, as
   partners.fire.co carries them): every colour, size, space, radius, layer
   and motion a Fire site uses, dark by default and light under
   [data-theme="light"] on <html>. The suite's invoice, payroll and books
   accents, Fire Fund's and the phone frame are left out (owner, 2026-10-17).

   Keep this file as it is. A project's own colours go in theme.css, which
   is linked after it and overrides any of these by name.
   ══════════════════════════════════════════ */

/* --- Dark theme (default) --- */
:root,
[data-theme="dark"] {
  /* Accent */
  --accent: #d61d3e;
  --accent-dim: rgba(214, 29, 62, 0.12);
  --accent-glow: rgba(214, 29, 62, 0.3);
  --cyan: #00F0FF;

  /* Gold (swap interface only) */
  --gold: #FFB800;
  --gold-dim: rgba(255, 184, 0, 0.18);
  --gold-text: rgba(255, 184, 0, 0.83);
  --gold-border: rgba(255, 184, 0, 0.41);

  /* Semantic dim/border */
  --green-dim: rgba(34, 197, 94, 0.06);
  --green-border: rgba(34, 197, 94, 0.2);
  --red-dim: rgba(239, 68, 68, 0.06);
  --red-border: rgba(239, 68, 68, 0.2);
  --cyan-dim: rgba(0, 240, 255, 0.04);
  --cyan-border: rgba(0, 240, 255, 0.15);
  --amber-dim: rgba(245, 158, 11, 0.1);
  --amber-border: rgba(245, 158, 11, 0.2);

  /* Surfaces */
  --bg: #0e0e10;
  --surface: #131315;
  --surface-2: #262629;
  --surface-dim: rgba(20, 20, 20, 0.4);
  --nav-bg: rgba(10, 10, 10, 0.85);
  --dropdown-bg: #1a1a1a;

  /* Text */
  --text: #dadee5;
  --text-2: #999999;
  --text-3: #888888;

  /* Borders */
  --border: #222222;
  --border-hover: #333333;

  /* Status */
  --green: #22C55E;
  --red: #EF4444;
  --amber: #f59e0b;

  /* Constant */
  --white: #ffffff;
  --black: #000000;

  /* Hero */
  --hero-bg: linear-gradient(344deg, rgba(23, 24, 26, 1) 0%, rgba(45, 47, 51, 1) 100%);
  --story-hero-angle: 160deg;
  --story-hero-bg: linear-gradient(var(--story-hero-angle), rgb(101 0 18) 25%, rgb(125 15 35) 58.8%, rgb(140 16 38) 59%, rgb(125 15 35) 59%, rgba(0, 0, 0, 1) 89%);
  --section-bg: #080808;
  --overlay-bg: rgba(0, 0, 0, 0.7);

  /* Shadows */
  --shadow-hero: 0 16px 48px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.2);
  --shadow-dropdown: 0 8px 24px rgba(0, 0, 0, 0.3);
  /* The Fire badge's lift off an avatar, the same in both themes. */
  --shadow-badge: 0 1px 2px rgba(0, 0, 0, 0.35);
}

/* --- Light theme --- */
[data-theme="light"] {
  /* The same red as the dark theme: white button text on fire.co's lighter
     #f03f5c read 3.77:1, under the 4.5:1 rule; on #d61d3e it reads 5.2:1
     (console layer, 2026-10-23). */
  --accent: #d61d3e;
  --accent-dim: rgba(214, 29, 62, 0.06);
  --accent-glow: rgba(214, 29, 62, 0.2);
  --cyan: #0088aa;

  --gold: #FFB800;
  --gold-dim: rgba(255, 184, 0, 0.15);
  --gold-text: rgb(117, 82, 2);
  --gold-border: rgba(255, 184, 0, 0.5);

  --green-dim: rgba(22, 163, 74, 0.06);
  --green-border: rgba(22, 163, 74, 0.2);
  --red-dim: rgba(220, 38, 38, 0.06);
  --red-border: rgba(220, 38, 38, 0.2);
  --cyan-dim: rgba(0, 136, 170, 0.06);
  --cyan-border: rgba(0, 136, 170, 0.15);
  --amber-dim: rgba(245, 158, 11, 0.08);
  --amber-border: rgba(245, 158, 11, 0.2);

  --bg: #ffffff;
  --surface: #f4f4f4;
  --surface-2: #eeeeee;
  --surface-dim: rgba(0, 0, 0, 0.03);
  --nav-bg: rgba(255, 255, 255, 0.88);
  --dropdown-bg: #ffffff;

  --text: #0a0a0a;
  --text-2: #555555;
  --text-3: #717171;

  --border: #e0e0e0;
  --border-hover: #cccccc;

  --green: #16a34a;
  --red: #dc2626;

  --hero-bg: linear-gradient(156deg, rgba(255, 252, 242, 1) 0%, rgba(255, 240, 240, 1) 54%, rgba(242, 230, 230, 1) 100%);
  --story-hero-bg: linear-gradient(160deg, rgb(200 80 100) 0%, var(--bg) 84%);
  --section-bg: var(--bg);
  --overlay-bg: rgba(0, 0, 0, 0.4);

  --shadow-hero: 0 16px 48px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-dropdown: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* --- Typography --- */
:root {
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 24px;
  --text-2xl: clamp(28px, 4vw, 40px);
  --text-3xl: clamp(32px, 3.5vw, 48px);
  --text-4xl: clamp(44px, 6vw, 72px);

  --leading-tight: 1.15;
  --leading-normal: 1.6;
  --leading-relaxed: 1.7;
  --tracking-tight: -0.02em;
  --tracking-snug: -0.01em;
  --tracking-wide: 0.08em;
}

/* --- Spacing (4px base) --- */
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-30: 120px;
}

/* --- Layout --- */
:root {
  /* The Fire header's height: 16px, its 44px row, 16px; 12px each under
     768px (header.css). Whatever has to clear the header uses this. */
  --nav-height: 76px;
  --site-nav-height: var(--nav-height);
  /* The header's and the footer's row, and a hero's content. */
  --page-max: 1600px;
  /* The smallest thing a finger presses. */
  --target: 44px;
  /* The phone's slide-in menu. */
  --menu-width: min(320px, 85vw);
}

@media (max-width: 768px) {
  :root {
    --nav-height: 68px;
  }
}

/* --- Borders & Radius --- */
:root {
  --radius: 4px;
  --radius-sm: 4px;
  --radius-lg: 12px;
  --radius-full: 9999px;
}

/* --- Z-index --- */
:root {
  --z-base: 1;
  --z-sticky: 40;
  --z-nav: 100;
  --z-progress: 101;
  --z-skip: 1000;
}

/* --- Motion --- */
:root {
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 100ms;
  --duration-normal: 200ms;
  --duration-slow: 300ms;
  --duration-reveal: 600ms;
  /* What leaves goes at about two thirds of the time it took to come. */
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --duration-exit: 140ms;
}
