/* Axon Curriculum Shared Theme & Design System */

:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --panel-hover: #f1f5f9;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --accent: #0284c7;            /* Blue */
  --accent-soft: #e0f2fe;
  --accent-green: #16a34a;
  --accent-amber: #d97706;
  --accent-red: #e11d48;
  --accent-purple: #9333ea;
  --code-bg: #0f172a;
  --code-ink: #f8fafc;
  --code-dim: #64748b;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.04);
}

:root[data-theme="dark"] {
  --bg: #0a0d14;
  --panel: #141923;
  --panel-hover: #1c2331;
  --ink: #f1f5f9;
  --muted: #94a3b8;
  --line: #232b3b;
  --accent: #38bdf8;            /* Cyan / Blue */
  --accent-soft: #082f49;
  --accent-green: #4ade80;
  --accent-amber: #fbbf24;
  --accent-red: #f43f5e;
  --accent-purple: #c084fc;
  --code-bg: #07090e;
  --code-ink: #f1f5f9;
  --code-dim: #64748b;
  --shadow: 0 1px 3px rgba(0,0,0,0.4), 0 10px 30px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 80px;
}

header.hero {
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  margin-bottom: 24px;
}

.eyebrow {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .75rem;
}

h1 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  margin: .3em 0 .2em;
  line-height: 1.2;
}

.lede {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 75ch;
  margin: 0;
}

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

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

/* Site-wide light/dark toggle, injected by theme.js */
.theme-toggle {
  position: fixed;
  top: 14px;
  right: 16px;
  z-index: 999;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  border-radius: 8px;
  width: 38px;
  height: 34px;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: all 0.15s ease;
}

.theme-toggle:hover {
  border-color: var(--accent);
  transform: scale(1.04);
}
