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

/* ── Tokens ───────────────────────────────────────────── */
:root {
  --bg:      #0e0e0e;
  --fg:      #e8e8e8;
  --muted:   #888;
  --accent:  #0099b5;
  --font:    'Inter', system-ui, sans-serif;
  --mono:    'JetBrains Mono', 'Fira Code', monospace;
}

/* ── Base ─────────────────────────────────────────────── */
html, body {
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Canvas (graphics layer) ──────────────────────────── */
#bg {
  position: fixed;
  inset: 0;           /* top/right/bottom/left: 0 */
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;   /* clicks pass through to content */
}

/* ── Main content ─────────────────────────────────────── */
main {
  position: relative;
  z-index: 1;             /* sits above canvas */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(2rem, 8vw, 6rem);
  max-width: 680px;
}

/* ── Typography ───────────────────────────────────────── */
h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.tagline {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-bottom: 2.5rem;
}

/* ── Nav links ────────────────────────────────────────── */
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

nav a {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: opacity 0.15s ease;
}

nav a:hover { opacity: 0.6; }