@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,600;1,8..60,400&family=JetBrains+Mono:wght@400&display=swap');

:root {
  --bg: #0b0b0f;
  --bg-elevated: #141419;
  --text: #e2ddd3;
  --text-muted: #8a8579;
  --accent: #c9a227;
  --accent-hover: #e0b830;
  --accent-glow: rgba(201, 162, 39, 0.15);
  --red: #c0392b;
  --border: #2a2a30;
  --max-width: 740px;
  --nav-height: 56px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 18px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 11, 15, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.02em;
}

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

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  font-family: 'Source Serif 4', serif;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.2s;
}

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

/* ── BREADCRUMBS ── */
.breadcrumbs {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 24px 0;
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

.breadcrumbs .sep { margin: 0 8px; opacity: 0.4; }

.breadcrumbs .current { color: var(--accent); }

/* ── HERO (homepage) ── */
.hero {
  max-width: 960px;
  margin: 0 auto;
  padding: 100px 24px 80px;
  text-align: center;
}

.hero-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 32px;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: 20px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

/* ── ARTICLE CONTENT ── */
.article {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.article-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.article-chapter {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 16px;
}

.article h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
}

.article h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  margin: 56px 0 20px;
  color: var(--text);
}

.article p {
  margin-bottom: 24px;
  font-size: 18px;
  line-height: 1.8;
}

.article strong {
  color: #fff;
  font-weight: 600;
}

/* ── STAT CALLOUT ── */
.stat-callout {
  background: var(--bg-elevated);
  border-left: 3px solid var(--accent);
  padding: 32px 36px;
  margin: 40px 0;
  border-radius: 0 8px 8px 0;
}

.stat-callout .stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-callout .stat-label {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── PULL QUOTE ── */
.pull-quote {
  margin: 48px 0;
  padding: 0 0 0 28px;
  border-left: 3px solid var(--accent);
}

.pull-quote p {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  color: #fff;
}

/* ── CTA BANNER ── */
.cta-banner {
  background: linear-gradient(135deg, var(--bg-elevated) 0%, rgba(201, 162, 39, 0.08) 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
  margin: 56px 0;
  text-align: center;
}

.cta-banner p {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.cta-button {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  font-family: 'Source Serif 4', serif;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 36px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s;
  letter-spacing: 0.01em;
}

.cta-button:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.cta-inline {
  text-align: center;
  margin: 40px 0;
}

/* ── CHAPTER GRID (homepage) ── */
.chapter-grid {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px 80px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.chapter-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  text-decoration: none;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
}

.chapter-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.chapter-card .card-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}

.chapter-card .card-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 12px;
}

.chapter-card .card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.chapter-card .card-arrow {
  font-size: 14px;
  color: var(--accent);
  margin-top: 16px;
  opacity: 0;
  transition: opacity 0.2s;
}

.chapter-card:hover .card-arrow { opacity: 1; }

/* ── PAGE NAV (prev/next) ── */
.page-nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 80px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.page-nav a {
  flex: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  text-decoration: none;
  transition: all 0.2s;
}

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

.page-nav .nav-dir {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.page-nav .nav-title {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  color: var(--text);
  font-weight: 600;
}

.page-nav .next { text-align: right; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center;
}

footer p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

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

footer a:hover { color: var(--accent-hover); }

/* ── SOURCE TAG ── */
.source-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.7;
}

/* ── INTRO TEXT (homepage) ── */
.intro-text {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 64px;
}

.intro-text p {
  font-size: 19px;
  line-height: 1.8;
  margin-bottom: 24px;
}

/* ── DIVIDER ── */
.divider {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 1px;
  background: var(--border);
  margin-bottom: 64px;
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 60px 20px 50px; }
  .article { padding: 40px 20px 60px; }
  .hero h1 { font-size: 36px; }
  .stat-callout .stat-number { font-size: 36px; }
  .pull-quote p { font-size: 20px; }
  .chapter-grid { grid-template-columns: 1fr; padding: 0 20px 60px; }
  .page-nav { flex-direction: column; }
  .cta-banner { padding: 28px 20px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 11px; }
}
