:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --border: #1a1a1a;
  --text: #c8c8c8;
  --text-muted: #666666;
  --text-dim: #444444;
  --accent: #cc2222;
  --accent-dim: #441111;
  --mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', 'Consolas', monospace;
  --serif: 'Source Serif 4', 'Georgia', 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Noise overlay for dossier feel */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  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)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* Header */
header {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem;
}

header nav {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
}

.site-title:hover {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text);
}

/* Main content */
main {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 2rem 6rem;
}

/* Landing page */
.landing {
  padding-top: 8rem;
  text-align: center;
}

.landing-title {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 3rem;
}

.landing h1 {
  font-family: var(--serif);
  font-size: 3.2rem;
  font-weight: 400;
  line-height: 1.15;
  color: #e8e8e8;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.landing .subtitle {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto 3rem;
}

.landing-divider {
  width: 60px;
  height: 1px;
  background: var(--accent);
  margin: 3rem auto;
}

.landing-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin: 3rem 0;
}

.stat {
  text-align: center;
}

.stat-number {
  font-family: var(--mono);
  font-size: 1.8rem;
  color: var(--accent);
  display: block;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.landing-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 4rem auto;
  line-height: 1.7;
}

.cta-link {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--accent-dim);
  padding: 0.8rem 2.5rem;
  transition: all 0.3s;
  margin-top: 2rem;
}

.cta-link:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
}

/* Chapter page */
.chapter-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.chapter-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.chapter-header h1 {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 400;
  color: #e8e8e8;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.chapter-header .volume {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--text-dim);
}

/* Prose */
.prose p {
  margin-bottom: 1.3rem;
  font-size: 1.05rem;
  color: var(--text);
}

.prose hr {
  border: none;
  text-align: center;
  margin: 2.5rem 0;
  color: var(--text-dim);
}

.prose hr::after {
  content: '• • •';
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.5em;
}

.prose em {
  color: #aaa;
}

.prose strong {
  color: #e8e8e8;
  font-weight: 600;
}

.prose .dialogue {
  color: #b8b8b8;
}

/* Classification stamp effect */
.classified-stamp {
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-dim);
  text-align: center;
  margin: 4rem 0 2rem;
  opacity: 0.6;
}

/* Chapter nav */
.chapter-nav {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chapter-nav a {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.chapter-nav a:hover {
  color: var(--accent);
}

.chapter-nav .disabled {
  color: var(--text-dim);
  pointer-events: none;
}

/* About page */
.about h2 {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 3rem 0 1.2rem;
}

.about h2:first-child {
  margin-top: 0;
}

.about p {
  margin-bottom: 1.2rem;
  font-size: 1.02rem;
  color: var(--text-muted);
}

.about ul {
  list-style: none;
  margin-bottom: 1.5rem;
}

.about li {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
}

.about li strong {
  color: var(--text-muted);
}

/* Chapters list */
.chapters-list {
  list-style: none;
  margin: 2rem 0;
}

.chapters-list li {
  border-bottom: 1px solid var(--border);
}

.chapters-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0;
  text-decoration: none;
  transition: all 0.2s;
}

.chapters-list a:hover {
  padding-left: 0.5rem;
}

.chapters-list .ch-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--text);
}

.chapters-list .ch-num {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--text-dim);
}

.chapters-list .upcoming {
  padding: 1.2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chapters-list .upcoming .ch-title {
  color: var(--text-dim);
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
}

footer p {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--text-dim);
}

/* Responsive */
@media (max-width: 600px) {
  .landing h1 { font-size: 2.2rem; }
  .landing { padding-top: 4rem; }
  .landing-stats { gap: 2rem; }
  .stat-number { font-size: 1.4rem; }
  .chapter-header h1 { font-size: 1.8rem; }
  main { padding: 2rem 1.2rem 4rem; }
  header { padding: 1rem 1.2rem; }
}

/* 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(--text-dim); }

/* Selection */
::selection {
  background: var(--accent-dim);
  color: #fff;
}
