/* ============ 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 + dual accent (hood green + Solana cyan) */
  --bg:        #07090b;
  --bg-2:      #0b0e11;
  --panel:     #0f1216;
  --panel-2:   #131820;
  --ink:       #e6ede8;
  --ink-dim:   #838a86;
  --ink-mute:  #4f544e;
  --line:      #1e2429;
  --line-2:    #262e34;

  /* dual chain accent — hood-green (Robinhood) + Solana cyan */
  --hood:      #6cff97;      /* Robinhood Chain */
  --hood-dim:  #3d9a56;
  --sol:       #a380ff;      /* Solana violet */
  --sol-dim:   #6a4dbd;
  --cyan:      #5cd6ff;      /* cross-chain accent */
  --up:        #7fe27f;
  --down:      #ff6b6b;

  /* legacy alias — main accent (used sparingly) */
  --acid:      var(--hood);
  --acid-dim:  var(--hood-dim);

  /* 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 { background: var(--hood); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--hood);
  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(--hood); }
.hl-sol{ color: var(--sol); }
.hl-cy { color: var(--cyan); }
.up    { color: var(--up); }
.down  { color: var(--down); }

em { font-style: italic; color: var(--hood); font-family: var(--font-display); }
em.sol { color: var(--sol); }
em.cy  { color: var(--cyan); }

.eyebrow {
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  color: var(--hood-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;
  }
}
