/**
 * BotForge Forge Edition — design tokens.
 * Single source of truth for color, spacing, type, motion.
 * Import once per HTML page: <link rel="stylesheet" href="/assets/tokens.css">
 */

:root {
  /* Colour */
  --bf-abyss: #0b1016;
  --bf-panel: #111823;
  --bf-ink: #e9f1ff;
  --bf-muted: #8aa0bc;
  --bf-line: #1e2a3a;
  --bf-accent: #00e5ff;
  --bf-accent-strong: #22f3ff;
  --bf-warn: #ffb450;
  --bf-danger: #ff6478;
  --bf-success: #78ffb4;

  /* Type */
  --bf-font: -apple-system, Segoe UI, Inter, sans-serif;
  --bf-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --bf-fs-xs: 12px;
  --bf-fs-sm: 14px;
  --bf-fs-base: 16px;
  --bf-fs-lg: 18px;
  --bf-fs-xl: 22px;
  --bf-fs-display: 42px;
  --bf-lh: 1.6;

  /* Spacing — 8px base */
  --bf-s-1: 8px;
  --bf-s-2: 12px;
  --bf-s-3: 16px;
  --bf-s-4: 24px;
  --bf-s-5: 32px;
  --bf-s-6: 48px;
  --bf-s-7: 64px;

  /* Radius */
  --bf-r-sm: 8px;
  --bf-r-md: 10px;
  --bf-r-lg: 14px;
  --bf-r-xl: 18px;
  --bf-r-pill: 999px;

  /* Shadow */
  --bf-shadow-sm: 0 2px 8px rgba(0, 0, 0, .25);
  --bf-shadow-md: 0 8px 24px rgba(0, 0, 0, .4);
  --bf-shadow-lg: 0 20px 60px rgba(0, 0, 0, .45);
  --bf-glow-accent: 0 0 18px rgba(0, 229, 255, .5);

  /* Motion */
  --bf-ease: cubic-bezier(.2,.7,.2,1);
  --bf-d-fast: 150ms;
  --bf-d-base: 220ms;
  --bf-d-slow: 380ms;
}

/* Sensible defaults so any page using tokens feels Forge Edition by default */
html { color-scheme: dark; }
body {
  font-family: var(--bf-font);
  background: var(--bf-abyss);
  color: var(--bf-ink);
  font-size: var(--bf-fs-base);
  line-height: var(--bf-lh);
  margin: 0;
}

a { color: var(--bf-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

code, pre { font-family: var(--bf-font-mono); }

button.bf-cta {
  background: var(--bf-accent);
  color: #001018;
  border: 0;
  padding: 12px 22px;
  border-radius: var(--bf-r-md);
  font-weight: 700;
  cursor: pointer;
  transition: filter var(--bf-d-fast) var(--bf-ease);
}
button.bf-cta:hover { filter: brightness(1.08); }

.bf-panel {
  background: var(--bf-panel);
  border: 1px solid var(--bf-line);
  border-radius: var(--bf-r-lg);
  padding: var(--bf-s-4);
}

.bf-muted { color: var(--bf-muted); }

@media (prefers-reduced-motion: reduce) {
  :root {
    --bf-d-fast: 0ms;
    --bf-d-base: 0ms;
    --bf-d-slow: 0ms;
  }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
