/* The End of Fire – Light Theme */
/* Inspired by the book cover blue + classic literary typography */

:root {
  --blue: #0066b3;
  --blue-dark: #004d8c;
  --blue-light: #e8f4fc;
  --blue-accent: #0090e0;
  --ink: #1a1a1a;
  --ink-soft: #333;
  --muted: #5a5a5a;
  --line: #e0e6ed;
  --bg: #ffffff;
  --bg-soft: #f7f9fc;
  --bg-warm: #faf9f7;
  --orange: #e85d04;
  --radius: 0;
  --shadow: 0 4px 24px rgba(0, 70, 140, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 70, 140, 0.12);
}

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

html {
  scroll-behavior: smooth;
  font-size: 17px;
}

body {
  font-family: "Source Serif 4", "Georgia", "Times New Roman", serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, .display {
  font-family: "Playfair Display", "Georgia", serif;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
}

.font-sans {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
}

.font-mono {
  font-family: "JetBrains Mono", "SF Mono", monospace;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--blue-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-wide {
  max-width: 1280px;
}

body.embed .site-header, body.embed .site-footer { display: none; }
body.embed .section { padding-top: 1.25rem; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #062a60;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.logo, .logo:visited { color: #fff; }
.nav a, .nav a:visited { color: #fff; }
.nav a:hover, .nav a.active { color: #fff; }
.logo-mark {
  background: transparent;
  box-shadow: none;
  border: 1.5px solid rgba(255,255,255,0.85);
}
.logo-mark::after { border-color: rgba(255,255,255,0.95); background: rgba(255,255,255,0.9); }
.nav a { color: #fff; }
.nav a:hover, .nav a.active { color: #fff; }
.nav a.btn-primary, .nav a.btn-primary:hover, .nav a.btn-primary:visited {
  background: #fff;
  color: #0a3a82 !important;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #4db8ff, var(--blue));
  box-shadow: 0 0 0 3px rgba(0, 102, 179, 0.15);
  position: relative;
}

.logo-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.6);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.01em;
}

.nav a:hover,
.nav a.active {
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--blue);
  color: #fff !important;
}
.btn-primary:hover {
  background: var(--blue-dark);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 102, 179, 0.25);
}

/* Ensure header CTA keeps white text despite .nav a color */
.nav a.btn-primary,
.nav a.btn-primary:hover,
.nav a.btn-primary:visited {
  background: #fff;
  color: #062a60 !important;
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-light);
}

.btn-lg {
  padding: 0.9rem 1.8rem;
  font-size: 1rem;
}

/* Hero */
.hero {
  position: relative;
  padding: 5rem 0 6rem;
  overflow: hidden;
  background: linear-gradient(180deg, #f0f7fc 0%, #ffffff 70%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, #ffffff 0%, rgba(255,255,255,0.88) 38%, rgba(255,255,255,0.2) 62%, rgba(255,255,255,0.05) 100%), url("../img/hero-books.jpg?v=open");
  background-size: auto, cover;
  background-position: center, right center;
  background-repeat: no-repeat;
  pointer-events: none;
}
.hero-circles { display: none; }

.hero-circles {
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 520px;
  height: 520px;
  opacity: 0.18;
  pointer-events: none;
}

.hero-circles span {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid var(--blue);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-circles span:nth-child(1) { width: 100%; height: 100%; }
.hero-circles span:nth-child(2) { width: 78%; height: 78%; }
.hero-circles span:nth-child(3) { width: 56%; height: 56%; }
.hero-circles span:nth-child(4) { width: 34%; height: 34%; }
.hero-circles span:nth-child(5) { width: 14%; height: 14%; background: var(--blue); border: none; }

.hero-content {
  position: relative;
  max-width: 680px;
}

.eyebrow {
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.hero h1 .of {
  font-style: italic;
  color: var(--blue);
}

.hero-sub {
  font-family: "Playfair Display", serif;
  font-size: 1.35rem;
  font-weight: 400;
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 2.25rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Sections */
.section {
  padding: 5rem 0;
  background: #fff;
}

.section-soft {
  background: var(--bg-soft);
}

.section-header {
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.1rem;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 560px;
}

/* Premise */
.premise-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3.5rem;
  align-items: start;
}

.premise-label {
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}

.premise-quote {
  font-family: "Playfair Display", serif;
  font-size: 1.85rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
}

.premise-body p {
  margin-bottom: 1.25rem;
  color: var(--ink-soft);
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all 0.25s;
}

.card:hover {
  border-color: rgba(0, 102, 179, 0.3);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.card-label {
  font-family: "Inter", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.6rem;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.card p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Contents / Chapters */
.chapters-list {
  display: grid;
  gap: 0.5rem;
}

.chapter-row {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 1rem 1.25rem;
  border-radius: 0;
  transition: background 0.2s;
}

.chapter-row:hover {
  background: var(--blue-light);
}

.chapter-num {
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
}

.chapter-title {
  font-family: "Playfair Display", serif;
  font-size: 1.15rem;
  font-weight: 500;
}

.chapter-part {
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  color: var(--muted);
}

/* FAQ */
.faq-list {
  max-width: 720px;
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 1.5rem 0;
}

.faq-item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.faq-item p {
  color: var(--muted);
  font-size: 1rem;
}

/* Buy section */
#buy { background: #fff; }
#buy .container { max-width: none; padding-left: 0; padding-right: 0; }
#buy .buy-section { border-left: 0; border-right: 0; }
.buy-section {
  background:
    linear-gradient(to right, #fff 0%, rgba(255,255,255,0.92) 42%, rgba(255,255,255,0.35) 68%, rgba(255,255,255,0.08) 100%),
    url("../img/book-wide.jpg") right center / cover no-repeat;
  color: var(--ink);
  border: 0;
  border-radius: 0;
  padding: 4.5rem 0;
  text-align: left;
  position: relative;
  overflow: hidden;
  min-height: 420px;
}
.buy-section::before { content: none; }
.buy-section h2 { color: var(--ink); font-size: 2.2rem; margin-bottom: 0.75rem; position: relative; }
.buy-section p { opacity: 1; color: var(--ink-soft); margin-bottom: 2rem; position: relative; max-width: 480px; margin-left: 0; margin-right: auto; }
.buy-formats { justify-content: flex-start; }
.buy-formats span { background: #fff; color: var(--ink); border: 1px solid #d5d5d5; }
#reviews {
  background:
    radial-gradient(circle at 50% 30%, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0) 42%),
    url("../img/title-orbits.jpg") center / cover no-repeat;
  background-color: #0a4f96;
  color: white;
}
#reviews .section-header h2,
#reviews .section-header p,
#reviews .review-sources,
#reviews .review-sources a { color: white; }

.buy-formats {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
}

.buy-formats span {
  background: #fff;
  color: var(--ink);
  border: 1px solid #d5d5d5;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--ink-soft);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 0;
  font-family: inherit;
  font-size: 1rem;
  background: white;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 102, 179, 0.12);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand {
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  font-weight: 500;
}

.footer-meta {
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Synopsis page specific */
.synopsis-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  align-items: start;
}

.synopsis-nav {
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  padding-right: 0.5rem;
}

.synopsis-nav a {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 0.88rem;
  padding: 0.45rem 0.75rem;
  border-radius: 0;
  color: var(--muted);
  margin-bottom: 2px;
}

.synopsis-nav a:hover,
.synopsis-nav a.active {
  background: var(--blue-light);
  color: var(--blue);
}

.synopsis-nav .part-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 1.25rem 0 0.4rem 0.75rem;
}

.chapter-detail {
  margin-bottom: 3.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line);
}

.chapter-detail:last-child {
  border-bottom: none;
}

.chapter-detail .num {
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 0.5rem;
}

.chapter-detail h2 {
  font-size: 1.85rem;
  margin-bottom: 0.75rem;
}

.chapter-detail .summary {
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
}

.key-ideas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.key-ideas span {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* Tutorial page */
.tutorial-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: start;
}

.lesson-nav {
  position: sticky;
  top: 90px;
}

.lesson-nav h2 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.progress-bar {
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  margin: 1rem 0 1.5rem;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--blue);
  width: 0%;
  transition: width 0.4s;
}

.lesson-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  border-radius: 0;
  font-family: "Inter", sans-serif;
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.lesson-link:hover,
.lesson-link.active {
  background: var(--blue-light);
  color: var(--blue);
}

.lesson-link .dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--line);
  flex-shrink: 0;
}

.lesson-link.active .dot,
.lesson-link.done .dot {
  border-color: var(--blue);
  background: var(--blue);
}

.lesson-content h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.lesson-meta {
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
}

.lesson-body p {
  margin-bottom: 1.25rem;
  color: var(--ink-soft);
}

.energy-scale {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
}

.energy-scale h4 {
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.scale-row {
  display: grid;
  grid-template-columns: 180px 1fr 70px;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.75rem;
  font-family: "Inter", sans-serif;
  font-size: 0.88rem;
}

.scale-bar {
  height: 18px;
  border-radius: 0;
  background: #ddd;
  position: relative;
  overflow: hidden;
}

.scale-bar-fill {
  height: 100%;
  border-radius: 0;
}

.scale-bar-fill.chemical { background: #e85d04; }
.scale-bar-fill.hydrino { background: var(--blue); }
.scale-bar-fill.nuclear { background: #6b7280; }

/* Illustrations grid */
.illust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}

.illust-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.25s;
}

.illust-card:hover {
  box-shadow: var(--shadow-lg);
}

.illust-placeholder {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--blue-light), #d6eaf8);
  display: grid;
  place-items: center;
  color: var(--blue);
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
}

.illust-card .caption {
  padding: 1.1rem 1.25rem;
}

.illust-card .caption h3 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.illust-card .caption p {
  font-size: 0.88rem;
  color: var(--muted);
}

/* Glossary */
.glossary-list dt {
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
  font-weight: 500;
  margin-top: 1.75rem;
  margin-bottom: 0.4rem;
  color: var(--blue-dark);
}

.glossary-list dd {
  color: var(--ink-soft);
  padding-left: 0.25rem;
  margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 900px) {
  .premise-grid,
  .synopsis-layout,
  .tutorial-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .synopsis-nav,
  .lesson-nav {
    position: static;
    max-height: none;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    display: none;
  }

  .hero-circles {
    opacity: 0.1;
    right: -120px;
  }
}

@media (max-width: 600px) {
  html { font-size: 16px; }
  .hero { padding: 3.5rem 0 4rem; }
  .section { padding: 3.5rem 0; }
  .buy-section { padding: 2.5rem 1.5rem; }
  .scale-row {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
}
/* ========== Enhanced Synopsis ========== */
.cat-bio { --cat: #b45309; --cat-bg: #fef3c7; }
.cat-phil { --cat: #7c3aed; --cat-bg: #f3e8ff; }
.cat-atom { --cat: #0066b3; --cat-bg: #e8f4fc; }
.cat-exp { --cat: #0d9488; --cat-bg: #ccfbf1; }
.cat-eng { --cat: #ea580c; --cat-bg: #ffedd5; }
.cat-econ { --cat: #15803d; --cat-bg: #dcfce7; }
.cat-astro { --cat: #1e3a8a; --cat-bg: #e0e7ff; }

.chapter-detail {
  position: relative;
  border-radius: 0;
  padding: 2rem 2rem 1.5rem;
  margin-bottom: 2.5rem;
  border: 1px solid var(--line);
  background: white;
  transition: box-shadow 0.25s;
}
.chapter-detail:hover {
  box-shadow: var(--shadow);
}
.chapter-detail .cat-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  border-radius: 0;
  background: var(--cat);
}
.chapter-detail .cat-badge {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--cat-bg);
  color: var(--cat);
  margin-bottom: 0.75rem;
}

.chapter-detail .num {
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cat);
  margin-bottom: 0.35rem;
}

.chapter-detail h2 {
  font-size: 1.7rem;
  margin-bottom: 0.6rem;
}

.chapter-short {
  color: var(--ink-soft);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.toggle-expand {
  font-family: "Inter", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue);
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0;
  margin-bottom: 0.5rem;
}
.toggle-expand:hover { color: var(--blue-dark); }
.toggle-expand .arrow {
  transition: transform 0.25s;
  display: inline-block;
}
.toggle-expand.open .arrow { transform: rotate(90deg); }

.chapter-long {
  display: none;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.chapter-long.open { display: block; }

.chapter-long p {
  margin-bottom: 1.1rem;
  color: var(--ink-soft);
}

.key-quote {
  font-family: "Playfair Display", serif;
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink);
  padding: 1.5rem 0 1.5rem 1.5rem;
  border-left: 3px solid var(--cat);
  margin: 1.75rem 0;
}

.scientist-callout {
  background: var(--cat-bg);
  border-radius: 0;
  padding: 1.1rem 1.35rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.scientist-callout strong {
  color: var(--cat);
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.35rem;
}

.featured-illust {
  margin: 1.75rem 0;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}
.featured-illust img {
  width: 100%;
  max-height: 340px;
  object-fit: contain;
  background: white;
}
.featured-illust .illust-cap {
  padding: 0.85rem 1.15rem;
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1.25rem 0 0.5rem;
}
.tag-cloud span {
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

.citations-block {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--line);
}
.citations-block summary {
  font-family: "Inter", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
}
.citations-block summary::-webkit-details-marker { display: none; }
.citations-block summary::before {
  content: "▸ ";
  color: var(--blue);
}
.citations-block[open] summary::before { content: "▾ "; }
.citations-list {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  color: var(--muted);
  padding-left: 1.1rem;
}
.citations-list li { margin-bottom: 0.4rem; }
.further-reading {
  margin-top: 0.9rem;
  padding: 0.85rem 1.1rem;
  background: var(--bg-soft);
  border-radius: 0;
  font-size: 0.9rem;
}
.further-reading strong {
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--blue);
  display: block;
  margin-bottom: 0.35rem;
}

/* Illustrations gallery enhancements */
.illust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}
.illust-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
}
.illust-card .caption {
  padding: 1.1rem 1.25rem 1.35rem;
}
.illust-card .caption .ch-ref {
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.35rem;
}

/* Mobile nav toggle simple */
.menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--ink);
}
@media (max-width: 900px) {
  .menu-btn { display: block; }
}

/* ===== References page ===== */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.75rem;
}
.tab-btn {
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
}
.tab-btn:hover { color: var(--ink); background: var(--bg-soft); }
.tab-btn.active {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.ref-category {
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
}
.ref-category summary {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  background: var(--bg-soft);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.ref-category summary::-webkit-details-marker { display: none; }
.ref-category summary::before {
  content: "▸";
  color: var(--blue);
  font-size: 0.85rem;
}
.ref-category[open] summary::before { content: "▾"; }
.ref-category .cat-body {
  padding: 1rem 1.25rem 1.25rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.ref-category .cat-body code {
  font-size: 0.88rem;
  background: #f1f5f9;
  padding: 0.1rem 0.35rem;
  border-radius: 0;
}

.ref-entry {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.ref-entry:last-child { border-bottom: none; }
.ref-entry .cite {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--ink);
}
.ref-entry .links {
  margin-top: 0.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.ref-entry .links a {
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.2rem 0.55rem;
  border-radius: 0;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--blue);
}
.ref-entry .links a:hover { background: #e0f2fe; }
.ref-entry .quote {
  margin-top: 0.65rem;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border-left: 3px solid var(--blue);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 0.92rem;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.5;
}
.ref-entry .quote::before { content: "“"; }
.ref-entry .quote::after { content: "”"; }

.ref-search {
  width: 100%;
  max-width: 420px;
  padding: 0.65rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  font-family: "Inter", sans-serif;
}

/* Expanded glossary */
.glossary-list dt {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 500;
  margin-top: 1.75rem;
  color: var(--ink);
}
.glossary-list dd {
  margin: 0.4rem 0 0;
  color: var(--ink-soft);
  line-height: 1.6;
}
.glossary-list .book-quote {
  margin-top: 0.6rem;
  padding: 0.7rem 1rem;
  background: #f8fafc;
  border-left: 3px solid var(--blue);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--muted);
  line-height: 1.5;
}
.glossary-list .book-quote::before { content: "From the book: “"; }
.glossary-list .book-quote::after { content: "”"; }

.alpha-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
}
.alpha-jump a {
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  width: 1.8rem;
  height: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: var(--bg-soft);
  color: var(--blue);
}
.alpha-jump a:hover { background: var(--blue); color: white; }

/* Chapter illustration thumbnails */
.chapter-thumbs {
  margin: 1.75rem 0 1rem;
}
.thumbs-label {
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.thumbs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.thumb-btn {
  width: 88px;
  height: 72px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
  background: #f8fafc;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.thumb-btn:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 12px rgba(0, 102, 179, 0.15);
  transform: translateY(-2px);
}
.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.ref-chapter-link {
  margin-top: 1.25rem;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
}
.ref-chapter-link a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}
.ref-chapter-link a:hover {
  text-decoration: underline;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: zoom-out;
}
.lightbox.open {
  display: flex;
}
.lightbox figure {
  max-width: min(920px, 96vw);
  max-height: 90vh;
  margin: 0;
  background: white;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0,0,0,0.35);
  cursor: default;
}
.lightbox img {
  display: block;
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  margin: 0 auto;
  background: #f8fafc;
}
.lightbox figcaption {
  padding: 1rem 1.25rem 1.25rem;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.45;
}
.lightbox figcaption strong {
  display: block;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 0.35rem;
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,0.15);
  color: white;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.lightbox-close:hover {
  background: rgba(255,255,255,0.3);
}

/* Author */
.author-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2.5rem;
  align-items: start;
}
.author-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0;
  border: 1px solid var(--line);
  filter: grayscale(1);
}
.author-bio p { color: var(--ink-soft); margin-bottom: 0.9rem; }
.author-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* Podcast strip */
.podcast-panel {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 2rem 2.25rem;
}
.podcast-panel h2 { font-size: 1.7rem; margin-bottom: 0.6rem; }
.podcast-panel p { color: var(--ink-soft); margin-bottom: 1rem; }
.podcast-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Subscribe */
.subscribe-band {
  background: var(--bg-warm);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 2rem 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}
.subscribe-band h2 { font-size: 1.5rem; margin-bottom: 0.4rem; }
.subscribe-band p { color: var(--muted); max-width: 540px; margin: 0; font-size: 0.98rem; }
.subscribe-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }

