/* base.css — variables, resets, typography scale */

:root {
  --bg:      #0A0C0F;
  --surface: #111318;
  --signal:  #00E87A;
  --text:    #E8EDF2;
  --muted:   #4A5568;
  --border:  #1E2329;

  --font-display: 'Space Grotesk', sans-serif;
  --font-mono:    'DM Mono', monospace;

  /* Spacing rhythm — 8px base */
  --s1:  8px;
  --s2:  16px;
  --s3:  24px;
  --s4:  32px;
  --s5:  48px;
  --s6:  64px;
  --s7:  96px;
  --s8:  128px;

  /* Typography scale */
  --text-xs:   0.75rem;   /* 12px */
  --text-sm:   0.875rem;  /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg:   1.125rem;  /* 18px */
  --text-xl:   1.25rem;   /* 20px */
  --text-2xl:  1.5rem;    /* 24px */
  --text-3xl:  1.875rem;  /* 30px */
  --text-4xl:  2.25rem;   /* 36px */
  --text-5xl:  3rem;      /* 48px */
  --text-6xl:  3.75rem;   /* 60px */
  --text-7xl:  4.5rem;    /* 72px */
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: var(--text-base);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Typography ─────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.02em;
}

h1 { font-size: var(--text-6xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

p {
  font-family: var(--font-mono);
  font-size: var(--text-base);
  color: var(--text);
  line-height: 1.7;
}

a {
  color: var(--signal);
  text-decoration: none;
  transition: opacity 150ms ease;
}

a:hover {
  opacity: 0.75;
}

code, pre {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}

/* ── Utility ─────────────────────────────────────── */

.font-display { font-family: var(--font-display); }
.font-mono    { font-family: var(--font-mono); }

.text-signal { color: var(--signal); }
.text-muted  { color: var(--muted); }
.text-text   { color: var(--text); }

.tracking-widest { letter-spacing: 0.15em; }
.uppercase       { text-transform: uppercase; }

/* Visually hidden (for screen readers) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

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

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}
