/* chapter-shared.css - Shared styles for all chapter pages */
:root {
  --navy: #0a1628;
  --deep-blue: #132244;
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --teal: #2a9d8f;
  --teal-light: #3dbdb0;
  --cream: #faf8f3;
  --warm-white: #f5f1ea;
  --text-dark: #1a1a2e;
  --text-mid: #3d4a6b;
  --text-light: #6b7a9a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
}

nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,22,40,0.97);
  backdrop-filter: blur(12px);
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
  border-bottom: 1px solid rgba(201,168,76,0.2);
}
.nav-brand {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  text-decoration: none;
}
.nav-back {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 0.5rem;
  transition: color 0.3s;
}
.nav-back:hover { color: var(--gold-light); }

.chapter-hero {
  background: var(--navy);
  padding: 8rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.chapter-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 60%, rgba(42,157,143,0.12) 0%, transparent 60%);
}

.container { max-width: 800px; margin: 0 auto; padding: 0 2.5rem; }
.container-wide { max-width: 1100px; margin: 0 auto; padding: 0 2.5rem; }

.chapter-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.chapter-eyebrow::before {
  content: ''; display: block;
  width: 40px; height: 1px; background: var(--teal-light);
}

.chapter-number-display {
  font-family: 'Playfair Display', serif;
  font-size: 8rem;
  font-weight: 900;
  color: rgba(201,168,76,0.08);
  line-height: 1;
  position: absolute;
  top: 4rem; right: 3rem;
  pointer-events: none;
}

.chapter-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: white;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.chapter-subtitle-hero {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.35rem;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
}

.chapter-lead {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.8;
  max-width: 600px;
}

/* CONTENT */
.chapter-content {
  padding: 5rem 0;
  background: var(--cream);
}

.chapter-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  color: var(--navy);
  margin: 3rem 0 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(10,22,40,0.1);
}

.chapter-content h2:first-child {
  border-top: none;
  margin-top: 0;
}

.chapter-content p {
  font-size: 1.1rem;
  line-height: 1.95;
  color: var(--text-mid);
  margin-bottom: 1.5rem;
}

.chapter-content p:first-of-type {
  font-size: 1.2rem;
  color: var(--text-dark);
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.85;
}

.pull-quote {
  margin: 3rem 0;
  padding: 2.5rem;
  background: var(--navy);
  border-left: 4px solid var(--gold);
  position: relative;
}
.pull-quote::before {
  content: '"';
  font-family: 'Playfair Display', serif;
  font-size: 6rem;
  color: rgba(201,168,76,0.15);
  position: absolute;
  top: 0; left: 1rem;
  line-height: 1;
}
.pull-quote p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem !important;
  font-style: italic;
  color: rgba(255,255,255,0.9) !important;
  line-height: 1.7 !important;
  margin-bottom: 0 !important;
}

/* NAVIGATION BETWEEN CHAPTERS */
.chapter-nav {
  background: var(--navy);
  padding: 3rem 0;
  border-top: 1px solid rgba(201,168,76,0.15);
}

.chapter-nav-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}

.chapter-nav-btn {
  display: flex; align-items: center; gap: 0.75rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  transition: color 0.3s;
  padding: 0.75rem 0;
}
.chapter-nav-btn:hover { color: var(--gold-light); }
.chapter-nav-btn .label {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light);
  display: block;
  margin-bottom: 0.25rem;
}
.chapter-nav-btn .title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: white;
}

.chapter-nav-home {
  color: var(--gold);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(201,168,76,0.3);
  padding: 0.6rem 1.5rem;
  transition: all 0.3s;
}
.chapter-nav-home:hover {
  background: rgba(201,168,76,0.1);
}

/* TOAST */
.toast {
  position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%);
  background: #232f3e; color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  border-left: 3px solid var(--gold);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.toast.show { opacity: 1; }

footer {
  background: var(--deep-blue);
  color: rgba(255,255,255,0.4);
  padding: 2rem;
  text-align: center;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}
footer a { color: var(--gold); text-decoration: none; }
.footer-email {
  color: var(--gold);
  cursor: pointer;
  text-decoration: none;
}
.footer-email:hover { text-decoration: underline; }