/* AI Apex tokens. Source of truth: brand/tokens.md (CLAUDE.md section 1).
   Overrides the scrollcraft engine's tokens; the engine itself is never edited. */

@font-face {
  font-family: "Geist";
  src: url("fonts/geist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  /* brand */
  --ground: #0B0B0C;
  --raised: #141416;
  --card: #1C1C1F;
  --text: #F2F2F2;
  --text-soft: #A8A8AD;
  --gray-1: #2A2A2E;
  --gray-2: #3A3A3F;
  --gray-3: #6B6B72;
  --accent: #D40000;
  --accent-ink: #FFFFFF;

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

  /* engine mapping */
  --sc-canvas: var(--ground);
  --sc-surface: var(--raised);
  --sc-ink: var(--text);
  --sc-ink-soft: var(--text-soft);
  --sc-accent: var(--accent);
  --sc-accent-ink: var(--accent-ink);
  --sc-font-display: "Geist", system-ui, sans-serif;
  --sc-font-text: "Inter", system-ui, sans-serif;
  --sc-shadow-color: 240 4% 2%;
}

html { background: var(--ground); }
body {
  margin: 0;
  min-height: 100svh;
  background: var(--ground);
  color: var(--text);
  font-family: var(--sc-font-text);
  font-weight: 380;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