/* Chapter podcast links */
.podcast-links { margin-top: 1.1rem; }
.podcast-links .thumbs-label { margin-bottom: 0.55rem; }
.podcast-link-list { list-style: none; padding: 0; margin: 0; }
.podcast-link-list li { margin-bottom: 0.45rem; }
.podcast-link-list a {
  font-family: Inter, sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
}
.chapter-expand .podcast-links,
.chapter-expand .podcast-links .thumbs-label,
.chapter-expand .podcast-links .thumbs-label a,
.chapter-expand .podcast-link-list a { color: #d5dbe3; }
.podcast-link-list span {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: 0.15rem;
}

#profane { background: #fff; }
.profane-band { display: flex; align-items: center; gap: 2rem; padding: 0.5rem 0; }
.profane-cover { width: 180px; height: 180px; object-fit: cover; flex: none; }
.profane-band h2 { font-size: 2.6rem; margin: 0 0 0.55rem; }
.profane-band p { margin: 0; color: var(--muted); max-width: 620px; }
.profane-audio { margin-top: 0.7rem; }
.profane-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 0.85rem; }
.profane-audio a { font-family: Inter, sans-serif; font-weight: 600; }
@media (max-width: 700px) { .profane-band { flex-direction: column; align-items: flex-start; } .profane-cover { width: 140px; height: 140px; } }
.start-section .qa-card,
.start-section .overview-listen {
  background: #fff;
  border: 1px solid #d5d5d5;
  box-shadow: none;
  border-radius: 0;
}
.start-section .card-grid { grid-template-columns: 1fr; }
.start-section .overview-listen { margin-top: 0; padding: 1.35rem 1.5rem; }
.start-section .qa-card:hover,
.start-section .overview-listen:hover { box-shadow: none; transform: none; border-color: #d5d5d5; }
#synopsis {
  background: #0a3a82;
}
#synopsis .section-header h2,
#synopsis .section-header p { color: white; }
.synopsis-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; align-items: stretch; padding: 0.5rem 0 1rem; }
#chapters { display: contents; }
#synopsis .container { max-width: 1180px; }
#synopsis .chapter-detail { margin: 0; height: 350px; min-height: 350px; overflow: hidden; background: transparent; border-color: rgba(255,255,255,0.28); color: white; padding: 1rem 1.1rem 0.85rem; display: flex; flex-direction: column; cursor: pointer; }
#synopsis .chapter-detail.open { height: auto; overflow: visible; }
#synopsis .chapter-detail.front-matter { height: auto; min-height: 0; }
#synopsis .chapter-detail.front-matter.open { height: auto; }
#synopsis .chapter-body { display: flex; flex-direction: column; flex: 1; position: relative; z-index: 1; }
#synopsis .chapter-short { font-size: 0.92rem; line-height: 1.4; margin-bottom: 0.45rem; }
#synopsis .chapter-detail h2 { font-size: 1.28rem; margin-bottom: 0.25rem; }
#synopsis .chapter-deck { font-size: 0.95rem; margin-bottom: 0.35rem; }
#synopsis .toggle-expand { margin-top: auto; }
.chapter-expand { grid-column: 1 / -1; position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,0.28); color: white; padding: 1.4rem 1.6rem 1.2rem; background: #0a3a82; }
.expand-quote-row { display: grid; grid-template-columns: 400px 1fr; gap: 1.4rem; align-items: start; }
.expand-quote-full { width: 100%; }
.expand-figure { width: 400px; height: auto; max-width: 100%; object-fit: contain; background: #0a3a82; display: block; }
.chapter-expand::after { content: none; }
@media (max-width: 800px) { .expand-quote-row { grid-template-columns: 1fr; } .expand-figure { width: 100%; height: auto; } }
.chapter-expand .chapter-long, .chapter-expand .chapter-expand-label { position: relative; z-index: 1; }
.chapter-expand .chapter-long { display: block; margin: 0; padding: 0; border: 0; color: #f4f8ff; }
.chapter-expand .chapter-long p, .chapter-expand .key-quote, .chapter-expand .chapter-short, .chapter-expand .chapter-excerpt { color: #f7fbff; }
.chapter-expand .chapter-short { font-weight: 700; font-style: normal; }
.chapter-expand .chapter-excerpt { font-style: normal; border-left: 3px solid rgba(255,255,255,0.45); padding-left: 1rem; }
.chapter-expand a, .chapter-expand summary { color: #d7ecff; }
.chapter-expand-label { font-family: Inter, sans-serif; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: #d7ecff; margin: 0 0 0.85rem; }
#synopsis .chapter-detail.front-matter { height: auto; }
@media (max-width: 800px) { .synopsis-stack { grid-template-columns: 1fr; gap: 1.25rem; } }
#synopsis .chapter-detail h2,
#synopsis .chapter-detail .chapter-deck,
#synopsis .chapter-detail .chapter-short,
#synopsis .chapter-detail .chapter-long p,
#synopsis .chapter-detail .key-quote,
#synopsis .front-matter p { color: white; }
#synopsis .chapter-detail .num,
#synopsis .toggle-expand { color: #d7ecff; }
#synopsis .chapter-detail.has-bg::after {
  background: linear-gradient(to right, rgba(10,58,130,0.82) 0%, rgba(10,58,130,0.55) 38%, rgba(10,58,130,0.12) 100%);
}
#synopsis .chapter-detail.open.has-bg::after { background: linear-gradient(to right, rgba(10,58,130,0.55) 0%, rgba(10,58,130,0.2) 46%, rgba(10,58,130,0.05) 100%); }
.overview-listen strong {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.35rem;
}
.overview-listen p { margin: 0 0 0.65rem; color: var(--ink-soft); font-size: 0.95rem; }

/* Mobile nav */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  height: 40px;
  padding: 0 1rem;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.7);
  border-radius: 999px;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] {
  background: #fff;
  color: #062a60;
}

@media (max-width: 900px) {
  .author-grid,
  .podcast-panel {
    grid-template-columns: 1fr;
  }
  .author-photo { max-width: 220px; }
  .nav-toggle { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #062a60;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1.25rem 1.1rem;
    gap: 0.35rem;
    z-index: 120;
  }
  .nav.open { display: flex; }
  .nav a {
    padding: 0.85rem 0.25rem;
    font-size: 1rem;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.12);
  }
  .nav a.btn-primary {
    justify-content: center;
    margin-top: 0.75rem;
    border-bottom: none;
  }
  .header-inner { position: relative; }
}

#featured { padding: 2.5rem 0 2rem; }
.featured-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 0.7rem; }
.featured-grid a { display: flex; flex-direction: column; color: inherit; text-decoration: none; background: #f3f5f7; min-width: 0; }
.featured-grid img { width: 100%; height: 168px; object-fit: cover; object-position: top center; display: block; }
.featured-grid span { display: block; padding: 0.4rem 0.5rem 0.5rem; font-family: Inter, sans-serif; font-size: 0.72rem; line-height: 1.3; color: var(--muted); }
.featured-video { grid-column: 1 / 3; grid-row: 1 / span 2; }
.featured-video img { height: 100%; min-height: 280px; object-fit: contain; object-position: center; background: #111; }
.f-tall { grid-column: 3 / 5; grid-row: 1; }
.f-tall img { height: 210px; }
.f-wide { grid-column: 3 / 5; grid-row: 2; }
.f-wide img { height: 150px; object-position: center; }
@media (max-width: 800px) {
  .featured-grid { grid-template-columns: 1fr 1fr; }
  .featured-video, .f-tall, .f-wide { grid-column: 1 / -1; grid-row: auto; }
  .featured-video img, .f-tall img, .f-wide img, .featured-grid img { height: 180px; min-height: 0; }
}
.author-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.6rem; }
.author-photos img { width: 100%; height: 150px; object-fit: cover; display: block; filter: grayscale(1); }
.photo-lightbox { position: fixed; inset: 0; background: rgba(8,16,32,0.92); display: none; align-items: center; justify-content: center; z-index: 200; padding: 1.5rem; }
.photo-lightbox.open { display: flex; }
.photo-lightbox img { max-width: min(1100px, 92vw); max-height: 78vh; object-fit: contain; }
.photo-lightbox p { position: absolute; bottom: 1.2rem; left: 1.5rem; right: 1.5rem; text-align: center; color: white; font-family: Inter, sans-serif; font-size: 0.95rem; margin: 0; }
.photo-lightbox button { position: absolute; top: 1rem; right: 1rem; color: white; background: none; border: 0; font-size: 1.8rem; cursor: pointer; }
a.card { display: block; color: inherit; text-decoration: none; }
.card summary { display: block; list-style: none; cursor: pointer; }
.card summary::-webkit-details-marker { display: none; }
.qa-card .faq-list { margin-top: 0.4rem; }
.qa-card .faq-item { padding: 0.85rem 0; }
.qa-card .faq-item h3 { font-size: 1.02rem; }

.hero-fixed {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 46%, rgba(255,255,255,0.34) 0%, rgba(210,232,255,0.16) 18%, rgba(255,255,255,0) 46%),
    url("../img/title-orbits.jpg") center 42% / cover no-repeat;
  background-color: #0a4f96;
}
.orbit-dots { opacity: 0; }
.orbit-dots.show { opacity: 1; transition: opacity 1.4s ease; }
@media (prefers-reduced-motion: reduce) { .orbit-svg { display: none; } }
.hero-lockup {
  z-index: 1;
  background: transparent;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 4rem;
  color: white;
}
body > header, body > section, body > footer { position: relative; z-index: 1; }
.title-lockup { position: relative; max-width: 760px; margin: 0 auto; text-align: center; transform: translateY(-6vh); }
.hero-lockup .eyebrow { color: rgba(255,255,255,0.82); letter-spacing: 0.22em; margin-bottom: 1rem; }
.hero-lockup h1 { color: white; font-size: clamp(3rem, 7vw, 5.4rem); font-weight: 500; letter-spacing: -0.03em; margin: 0 0 0.35rem; }
.hero-lockup h1 .of { font-style: italic; color: white; }
.hero-lockup .hero-sub { color: rgba(255,255,255,0.9); font-size: 1.35rem; margin: 0.4rem 0 1.4rem; }
.hero-lockup .hero-sub::before { content: ""; display: block; width: 42px; height: 1px; background: rgba(255,255,255,0.7); margin: 0.7rem auto 0.85rem; }
.title-book-link { display: inline-block; color: white; font-family: Inter, sans-serif; font-size: 1rem; font-weight: 500; letter-spacing: 0.04em; text-decoration: none; border: 0; background: none; }
.title-book-link:hover { text-decoration: underline; }
.hero-quote.bare { max-width: 520px; margin: 2.2rem auto 0; background: none; border: 0; box-shadow: none; padding: 0; text-align: center; color: white; }
.hero-quote.bare p { font-family: "Playfair Display", serif; font-style: italic; font-size: 1.2rem; line-height: 1.45; margin: 0 0 0.7rem; color: white; }
.hero-quote.bare footer, .hero-quote.bare footer span, .hero-quote.bare > a { color: rgba(255,255,255,0.82); }
.hero-quote.bare > a { display: inline-block; margin-top: 0.55rem; font-family: Inter, sans-serif; font-size: 0.85rem; font-weight: 600; text-decoration: none; }
.hero-quote blockquote { margin: 0; }
.hero-quote blockquote p {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.45;
  margin: 0 0 0.8rem;
}
.hero-quote footer { font-family: Inter, sans-serif; font-size: 0.82rem; color: var(--muted); }
.hero-quote footer span { color: var(--muted); }
.hero-quote > a { display: inline-block; margin-top: 0.75rem; font-family: Inter, sans-serif; font-size: 0.85rem; font-weight: 600; }

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.15rem;
}
#reviews .review-card {
  background: transparent;
  border: 0;
  box-shadow: none;
}
#reviews .review-card blockquote,
#reviews .review-card figcaption,
#reviews .review-card figcaption span { color: white; }
.review-card blockquote {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.45;
  margin: 0 0 0.9rem;
}
.review-card figcaption { font-family: Inter, sans-serif; font-size: 0.8rem; color: var(--muted); }
.review-card figcaption span { display: block; margin-top: 0.15rem; }
.review-sources { margin-top: 1.25rem; font-family: Inter, sans-serif; font-size: 0.85rem; color: var(--muted); }

