/* Keystyle design tokens (brand v3, design/v3/BRAND_V3.md). Dark only. The v2 names (paper, ink, card, on-ink...)
   are kept as aliases of the v3 values so every page reads the same frame while pages move to v3 markup. */
:root {
  /* ── v3 surfaces: one dark frame, three greys ── */
  --bg: #0e0f11;
  --surface-1: #16171a;
  --surface-2: #1d1f22;
  --surface-3: #25282c;

  /* ── v3 text ── */
  --text: #f6f6f7;
  --text-2: #8f9094;
  --text-nav: #a8a9ac;
  --text-3: #6f7176;

  /* ── v3 accent: hot pink, the pink end of the mark turned up; at most three places per screen ── */
  --accent: #ff3ec8;
  --accent-hover: #ff62d4;
  --accent-ink: #17060f;
  --accent-10: rgba(255, 62, 200, 0.1);
  --accent-15: rgba(255, 62, 200, 0.15);
  --accent-24: rgba(255, 62, 200, 0.24);
  /* v3.1: the darker bottom edge of a pressed-key button (design/v3/HIGGSFIELD_SPEC.md §3) */
  --accent-edge: #b0207f;
  --accent-glow: rgba(255, 62, 200, 0.45);
  /* promo only: bright key yellow, for NEW chips and offers, never a button */
  --hot: #ffe14d;
  --pro: #7a5cff;
  --sheen: inset 0 1px 0 rgba(255, 255, 255, 0.04);

  /* ── v2 names, aliased to v3 ── */
  --paper: var(--bg);
  --paper-2: var(--surface-1);
  --paper-3: var(--surface-2);
  --card: var(--surface-2);
  --ink: var(--bg);
  --ink-2: var(--surface-1);
  --ink-3: var(--surface-2);
  --ink-4: var(--surface-3);
  --text-strong: var(--text);
  --text-muted: var(--text-2);
  --on-ink: var(--text);
  --on-ink-muted: var(--text-2);
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.14);
  --line-ink: rgba(255, 255, 255, 0.07);
  --line-ink-strong: rgba(255, 255, 255, 0.14);

  /* the key: the mark's colours, for the mark and small category accents only */
  --key-pink: #f57dd9;
  --key-magenta: #e45db9;
  --key-violet: #c97efd;
  --key-coral: #fe8773;
  --key-amber: #fec235;
  --key-yellow: #fed928;
  --key-grad: linear-gradient(90deg, #f57dd9 0%, #c97efd 34%, #fe8773 66%, #fed928 100%);
  /* v2 used these for links on paper; on dark, links use the accent */
  --key-magenta-deep: var(--accent);
  --key-violet-deep: var(--accent);

  --cat-style: var(--key-violet);
  --cat-image: var(--key-pink);
  --cat-video: var(--key-coral);
  --cat-audio: var(--key-amber);
  --cat-edit: var(--key-yellow);

  --ok: #3ddc84;
  --warn: #ffe14d;
  --err: #ff5462;

/* ── type ── */
  --font-display: 'Archivo', 'Geist', ui-sans-serif, system-ui, sans-serif; /* weight 800, wdth 112, uppercase */
  --font-text: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --fs-hero: clamp(48px, 7vw, 104px);
  --fs-d1: clamp(36px, 4.8vw, 64px);
  --fs-d2: clamp(28px, 3.2vw, 44px);
  --fs-d3: clamp(22px, 2vw, 28px);
  --fs-title: 20px;
  --fs-lede: clamp(17px, 1.5vw, 20px);
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-micro: 12px;

  --track-display: -0.025em;
  --track-title: -0.015em;

  /* ── space ── 4px base */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;
  --container: 1392px;
  --gutter: 16px;
  --section: clamp(80px, 10vw, 136px);

  /* ── shape ── */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* ── depth ── light from above (an inset top highlight), big soft shadows only on floating things */
  --shadow-1: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  --shadow-2: 0 12px 32px -12px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --shadow-3: 0 30px 60px -20px rgba(0, 0, 0, 0.7);

  /* ── motion ── */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-fast: 140ms;
  --t: 220ms;
  --t-slow: 420ms;
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
}
