/* shared.css – used by all subpages */
:root {
  --ink: #1a1410;
  --paper: #f5f0e8;
  --aged: #e8e0ce;
  --rust: #8b3a2a;
  --muted: #6b6055;
  --gold: #c9a84c;
  --void: #0d0b08;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 18px;
  line-height: 1.7;
  overflow-x: hidden;
}
/* COOKIE BANNER */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--void); color: #ccc;
  padding: 1.2rem 2rem; z-index: 9999;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  font-family: 'Space Mono', monospace; font-size: 0.75rem;
  border-top: 1px solid var(--rust);
}
#cookie-banner p { flex: 1; }
#cookie-banner a { color: var(--gold); }
.cookie-btns { display: flex; gap: 0.8rem; flex-shrink: 0; }
.cookie-btns button {
  padding: 0.5rem 1.2rem; border: 1px solid currentColor;
  background: transparent; cursor: pointer;
  font-family: 'Space Mono', monospace; font-size: 0.75rem; transition: all 0.2s;
}
#btn-accept { color: var(--gold); border-color: var(--gold); }
#btn-accept:hover { background: var(--gold); color: var(--void); }
#btn-decline { color: #888; border-color: #555; }
#btn-decline:hover { background: #333; color: #ccc; }
/* HEADER */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(245,240,232,0.96); backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--aged);
  padding: 0.8rem 3rem; display: flex; align-items: center; justify-content: space-between;
}
.site-logo {
  font-family: 'Space Mono', monospace; font-size: 0.7rem;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); text-decoration: none;
}
nav { display: flex; gap: 2rem; }
nav a {
  font-family: 'Space Mono', monospace; font-size: 0.65rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  text-decoration: none; transition: color 0.2s;
}
nav a:hover, nav a.active { color: var(--rust); }
/* PAGE HEADER */
.page-hero {
  padding: 9rem 2rem 4rem;
  background: var(--aged);
  border-bottom: 1px solid rgba(139,58,42,0.15);
}
.page-hero .container { max-width: 860px; margin: 0 auto; }
.breadcrumb {
  font-family: 'Space Mono', monospace; font-size: 0.65rem;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--rust); }
.chapter-label {
  font-family: 'Space Mono', monospace; font-size: 0.65rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--rust); margin-bottom: 1rem;
}
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 900; line-height: 1.1; color: var(--ink); margin-bottom: 1rem;
}
.page-hero .subtitle {
  font-family: 'Playfair Display', serif; font-style: italic;
  font-size: 1.2rem; color: var(--muted);
}
/* CONTENT */
.content-section { padding: 5rem 2rem; }
.content-section .container { max-width: 780px; margin: 0 auto; }
.content-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; color: var(--ink);
  margin: 3rem 0 1.2rem; line-height: 1.2;
}
.content-section h2:first-child { margin-top: 0; }
.content-section h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem; font-weight: 700; color: var(--ink); margin: 2rem 0 0.8rem; font-style: italic;
}
.content-section p { color: var(--muted); margin-bottom: 1.2rem; }
.content-section p strong { color: var(--ink); font-weight: 600; }
blockquote.inset {
  border-left: 3px solid var(--gold);
  padding: 1rem 1.5rem; margin: 2rem 0;
  background: var(--aged);
  font-family: 'Playfair Display', serif; font-style: italic; color: var(--ink); font-size: 1.05rem;
}
blockquote.inset cite {
  display: block; margin-top: 0.8rem;
  font-family: 'Space Mono', monospace; font-size: 0.65rem;
  letter-spacing: 0.1em; color: var(--muted); font-style: normal;
}
.section-divider {
  border: none; border-top: 1px solid var(--aged); margin: 3rem 0;
}
/* NAV BETWEEN CHAPTERS */
.chapter-nav {
  padding: 3rem 2rem; background: var(--void);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
}
.chapter-nav a {
  font-family: 'Space Mono', monospace; font-size: 0.7rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #888; text-decoration: none; transition: color 0.2s;
}
.chapter-nav a:hover { color: var(--gold); }
/* FOOTER */
footer {
  background: var(--ink); color: #888;
  padding: 3rem 2rem;
  font-family: 'Space Mono', monospace; font-size: 0.65rem; letter-spacing: 0.08em;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
}
footer a { color: #888; text-decoration: none; transition: color 0.2s; }
footer a:hover { color: var(--gold); }
.footer-links { display: flex; gap: 2rem; }
/* RESPONSIVE */
@media (max-width: 768px) {
  header { padding: 0.8rem 1.5rem; }
  nav { gap: 1rem; }
  nav a { font-size: 0.55rem; }
  #cookie-banner { flex-direction: column; align-items: flex-start; }
}