.look-frame { width: 100%; height: 720px; border: 0; border-radius: 0; background: white; box-shadow: var(--shadow); }

.explore-head { display: block; text-align: left; width: 100%; margin: 0 0 1.5rem; padding: 0 1.25rem; }

.front-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.front-head h2 { font-size: 1.45rem; margin: 0; }
.front-head .toggle-expand { margin: 0; white-space: nowrap; }
.front-matter .chapter-long p { font-size: 0.95rem; }
.front-signoff { font-family: "Playfair Display", serif; font-style: italic; }

#synopsis .chapter-detail.has-bg { overflow: visible; }
.chapter-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.9; transition: opacity 0.45s ease; pointer-events: none; -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.35) 28%, #000 62%); mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.35) 28%, #000 62%); }
.chapter-detail.has-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.55) 42%, rgba(255,255,255,0.12) 100%); pointer-events: none; transition: opacity 0.45s ease; }
.chapter-detail.open .chapter-bg { opacity: 0.9; }
#synopsis .chapter-detail.open.has-bg::after { opacity: 1; background: linear-gradient(to right, rgba(10,58,130,0.55) 0%, rgba(10,58,130,0.2) 46%, rgba(10,58,130,0.05) 100%); }
.chapter-body { position: relative; z-index: 1; }
.chapter-detail .podcast-links { margin: 0.7rem 0 0; }
.chapter-hero-thumb { width: 203px; height: 260px; object-fit: cover; border-radius: 0; border: 1px solid var(--line); flex-shrink: 0; background: var(--bg-soft); }
.illust-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.85rem; }
.illust-grid-4 .thumb-btn { width: auto; height: auto; display: flex; flex-direction: column; align-items: stretch; text-align: left; }
.illust-grid-4 .thumb-btn img { width: 100%; height: 140px; object-fit: contain; background: #f8fafc; }
.illust-grid-4 .thumb-btn span { display: block; padding: 0.45rem 0.5rem 0.55rem; font-family: Inter, sans-serif; font-size: 0.72rem; line-height: 1.3; color: var(--ink-soft); }
@media (max-width: 800px) { .illust-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) {
  .chapter-head { flex-direction: column; }
  .chapter-hero-thumb { width: 100%; height: 220px; }
}
.chapter-deck { font-family: "Playfair Display", serif; font-style: italic; color: var(--ink-soft); margin: 0.1rem 0 0.45rem; }

.chapter-art { display: grid; grid-template-columns: 1.25fr 0.9fr; gap: 1.25rem; align-items: start; }
.chapter-art .featured-illust { margin: 0; }

.buy-with-photo { display: block; }
.buy-with-photo .buy-copy { position: relative; text-align: left; width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }
.buy-with-photo .buy-copy p,
.buy-with-photo .buy-copy h2 { margin-left: 0; margin-right: 0; text-align: left; }
.buy-photo { position: relative; background: white; border-radius: 0; padding: 0.45rem; }
.buy-photo img { display: block; width: 100%; border-radius: 0; }
.buy-formats { position: relative; display: flex; gap: 0.5rem; font-family: Inter, sans-serif; font-size: 0.82rem; margin-bottom: 0.5rem; }
.buy-formats span { border: 1px solid rgba(255,255,255,0.45); border-radius: 999px; padding: 0.15rem 0.65rem; }

.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.15rem; }
.book-talk { display: grid; grid-template-columns: 420px 1fr; gap: 1.4rem; align-items: center; border: 1px solid var(--line); padding: 1rem; margin: 1.75rem 0 0; text-decoration: none; color: inherit; background: #fff; overflow: hidden; }
.book-talk-thumb { padding: 0.75rem; background: #f4f7fb; }
.book-talk img { width: 100%; height: 220px; object-fit: cover; display: block; background: #111; }
.book-talk div { padding: 0.6rem 0.4rem 0.6rem 0; }
.book-talk h2 { margin: 0.2rem 0 0.35rem; font-size: 1.7rem; }
.book-talk p { margin: 0 0 0.4rem; color: var(--muted); font-size: 1.02rem; }
@media (max-width: 700px) { .book-talk { grid-template-columns: 1fr; } .book-talk div { padding: 0.4rem 0 0; } }
.video-card { display: flex; flex-direction: column; background: white; border: 1px solid var(--line); border-radius: 0; overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow); }
.video-card img { width: 100%; height: 150px; object-fit: cover; display: block; background: var(--bg-soft); }
.video-card > div { padding: 0.9rem 1rem 1.05rem; }
.video-card h2 { font-family: "Playfair Display", serif; font-size: 1.12rem; line-height: 1.3; margin: 0.2rem 0 0.35rem; }
.video-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.45; }
.press-meta, .press-go { font-family: Inter, sans-serif; font-size: 0.75rem; color: var(--blue); }
.press-go { display: inline-block; margin-top: 0.55rem; font-weight: 600; }

.page-title { font-family: "Playfair Display", serif; font-size: clamp(2rem, 4vw, 3rem); margin: 0.15rem 0 0.55rem; }
.page-lead { max-width: 720px; color: var(--muted); margin-bottom: 1.4rem; }
.glossary-grid { column-count: 2; column-gap: 2.4rem; }
.glossary-grid dl, .glossary-letter { break-inside: avoid; }
.glossary-letter { font-family: "Playfair Display", serif; font-size: 1.35rem; margin: 1.1rem 0 0.3rem; }
.glossary-intro, .glossary-footer-note, .guide-note { color: var(--muted); }
.ref-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; align-items: stretch; }
.ref-card { height: 220px; border: 1px solid var(--line); padding: 1.15rem 1.25rem 1rem; display: flex; flex-direction: column; background: #fff; overflow: hidden; color: inherit; text-decoration: none; }
.ref-link-card .press-go { margin-top: auto; font-family: Inter, sans-serif; font-weight: 600; color: var(--blue); }
.ref-card h2 { font-size: 1.28rem; margin: 0 0 0.4rem; }
.ref-card p { color: var(--muted); font-size: 0.92rem; line-height: 1.4; margin: 0; }
.ref-card .toggle-expand { margin-top: auto; }
.ref-expand { grid-column: 1 / -1; border: 1px solid var(--line); padding: 1.3rem 1.4rem; background: #fff; }
.ref-long { display: none; }
.ref-expand .ref-long { display: block; }
.exp-sort-bar { display: flex; gap: 0.4rem; margin: 0.2rem 0 0.9rem; }
@media (max-width: 800px) { .ref-card-grid { grid-template-columns: 1fr; } }
.exp-sort { font-family: Inter, sans-serif; font-size: 0.8rem; border: 1px solid var(--line); background: #fff; color: var(--ink-soft); padding: 0.3rem 0.7rem; cursor: pointer; }
.exp-sort.active { background: #062a60; color: #fff; border-color: #062a60; }
.gutcp-book { display: block; margin: 0.4rem 0 1.25rem; text-decoration: none; color: var(--blue); }
.gutcp-book img { display: block; width: 100%; max-width: 720px; height: auto; border-radius: 0; border: 1px solid var(--line); background: white; }
.gutcp-book span { display: inline-block; margin-top: 0.45rem; font-family: Inter, sans-serif; font-size: 0.88rem; font-weight: 600; }
.wiki-icon { display: inline-flex; align-items: center; justify-content: center; width: 1.05rem; height: 1.05rem; margin-left: 0.35rem; border-radius: 3px; background: #f3f4f6; color: #555; font-family: Inter, sans-serif; font-size: 0.68rem; font-weight: 700; text-decoration: none; vertical-align: middle; }
.rank-high { display: inline-block; margin-right: 0.4rem; padding: 0.05rem 0.4rem; border-radius: 999px; background: var(--blue-light); color: var(--blue); font-family: Inter, sans-serif; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }

@media (max-width: 800px) {
  .hero-layout, .buy-with-photo, .chapter-art { grid-template-columns: 1fr; }
  .explore-head { flex-direction: column; align-items: flex-start; }
  .look-frame { height: 520px; }
  .glossary-grid { column-count: 1; }
}

#look {
  background:
    radial-gradient(circle at 50% 40%, rgba(255,255,255,0.28) 0%, rgba(210,232,255,0.12) 18%, rgba(255,255,255,0) 50%),
    url("../img/title-orbits.jpg") center / cover no-repeat;
  background-color: #0a4f96;
  padding: 0;
}
#look .container { max-width: none; padding: 0; }
.look-card { background: transparent; color: white; border-radius: 0; padding: 4rem 1.5rem 3.5rem; position: relative; overflow: hidden; width: 100%; }
.look-card::before { content: none; }
.look-card .section-header, .look-card .flip-stage, .look-card .flip-note { position: relative; }
.look-card h2, .look-card p { color: white; }
.look-card .flip-note { color: rgba(255,255,255,0.82); }
.look-card .flip-controls { color: rgba(255,255,255,0.85); }
.look-card .flip-controls button { background: white; color: var(--blue-dark); border-color: transparent; }
#book { width: min(880px, 100%); aspect-ratio: 792 / 612; height: auto; margin: 0 auto; }
@media (max-width: 700px) { #book { aspect-ratio: 396 / 612; width: min(420px, 100%); } }
.flip-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.7rem; margin-top: 0.8rem; font-family: Inter, sans-serif; font-size: 0.9rem; color: var(--muted); position: relative; z-index: 2; }
.flip-controls button { border: 1px solid var(--line); background: white; border-radius: 999px; padding: 0.45rem 0.9rem; cursor: pointer; font: inherit; color: var(--ink); }
.flip-controls button:hover { border-color: var(--blue); color: var(--blue); }
.flip-note { text-align: center; color: var(--muted); font-size: 0.9rem; margin-top: 0.6rem; }
#fs { display: none; position: fixed; inset: 0; z-index: 80; background: #111; }
#fs.open { display: block; }
#fsbook { position: absolute; left: 0; right: 0; top: 64px; bottom: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; }
#fsbook .stf__wrapper { margin: 0 auto; }
#fsbook .stf__parent { left: 50% !important; transform: translateX(-50%); }
.fs-bar { display: none; position: fixed; top: 0; left: 0; right: 0; height: 64px; z-index: 100000; align-items: center; justify-content: center; gap: 0.7rem; color: white; font-family: Inter, sans-serif; font-size: 0.9rem; padding: 0 0.7rem; background: #111; border-bottom: 1px solid rgba(255,255,255,0.15); }
.fs-bar.open { display: flex; }
.fs-bar button { color: white; border: 1px solid rgba(255,255,255,0.45); background: #222; border-radius: 999px; padding: 0.45rem 0.95rem; cursor: pointer; font: inherit; }
.look-frame { height: auto; overflow: visible; }


.video-links { font-family: Inter, sans-serif; font-size: 0.82rem; margin-top: 0.45rem; }
.video-links a { color: var(--blue); font-weight: 600; text-decoration: none; margin-right: 0.35rem; }
.video-links a:hover { text-decoration: underline; }

.chapter-excerpt { margin: 0.85rem 0 0.2rem; padding: 0.15rem 0 0.15rem 1rem; border-left: 3px solid var(--blue-light, #d5e4f2); font-family: "Source Serif 4", Georgia, serif; font-size: 1.02rem; font-style: italic; line-height: 1.55; color: var(--ink-soft); }
.chapter-head .chapter-excerpt { max-width: 46rem; }

.card-grid .qa-card { grid-column: 1 / -1; }
.qa-card .faq-list { max-width: none; }
.qa-card .faq-item p { max-width: 52rem; font-size: 1.02rem; line-height: 1.6; }
.chapter-excerpt .key-quote { font-size: 1.28rem; line-height: 1.4; color: var(--ink); margin: 0 0 1.1rem; padding: 0 0 0.9rem; border-left: none; border-bottom: 1px solid var(--line); }
.chapter-excerpt p:last-child { margin-bottom: 0; }
.chapter-long .chapter-excerpt { margin: 0.2rem 0 1.2rem; }

.author-photos-wrap { overflow: hidden; transition: max-height 0.3s ease; }
.author-photos-wrap.collapsed { max-height: 150px; }
.gallery-toggle {
  margin-top: 0.75rem; font-family: Inter, sans-serif; font-size: 0.85rem;
  background: none; border: 1px solid var(--line); padding: 0.4rem 0.9rem;
  cursor: pointer; border-radius: 4px; color: var(--ink);
}
.gallery-toggle:hover { background: #f6f6f6; }

/* Accordion: expanded content inside the card */
#synopsis .chapter-detail.open .chapter-long {
  display: block;
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255,255,255,0.25);
  color: #f7fbff;
}
#synopsis .chapter-detail.open .chapter-long p,
#synopsis .chapter-detail.open .key-quote,
#synopsis .chapter-detail.open .chapter-short,
#synopsis .chapter-detail.open .chapter-excerpt { color: #f7fbff; }
#synopsis .chapter-detail.open .chapter-short { font-weight: 700; }
#synopsis .chapter-detail.open .chapter-excerpt { font-style: normal; border-left: 3px solid rgba(255,255,255,0.45); padding-left: 1rem; }
#synopsis .chapter-detail.open a { color: #d7ecff; }

/* Master-detail synopsis */
.synopsis-split { display: grid; grid-template-columns: 280px 1fr; gap: 1.5rem; align-items: start; margin-top: 0.5rem; }
.chapter-list { display: flex; flex-direction: column; gap: 0.15rem; position: sticky; top: 5rem; max-height: calc(100vh - 6rem); overflow-y: auto; padding-right: 0.4rem; }
.chapter-list button {
  display: block; width: 100%; text-align: left; background: transparent; border: 0;
  padding: 0.55rem 0.7rem; cursor: pointer; color: #d7ecff; font-family: Inter, sans-serif;
  font-size: 0.88rem; border-radius: 4px; line-height: 1.3;
}
.chapter-list button:hover { background: rgba(255,255,255,0.08); }
.chapter-list button.active { background: rgba(255,255,255,0.16); color: #fff; font-weight: 600; }
.chapter-list .list-num { display: block; font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.7; margin-bottom: 0.1rem; }
.chapter-panel {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.28);
  padding: 1.6rem 1.8rem; min-height: 420px; color: #f7fbff;
}
.chapter-panel h2 { font-size: 1.7rem; margin: 0.2rem 0 0.4rem; color: #fff; }
.chapter-panel .chapter-deck { font-size: 1.02rem; color: #d5dbe3; margin: 0 0 1rem; font-style: italic; }
.chapter-panel .num { font-family: Inter, sans-serif; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: #d7ecff; }
.chapter-panel .chapter-short { font-weight: 700; margin-bottom: 0.8rem; }
.chapter-panel .chapter-excerpt { border-left: 3px solid rgba(255,255,255,0.45); padding-left: 1rem; font-style: normal; }
.chapter-panel .key-quote { font-size: 1.15rem; margin: 0 0 0.8rem; }
.chapter-panel a { color: #d7ecff; }
.chapter-panel .expand-quote-row { display: grid; grid-template-columns: 280px 1fr; gap: 1.2rem; align-items: start; margin: 0.8rem 0; }
.chapter-panel .expand-figure { width: 100%; height: auto; background: #0a3a82; }
.chapter-panel .tag-cloud span { display: inline-block; margin: 0.15rem 0.3rem 0.15rem 0; font-size: 0.75rem; opacity: 0.8; }
@media (max-width: 800px) {
  .synopsis-split { grid-template-columns: 1fr; }
  .chapter-list { position: static; max-height: 220px; flex-direction: row; flex-wrap: wrap; }
  .chapter-panel .expand-quote-row { grid-template-columns: 1fr; }
}

/* Topics in the Book */
.topics-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 0.5rem 0 1rem;
}
.topic-card {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.28);
  color: white;
  display: flex;
  flex-direction: column;
  background: #072c66;
}
.topic-card .topic-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 700px;
  background-size: cover;
  background-position: center;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 28%);
  mask-image: linear-gradient(to right, transparent 0%, #000 28%);
}
.topic-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 700px;
  background: linear-gradient(to right, #072c66 0%, rgba(7,44,102,0.4) 22%, rgba(7,44,102,0.08) 45%);
  z-index: 1;
  pointer-events: none;
}
.topic-card .topic-body {
  position: relative;
  z-index: 2;
  padding: 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  max-width: 510px;
}
.topic-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.75rem;
  margin: 0 0 0.55rem;
  color: #fff;
}
.topic-card p {
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0 0 0.6rem;
  color: #f7fbff;
  max-width: 450px;
}
.topic-card .topic-links {
  margin-top: auto;
  font-family: Inter, sans-serif;
  font-size: 0.78rem;
  color: #d7ecff;
}
.topic-card .topic-links a { color: #d7ecff; text-decoration: none; }
.topic-card .topic-links a:hover { text-decoration: underline; }
@media (max-width: 860px) {
  .topics-grid { grid-template-columns: 1fr; }
  /* Stack the image above the text so copy never sits on top of the photo */
  .topic-card { width: 100%; height: auto; }
  .topic-card .topic-bg {
    position: relative;
    width: 100%;
    height: 220px;
    flex: none;
    -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
  }
  .topic-card::after { display: none; }
  .topic-card .topic-body { max-width: none; padding: 1rem 1.2rem 1.3rem; }
  .topic-card p { max-width: none; }
  .topic-card .topic-links { margin-top: 0.4rem; }
}

.topic-card .podcast-links { margin: 0.4rem 0 0.5rem; }
.topic-card .podcast-links .thumbs-label,
.topic-card .podcast-links .thumbs-label a,
.topic-card .podcast-link-list a { color: #d7ecff; }
.topic-card .topic-links { font-style: italic; }

/* Premise background image */
.premise-section { position: relative; overflow: hidden; }
.premise-bg {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 600px;
  background-image: url('../img/suncell-premise.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to right, #000 55%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, #000 55%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-composite: intersect;
  opacity: 0.85;
  pointer-events: none;
}
.premise-section .container { position: relative; z-index: 1; }

/* On narrow screens, show the premise and buy images as solid blocks above the text instead of faded behind it */
@media (max-width: 860px) {
  .premise-section { padding-top: 0; }
  .premise-bg {
    position: relative;
    width: 100%;
    height: 240px;
    margin-bottom: 2rem;
    background-position: center bottom;
    -webkit-mask-image: none;
    mask-image: none;
    opacity: 1;
  }

  #buy { padding-top: 0; }
  .buy-section {
    background: #fff;
    min-height: 0;
    padding: 0 0 2.5rem;
  }
  .buy-section::before {
    content: "";
    display: block;
    height: 220px;
    margin-bottom: 2rem;
    background: url("../img/book-wide.jpg") 78% center / cover no-repeat;
  }
  .buy-section p { max-width: none; }
}

/* Newsletter signup (Get the book) */
.newsletter-form { margin-top: 2.25rem; max-width: 480px; position: relative; }
.newsletter-label { display: block; font-family: "Inter", sans-serif; font-size: 0.85rem; font-weight: 600; color: var(--ink); margin-bottom: 0.5rem; }
.newsletter-row { display: flex; gap: 0.5rem; }
.newsletter-row input {
  flex: 1;
  min-width: 0;
  padding: 0.65rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 0;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.2s;
}
.newsletter-row input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 102, 179, 0.12); }
.newsletter-row .btn { background: #fff; flex-shrink: 0; }
.buy-section .newsletter-status { margin: 0.5rem 0 0; font-size: 0.9rem; color: var(--muted); min-height: 1.2em; }
@media (max-width: 480px) {
  .newsletter-form { max-width: none; }
}
