:root {
  --color-bg:          #0a0a0f;
  --color-text:        #dde0e8;
  --color-muted:       #555;
  --color-accent:      #5ec4a8;
  --color-accent-warm: #c8956a;
  --color-border:      #1c1c2a;
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: 'Georgia', serif;
  font-size: 18px;
  line-height: 1.7;
}

/* Subtle grain — makes the void feel textured rather than flat */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

pre, code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.875rem;
  background: #111118;
  border: 1px solid var(--color-border);
  border-radius: 3px;
}

pre  { padding: 1rem; overflow-x: auto; }
code { padding: 0.15em 0.35em; }
pre code { border: none; background: none; padding: 0; }

blockquote {
  border-left: 2px solid var(--color-accent);
  margin: 0;
  padding-left: 1.25rem;
  color: var(--color-muted);
}

table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { text-align: left; padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--color-border); }
th { color: var(--color-muted); font-family: 'Space Grotesk', sans-serif; font-weight: 500; }

img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--color-border);
  margin: 2rem 0;
}

img + em {
  display: block;
  margin-top: -1.25rem;
  margin-bottom: 2rem;
  font-size: 0.8rem;
  color: var(--color-muted);
  font-style: normal;
}
