@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;600;700&family=DM+Mono:wght@400;500&display=swap');

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

:root {
  --bg:          #0A0C0F;
  --surface:     #111318;
  --surface-2:   #181C23;
  --border:      #1E2330;
  --text:        #E8EDF2;
  --text-muted:  #6B7585;
  --signal:      #00E87A;
  --signal-dim:  rgba(0, 232, 122, 0.12);
  --danger:      #FF3B5C;

  --type-xs:   0.75rem;
  --type-sm:   0.875rem;
  --type-base: 1rem;
  --type-lg:   1.25rem;
  --type-xl:   2rem;
  --type-2xl:  3.5rem;
  --type-3xl:  5.5rem;

  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-6:  24px;
  --space-8:  32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;
  --space-32: 128px;

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

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

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

p {
  font-family: var(--font-mono);
  font-size: var(--type-sm);
  line-height: 1.75;
  color: var(--text-muted);
}

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

a:hover { color: var(--signal); }

a:focus-visible {
  outline: 1px solid var(--signal);
  outline-offset: 3px;
  border-radius: 2px;
}

img { max-width: 100%; display: block; }

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--signal);
}

/* ─── Scroll-reveal states ─────────────────────────────────────── */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Utilities ─────────────────────────────────────────────────── */

.u-mono    { font-family: var(--font-mono); }
.u-display { font-family: var(--font-display); }
.u-muted   { color: var(--text-muted); }
.u-signal  { color: var(--signal); }
.u-caps    { text-transform: uppercase; letter-spacing: 0.1em; font-size: var(--type-xs); }

.u-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;
}

/* ─── Selection & scrollbar ─────────────────────────────────────── */

::selection {
  background: var(--signal-dim);
  color: var(--signal);
}

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
