/* ============ base.css — reset + tokens ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, ol, ul, dl {
  margin: 0;
  padding: 0;
}
ol, ul { list-style: none; }
img, picture, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

:root {
  /* palette — deep noir + one acid accent */
  --bg:        #08090a;
  --bg-2:      #0d0f10;
  --panel:     #101314;
  --panel-2:   #14181a;
  --ink:       #e8ece6;
  --ink-dim:   #8a8f85;
  --ink-mute:  #565a52;
  --line:      #23282a;
  --line-2:    #2d3336;

  --acid:      #c8ff5c;    /* the one accent */
  --acid-dim:  #7a9a36;
  --up:        #7fe27f;
  --down:      #ff6b6b;

  /* type */
  --font-display: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* fluid type scale */
  --text-xs:   clamp(0.72rem, 0.7rem + 0.1vw, 0.78rem);
  --text-sm:   clamp(0.82rem, 0.8rem + 0.12vw, 0.9rem);
  --text-base: clamp(0.95rem, 0.92rem + 0.15vw, 1.02rem);
  --text-lg:   clamp(1.1rem, 1rem + 0.4vw, 1.35rem);
  --text-xl:   clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  --text-2xl:  clamp(2.2rem, 1.6rem + 2.4vw, 3.5rem);
  --text-3xl:  clamp(3rem, 2rem + 4.5vw, 6rem);
  --text-hero: clamp(3.6rem, 2rem + 7vw, 8.2rem);

  /* spacing (4px base) */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px;
  --sp-12: 48px; --sp-16: 64px; --sp-20: 80px; --sp-24: 96px;
  --sp-32: 128px;

  --radius: 4px;
  --radius-lg: 8px;

  --maxw: 1280px;
}

html, body {
  background: var(--bg);
  color: var(--ink);
}
body {
  font-family: var(--font-mono);
  font-size: var(--text-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* selection */
::selection { background: var(--acid); color: var(--bg); }

/* focus */
:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 2px;
}

/* utilities */
.serif { font-family: var(--font-display); font-style: normal; font-weight: 400; letter-spacing: -0.01em; }
.mono  { font-family: var(--font-mono); }
.dim   { color: var(--ink-dim); }
.hl    { color: var(--acid); }
.up    { color: var(--up); }
.down  { color: var(--down); }

em { font-style: italic; color: var(--acid); font-family: var(--font-display); }

.eyebrow {
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  color: var(--acid-dim);
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}

.body {
  font-size: var(--text-base);
  color: var(--ink);
  line-height: 1.65;
  max-width: 62ch;
}
.body + .body { margin-top: var(--sp-4); }
.footnote {
  font-size: var(--text-xs);
  line-height: 1.6;
  margin-top: var(--sp-8);
  max-width: 68ch;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
