/* ── base.css — Design tokens, reset, typography — MATRIX THEME ──────────── */
@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

:root {
  /* Matrix green palette */
  --bg-0: #000000;
  --bg-1: #010a01;
  --bg-2: #021202;
  --bg-3: #041a04;
  --bg-4: #072007;
  --border: #0b3d0b;
  --border-light: #1a6b1a;

  /* Text */
  --text-primary: #00ff41;
  --text-secondary: #00c032;
  --text-muted: #1a6b1a;

  /* Accent = matrix green */
  --accent: #00ff41;
  --accent-dim: #00b32c;
  --accent-glow: rgba(0, 255, 65, 0.1);

  /* Semantic — keep hue differences readable */
  --green: #00ff41;
  --green-dim: #00b32c;
  --red: #ff3333;
  --red-dim: #cc0000;
  --yellow: #ffff00;
  --yellow-dim: #cccc00;
  --blue: #00ffff;
  --blue-dim: #00b3b3;

  /* Sizes */
  --sidebar-w: 220px;
  --topbar-h: 56px;
  --radius: 4px;
  --radius-sm: 2px;
  --radius-lg: 4px;
  --shadow: 0 0 24px rgba(0,255,65,0.08), 0 4px 24px rgba(0,0,0,0.8);

  /* Transitions */
  --t: 150ms ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: 'Share Tech Mono', 'Courier New', 'Fira Code', monospace;
  background: var(--bg-0);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Scanline overlay on the whole page */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.06) 2px,
    rgba(0,0,0,0.06) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: #fff; text-shadow: 0 0 8px var(--accent); }

h1 { font-size: 1.4rem; font-weight: 400; letter-spacing: 0.06em; }
h2 { font-size: 1.1rem; font-weight: 400; letter-spacing: 0.04em; }
h3 { font-size: 0.95rem; font-weight: 400; letter-spacing: 0.03em; }

p { color: var(--text-secondary); }

code {
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  background: var(--bg-3);
  border: 1px solid var(--border);
  padding: 1px 5px;
  color: var(--accent);
}

/* Scrollbar */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: var(--border-light); }
::-webkit-scrollbar-thumb:hover { background: var(--accent-dim); }
