/* ─────────────────────────────────────────────────────────────
   Rug Munch Media — design tokens for code.cryptorugmunch.com
   Mirrors cryptorugmunch-com/src/styles/site.css (the corporate site).
   Dark only: the corporate site has no light mode, so neither do we.
   Loaded AFTER the explorer bundle; never edit the hashed assets.
   ───────────────────────────────────────────────────────────── */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-latin-var.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root,
:root[data-theme="light"],
:root[data-theme="dark"] {
  color-scheme: dark;

  /* ── Core palette (corporate) ── */
  --bg-deepest: #030303;
  --bg-primary: #050505;
  --bg-secondary: #080808;
  --bg-elevated: #0c0c0c;
  --bg-card: #0a0a0a;

  /* ── Lines ── */
  --border: #1e1e1e;
  --border-strong: #2c2c2c;
  --border-glow: rgba(0, 255, 136, 0.1);
  --border-glow-strong: rgba(0, 255, 136, 0.22);

  /* ── Text ── */
  --text-primary: #f4f4f6;
  --text-secondary: #a0a0a8;
  --text-tertiary: #8b8b94;
  --text-muted: #7f7f88;
  --text-inverse: #030303;

  /* ── Brand ── */
  --accent: #00ff88;
  --accent-bright: #1aff94;
  --accent-soft: #9cffc9;
  --accent-dim: rgba(0, 255, 136, 0.6);
  --accent-subtle: rgba(0, 255, 136, 0.04);
  --accent-wash: rgba(0, 255, 136, 0.015);

  /* ── Semantic ── */
  --red: #ff4466;
  --amber: #ffaa00;
  --info: #66aaff;

  /* ── Type ── */
  --font-display: "Space Grotesk", Inter, system-ui, -apple-system, sans-serif;
  --font-body: Inter, system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", ui-monospace, monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-body-size: 1rem;
  --text-lead: 1.125rem;
  --text-h3: 1.25rem;
  --text-h2: clamp(1.75rem, 3.2vw, 2.375rem);
  --text-h1: clamp(2.5rem, 5vw, 3.75rem);
  --leading-tight: 1.08;
  --leading-body: 1.65;
  --measure: 68ch;

  /* ── Spacing: 4px base, one rhythm ── */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  /* ── Geometry ── */
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 14px;
  --radius-xl: 14px;
  --nav-height: 68px;
  --gutter: clamp(20px, 4.5vw, 32px);
  --container: 1200px;

  /* ── Motion ── */
  --rmm-dur: 0.18s;
  --rmm-dur-slow: 0.32s;
  --rmm-ease: cubic-bezier(0.4, 0, 0.2, 1);

  /* ── Elevation: hairline first, shadow second ── */
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.02), 0 18px 40px -28px #000;
  --shadow-lift: 0 0 0 1px var(--border-glow-strong), 0 24px 48px -30px #000;
}
