/* ============ base.css — reset + tokens ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
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; }

/* Pixel-perfect rendering for all hoodie art */
img.pixel, .pixel img { image-rendering: pixelated; image-rendering: -moz-crisp-edges; image-rendering: crisp-edges; }

:root {
  --bg:        #07090b;
  --bg-2:      #0b0e11;
  --bg-3:      #04070a;
  --panel:     #0f1216;
  --panel-2:   #131820;
  --ink:       #e6ede8;
  --ink-dim:   #8a9490;
  --ink-mute:  #4f544e;
  --line:      #1e2429;
  --line-2:    #2a333a;

  --hood:      #6cff97;
  --hood-2:    #34e07a;
  --hood-dim:  #3d9a56;
  --hood-glow: rgba(108, 255, 151, 0.4);

  --sol:       #a380ff;
  --sol-dim:   #6a4dbd;
  --cyan:      #5cd6ff;
  --gold:      #d9a441;
  --amber:     #ff9d3d;
  --up:        #7fe27f;
  --down:      #ff6b6b;

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

  --text-xs:   clamp(0.72rem, 0.7rem + 0.1vw, 0.8rem);
  --text-sm:   clamp(0.82rem, 0.8rem + 0.12vw, 0.92rem);
  --text-base: clamp(0.95rem, 0.92rem + 0.15vw, 1.05rem);
  --text-lg:   clamp(1.15rem, 1rem + 0.5vw, 1.4rem);
  --text-xl:   clamp(1.5rem, 1.2rem + 1.4vw, 2.3rem);
  --text-2xl:  clamp(2.2rem, 1.6rem + 2.6vw, 3.6rem);
  --text-3xl:  clamp(3rem, 2rem + 4.5vw, 6rem);
  --text-hero: clamp(3.6rem, 2rem + 7.2vw, 8.4rem);

  --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: 2px;
  --radius-lg: 4px;
  --radius-pixel: 0px;
  --maxw: 1320px;
}

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;
  background:
    radial-gradient(ellipse 1400px 900px at 50% -10%, color-mix(in oklab, var(--hood) 6%, transparent), transparent 60%),
    linear-gradient(180deg, var(--bg-3), var(--bg));
  background-attachment: fixed;
}

::selection { background: var(--hood); color: var(--bg); }
:focus-visible { outline: 2px solid var(--hood); outline-offset: 2px; }

.serif   { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; }
.mono    { font-family: var(--font-mono); }
.pixel   { font-family: var(--font-pixel); }
.dim     { color: var(--ink-dim); }
.hl      { color: var(--hood); }
.hl-sol  { color: var(--sol); }
.hl-cy   { color: var(--cyan); }
.hl-gold { color: var(--gold); }
.up      { color: var(--up); }
.down    { color: var(--down); }
em       { font-style: italic; color: var(--hood); font-family: var(--font-display); }

/* ============ CRT SCANLINES OVERLAY ============ */
.crt-scanlines {
  pointer-events: none;
  position: fixed; inset: 0;
  z-index: 200;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.15) 0px,
    rgba(0, 0, 0, 0.15) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: multiply;
  opacity: 0.5;
}
