/* ==========================================================================
   The British Resilience Library — stylesheet
   --------------------------------------------------------------------------
   Brand direction: quiet competence. Institutional library gravitas.
   Forest green principal, burgundy + navy + gold accents, cream paper.
   Typography: Cormorant Garamond for display, Lora for body. Two serifs
   that share temperament but speak differently — Cormorant elegant and
   literary, Lora steady and readable.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Lora:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap');

/* ---------- THEME VARIABLES ---------- */
:root {
  --paper:        #f2ecde;
  --paper-deep:   #e8e0ce;
  --paper-shadow: #cfc3a6;
  --ink:          #1f2014;
  --ink-soft:     #3b3a2e;
  --ink-muted:    #716c5c;
  --forest:       #1f3a29;
  --forest-deep:  #142818;
  --gold:         #b38d42;
  --burgundy:     #6d2a2a;
  --navy:         #1f3147;
  --slate:        #3a4a5a;
}

/* ---------- BASE ---------- */
* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Lora', 'Georgia', serif;
  font-size: 17px;
  line-height: 1.65;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 25%, rgba(31,58,41,0.035) 0%, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(179,141,66,0.025) 0%, transparent 45%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0.18 0 0 0 0 0.15 0 0 0 0 0.1 0 0 0 0.07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
  opacity: 0.55;
}

.page-content {
  position: relative;
  z-index: 2;
}

a {
  color: var(--forest-deep);
  text-decoration: none;
  border-bottom: 1px solid rgba(31, 58, 41, 0.3);
  transition: border-color 0.3s;
}
a:hover { border-bottom-color: var(--forest-deep); }

/* ==========================================================================
   LANDING PAGE (index.html) — pure foyer: logo left, welcome right
   ========================================================================== */
.landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 3rem;
  position: relative;
}

.landing-frame {
  position: fixed;
  inset: 2rem;
  border: 1px solid rgba(31, 58, 41, 0.18);
  pointer-events: none;
  z-index: 3;
}

.landing-frame::before {
  content: '';
  position: absolute;
  inset: 0.5rem;
  border: 1px solid rgba(31, 58, 41, 0.12);
}

.landing-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  width: 100%;
}

.landing-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.landing-logo {
  width: 100%;
  max-width: 460px;
  height: auto;
  display: block;
}

.landing-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 420px;
}

.landing-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  color: var(--gold);
  margin: 0 0 2rem;
  letter-spacing: 0.04em;
}

.landing-welcome-ornament {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  color: var(--gold);
  opacity: 0.85;
  margin: 0 0 1.25rem;
  line-height: 1;
}

.landing-welcome-ornament::before {
  content: '\2767';
}

.landing-intro {
  font-family: 'Lora', serif;
  font-size: clamp(1.05rem, 1.4vw, 1.15rem);
  line-height: 1.75;
  color: var(--ink-soft);
}

.landing-intro p {
  margin: 0 0 1.25em;
}

.landing-intro p:last-child {
  margin-bottom: 0;
}

.landing-enter {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: transparent;
  color: var(--forest-deep);
  padding: 1.1rem 2.75rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--forest-deep);
  margin-top: 2.5rem;
  transition: all 0.4s ease;
}

.landing-enter:hover {
  background: var(--forest-deep);
  color: var(--paper);
  letter-spacing: 0.35em;
  border-bottom-color: var(--forest-deep);
}

.landing-enter .arrow {
  font-size: 1.15em;
  transition: transform 0.4s ease;
}

.landing-enter:hover .arrow {
  transform: translateX(6px);
}

@media (max-width: 860px) {
  .landing-split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    max-width: 520px;
  }
  .landing-welcome {
    max-width: none;
  }
  .landing-logo { max-width: 340px; }
  .landing-frame { inset: 1rem; }
  .landing { padding: 2rem 1.5rem; }
}

/* ==========================================================================
   LIBRARY PAGE (library.html)
   ========================================================================== */
.library-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

.library-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--paper-shadow);
}

.library-nav-back {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: none;
  transition: color 0.3s;
  letter-spacing: 0.18em;     /* widened a touch so the caps breathe */
  text-transform: uppercase;  /* ← this is the line that makes it capitals */
}

.library-nav-back:hover {
  color: var(--forest-deep);
}

.library-nav-logo {
  height: 60px;
  width: auto;
}

.library-nav-logo-placeholder {
  width: 60px;
}

.library-page-header {
  text-align: center;
  margin-bottom: 5rem;
}

.library-page-eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.library-page-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--forest-deep);
  margin: 0 0 1rem;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.library-divider {
  width: 80px;
  height: 1px;
  background: var(--paper-shadow);
  margin: 2rem auto;
  position: relative;
}

.library-divider::before {
  content: '\2767';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #eee9da;
  padding: 0 0.75rem;
  color: var(--gold);
  font-size: 1.4rem;
}

.library-page-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--ink-muted);
  max-width: 50ch;
  margin: 0 auto;
  line-height: 1.5;
}

/* Flagship volume — featured prominently */
.flagship {
  margin: 0 auto 6rem;
  max-width: 820px;
  text-align: center;
}

.flagship-eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

/* Flagship book wrapped in a link so clicking the cover opens the book.
   The link itself is invisible; the book inside animates on hover. */
.flagship-book-link {
  display: inline-block;
  border-bottom: none;
  transition: transform 0.4s ease;
}

.flagship-book-link:hover {
  border-bottom-color: transparent;
  transform: translateY(-4px);
}

.flagship-book {
  display: inline-block;
  position: relative;
  padding: 1.5rem;
  background: var(--paper-deep);
  box-shadow:
    0 4px 12px rgba(20, 40, 24, 0.15),
    0 20px 50px rgba(20, 40, 24, 0.1);
  margin-bottom: 2rem;
  max-width: 420px;
  width: 100%;
  transition: box-shadow 0.4s ease;
}

.flagship-book-link:hover .flagship-book {
  box-shadow:
    0 6px 16px rgba(20, 40, 24, 0.2),
    0 24px 60px rgba(20, 40, 24, 0.15);
}

.flagship-book::before {
  content: '';
  position: absolute;
  inset: 0.5rem;
  border: 1px solid rgba(31, 58, 41, 0.15);
  pointer-events: none;
  z-index: 2;
}

.flagship-book img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 2px 8px rgba(20, 40, 24, 0.25);
}

.flagship-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--forest-deep);
  margin: 0 0 0.75rem;
  line-height: 1.15;
}

.flagship-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink-muted);
  margin: 0 auto 1.5rem;
  max-width: 42ch;
}

.flagship-status {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
}

.flagship-cta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: var(--forest-deep);
  color: var(--paper);
  padding: 1rem 2.5rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--forest-deep);
  transition: all 0.4s ease;
}

.flagship-cta:hover {
  background: var(--paper);
  color: var(--forest-deep);
  letter-spacing: 0.32em;
  border-bottom-color: var(--forest-deep);
}

.flagship-cta .arrow {
  font-size: 1.1em;
  transition: transform 0.4s ease;
}

.flagship-cta:hover .arrow {
  transform: translateX(6px);
}

/* The grid of additional volumes */
.volumes-heading {
  text-align: center;
  margin: 4rem 0 3rem;
}

.volumes-heading-eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.8rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.volumes-heading-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--forest-deep);
  margin: 0;
  letter-spacing: 0.01em;
}

.volumes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 3rem 2rem;
}

.volume-card {
  text-align: center;
  transition: transform 0.35s ease;
  opacity: 0.85;
}

.volume-card:hover {
  opacity: 1;
  transform: translateY(-4px);
}

.volume-card-cover {
  display: block;
  width: 100%;
  aspect-ratio: 2/3;
  position: relative;
  box-shadow:
    0 2px 6px rgba(20, 40, 24, 0.15),
    0 12px 28px rgba(20, 40, 24, 0.12);
  overflow: hidden;
  margin-bottom: 1rem;
  background: var(--paper-deep);
}

.volume-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Placeholder when no cover image is yet available */
.volume-card-cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  color: rgba(242, 236, 222, 0.88);
  font-family: 'Cormorant Garamond', serif;
  text-align: center;
  background: linear-gradient(180deg, var(--forest-deep), var(--forest));
  position: relative;
}

.volume-card-cover-placeholder::before {
  content: '';
  position: absolute;
  inset: 0.75rem;
  border: 1px solid rgba(179, 141, 66, 0.3);
}

.volume-card-cover-placeholder.c-wild      { background: linear-gradient(180deg, var(--slate), #2c3947); }
.volume-card-cover-placeholder.c-human     { background: linear-gradient(180deg, #5a2222, var(--burgundy)); }
.volume-card-cover-placeholder.c-forage    { background: linear-gradient(180deg, #4a5e2a, #3d5024); }
.volume-card-cover-placeholder.c-weather   { background: linear-gradient(180deg, #1a2a3c, var(--navy)); }
.volume-card-cover-placeholder.c-coast     { background: linear-gradient(180deg, #4a5560, #3a4a5a); }
.volume-card-cover-placeholder.c-firstaid  { background: linear-gradient(180deg, #702a2a, #5a2020); }
.volume-card-cover-placeholder.c-urban     { background: linear-gradient(180deg, #2a2a2a, #1a1a1a); }
.volume-card-cover-placeholder.c-bushcraft { background: linear-gradient(180deg, #5a3d20, #46301a); }
.volume-card-cover-placeholder.c-walking   { background: linear-gradient(180deg, #4a5e2a, #3a4e20); }
.volume-card-cover-placeholder.c-naturalist { background: linear-gradient(180deg, #3d5024, #2d401a); }
.volume-card-cover-placeholder.c-children  { background: linear-gradient(180deg, #6b5530, #544023); }

.volume-card-cover-placeholder .volume-num {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: rgba(179, 141, 66, 0.9);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.volume-card-cover-placeholder .volume-placeholder-title {
  font-size: clamp(0.85rem, 1.3vw, 1rem);
  letter-spacing: 0.06em;
  line-height: 1.25;
  text-transform: uppercase;
  font-weight: 500;
}

.volume-card-cover-placeholder .volume-placeholder-mark {
  margin-top: 1rem;
  color: rgba(179, 141, 66, 0.7);
}

.volume-card-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--ink);
  margin: 0;
  line-height: 1.25;
}

.volume-card-status {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-top: 0.35rem;
  letter-spacing: 0.05em;
}

/* Footer (shared) */
.library-footer {
  margin: 6rem auto 0;
  padding-top: 3rem;
  border-top: 1px solid var(--paper-shadow);
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  color: var(--ink-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  max-width: 900px;
}

.library-footer-motto {
  letter-spacing: 0.25em;
  margin-bottom: 1rem;
}

.library-footer-motto span {
  color: var(--gold);
  padding: 0 0.5em;
}

.library-footer-note {
  font-family: 'Lora', serif;
  font-size: 0.9rem;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
  text-transform: none;
  font-style: italic;
  margin-top: 1rem;
}

.library-footer-links {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 1.5rem 0 0;
}

.library-footer-links a {
  color: var(--ink-soft);
  border-bottom: 1px solid rgba(31, 58, 41, 0.2);
  padding-bottom: 2px;
  transition: color 0.3s, border-bottom-color 0.3s;
}

.library-footer-links a:hover {
  color: var(--forest-deep);
  border-bottom-color: var(--forest-deep);
}

@media (max-width: 640px) {
  .library-page { padding: 2rem 1.25rem 4rem; }
  .volumes-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .library-footer-motto { letter-spacing: 0.15em; font-size: 0.75rem; }
}

/* ==========================================================================
   BOOK READING PAGES (front matter, introductions, chapters)
   --------------------------------------------------------------------------
   A different visual grammar from the library-level pages. These are
   inside a specific volume now, so they should feel like pages in a real
   book: narrow reading column, generous margins, roman folios, quiet nav.
   ========================================================================== */
.book-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 2rem 6rem;
  min-height: 100vh;
}

/* Top navigation bar — folio on the left, volume marker on the right */
.book-nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--paper-shadow);
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.book-nav-back {
  color: var(--ink-muted);
  text-decoration: none;
  border-bottom: none;
  transition: color 0.3s;
}

.book-nav-back:hover {
  color: var(--forest-deep);
}

.book-nav-volume {
  font-style: italic;
  text-transform: none;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

/* Folio (page number) rendered as part of the page header */
.book-folio {
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.35em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 2rem;
}

/* The page header for reading pages (front matter, intro, etc) */
.book-page-header {
  text-align: center;
  margin-bottom: 4rem;
}

.book-page-eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.book-page-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--forest-deep);
  margin: 0 0 1rem;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.book-page-divider {
  width: 80px;
  height: 1px;
  background: var(--paper-shadow);
  margin: 2rem auto;
  position: relative;
}

.book-page-divider::before {
  content: '\2767';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
   background: #eee9da;
  padding: 0 0.75rem;
  color: var(--gold);
  font-size: 1.4rem;
}

.book-page-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--ink-muted);
  max-width: 48ch;
  margin: 1rem auto 0;
  line-height: 1.5;
}

/* Body prose for book reading pages */
.book-prose {
  font-family: 'Lora', serif;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--ink-soft);
}

.book-prose p {
  margin: 0 0 1.4em;
}

.book-prose p:last-child { margin-bottom: 0; }

/* Sub-headings within chapters — italic serif, quieter than the main title */
.book-prose h3 {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--forest-deep);
  margin: 3rem 0 1rem;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

/* Lists within prose — simple, italic markers, comfortable spacing */
.book-prose ul {
  margin: 1.5em 0;
  padding-left: 2.5em;
  list-style: none;
}

.book-prose ul li {
  position: relative;
  margin-bottom: 0.6em;
  line-height: 1.65;
}

.book-prose ul li::before {
  content: '\2767';
  position: absolute;
  left: -1.5em;
  top: 0.15em;
  color: var(--gold);
  font-style: italic;
  font-size: 0.85em;
  opacity: 0.7;
}

/* Ordered lists for procedural steps */
.book-prose ol {
  margin: 1.5em 0;
  padding-left: 2.5em;
  list-style: none;
  counter-reset: step;
}

.book-prose ol li {
  position: relative;
  margin-bottom: 0.6em;
  line-height: 1.65;
  counter-increment: step;
}

.book-prose ol li::before {
  content: counter(step) ".";
  position: absolute;
  left: -1.75em;
  top: 0;
  color: var(--gold);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1em;
  font-weight: 500;
}

/* Centred italic pull — a single emphatic line in the prose flow */
.book-prose .pull {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--forest-deep);
  text-align: center;
  margin: 2.5rem 0;
  letter-spacing: 0.01em;
}

/* Small caps opener for the first line of a section */
.book-prose .opener {
  font-variant: small-caps;
  letter-spacing: 0.05em;
  color: var(--forest-deep);
}

/* Cascade: a sequence of short rhythmic lines set as a single block */
.book-prose .cascade {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--forest-deep);
  text-align: center;
  margin: 2.5rem 0;
  letter-spacing: 0.01em;
}

.book-prose .cascade > span {
  display: block;
}

/* Series title page (Page I) — the most restrained page of the book */
.series-title-plate {
  min-height: calc(100vh - 10rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 2rem;
}

.series-title-logo {
  width: 180px;
  height: auto;
  margin-bottom: 3rem;
  opacity: 0.9;
}

.series-title-series {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--forest-deep);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.2;
  margin: 0 0 1.5rem;
}

.series-title-ornament {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  color: var(--gold);
  opacity: 0.85;
  margin: 0.5rem 0 1.5rem;
  line-height: 1;
}

.series-title-ornament::before {
  content: '\2767';
}

.series-title-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--gold);
  letter-spacing: 0.05em;
  margin: 2rem 0 3rem;
}

.series-title-volume {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 3rem;
}

.series-title-volume-title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  margin-top: 0.75rem;
  max-width: 30ch;
  line-height: 1.4;
}

/* Page-to-page navigation at the bottom */
.book-page-nav {
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--paper-shadow);
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  font-family: 'Cormorant Garamond', serif;
}

.book-page-nav-link {
  flex: 1;
  text-decoration: none;
  border-bottom: none;
  color: var(--ink-soft);
  transition: color 0.3s;
}

.book-page-nav-link:hover {
  color: var(--forest-deep);
}

.book-page-nav-link.previous { text-align: left; }
.book-page-nav-link.next { text-align: right; }
.book-page-nav-link.previous:only-child { margin-right: auto; }
.book-page-nav-link.next:only-child { margin-left: auto; }

.book-page-nav-label {
  font-style: italic;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.book-page-nav-title {
  font-size: 1.1rem;
  color: var(--ink);
  letter-spacing: 0.01em;
}

@media (max-width: 640px) {
  .book-page { padding: 2rem 1.5rem 4rem; }
  .book-nav {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
  }
  .series-title-plate { padding: 2rem 1.5rem; min-height: 70vh; }
}

/* ==========================================================================
   CONTENTS PAGE
   --------------------------------------------------------------------------
   The book's internal map. Parts are headed with Roman numerals; chapters
   listed beneath. Unbuilt chapters shown in a muted state so readers see
   the scope of the book while knowing what's currently available.
   ========================================================================== */
.book-contents {
  margin-top: 2rem;
}

.contents-part {
  margin-bottom: 3rem;
}

.contents-part:last-child {
  margin-bottom: 0;
}

.contents-part-title {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  color: var(--forest-deep);
  margin: 0 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--paper-shadow);
}

.contents-part-roman {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  min-width: 2.5rem;
}

.contents-part-label {
  font-size: 1.4rem;
  letter-spacing: 0.02em;
}

.contents-entry {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0.25rem 0.85rem 3.75rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px dotted rgba(31, 58, 41, 0.12);
  transition: color 0.3s, padding-left 0.3s;
}

.contents-entry:last-child {
  border-bottom: none;
}

.contents-entry:hover {
  color: var(--forest-deep);
  padding-left: 4rem;
  border-bottom-color: rgba(31, 58, 41, 0.12);
}

.contents-entry-title {
  flex: 1;
}

.contents-entry-arrow {
  color: var(--gold);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  font-size: 1rem;
}

.contents-entry:hover .contents-entry-arrow {
  opacity: 1;
  transform: translateX(4px);
}

.contents-entry-standalone {
  padding-left: 0.25rem;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--forest-deep);
  border-bottom: 1px solid var(--paper-shadow);
  padding-bottom: 1rem;
  padding-top: 0.5rem;
}

.contents-entry-standalone:hover {
  padding-left: 0.5rem;
}

/* Overview entries — lead each Part's chapter list, italic to signal
   they are the opening of the Part rather than a numbered chapter */
.contents-entry-overview {
  font-style: italic;
  color: var(--forest-deep);
}

.contents-entry-overview .contents-entry-title {
  color: var(--forest-deep);
}

.contents-entry-pending {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.75rem 0.25rem 0.75rem 3.75rem;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink-muted);
  border-bottom: 1px dotted rgba(31, 58, 41, 0.08);
  opacity: 0.65;
}

.contents-entry-pending:last-child {
  border-bottom: none;
}

@media (max-width: 640px) {
  .contents-entry,
  .contents-entry-pending {
    padding-left: 1rem;
    font-size: 1rem;
  }
  .contents-entry:hover {
    padding-left: 1.25rem;
  }
  .contents-part-roman {
    min-width: 2rem;
  }
  .contents-part-label {
    font-size: 1.2rem;
  }
}

/* ==========================================================================
   CONTRAST BLOCK — two side-by-side options offered as a decision point
   in the prose. Used for "the expensive fantasy vs the practical reality",
   or similar binary comparisons.
   ========================================================================== */
.contrast {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2.5rem 0;
  font-family: 'Cormorant Garamond', serif;
}

.contrast-column {
  background: rgba(31, 58, 41, 0.03);
  border: 1px solid rgba(31, 58, 41, 0.1);
  padding: 1.75rem 1.5rem;
  text-align: center;
}

.contrast-column-title {
  font-style: italic;
  font-size: 1.15rem;
  color: var(--forest-deep);
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--paper-shadow);
}

.contrast-column-body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0;
}

.contrast-column-body span {
  display: block;
}

@media (max-width: 640px) {
  .contrast {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .contrast-column {
    padding: 1.25rem 1rem;
  }
}

/* ==========================================================================
   CHAPTER COMPONENTS
   --------------------------------------------------------------------------
   Used in the practical chapters of Volume I. These components give the
   book's dense, instructional content a consistent visual grammar.
   ========================================================================== */

/* --- First Principle: a named thesis statement opening a chapter section --- */
.first-principle {
  margin: 2.5rem 0;
  padding: 1.5rem 2rem;
  background: rgba(31, 58, 41, 0.04);
  border-left: 3px solid var(--gold);
}

.first-principle-label {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.5rem;
}

.first-principle-body {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--forest-deep);
  margin: 0;
}

/* --- Checklist: tick-box items ready for the reader to complete --- */
.checklist {
  margin: 2rem 0;
  padding: 1.75rem 2rem;
  background: rgba(31, 58, 41, 0.035);
  border: 1px solid rgba(31, 58, 41, 0.12);
}

.checklist-title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--paper-shadow);
}

.checklist-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist-items li {
  position: relative;
  padding: 0.5rem 0 0.5rem 2rem;
  font-family: 'Lora', serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* Override the general ornament bullet — checklist items show an empty
   tick-box instead */
.book-prose .checklist-items li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 1rem;
  height: 1rem;
  border: 1.5px solid var(--ink-muted);
  background: transparent;
  border-radius: 1px;
  opacity: 1;
  color: transparent;
  font-size: 0;
}

/* --- Table: specifications, budget lists, comparative data --- */
.book-prose table {
  width: 100%;
  margin: 2rem 0;
  border-collapse: collapse;
  font-family: 'Lora', serif;
  font-size: 0.98rem;
  line-height: 1.5;
}

.book-prose th,
.book-prose td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--paper-shadow);
  vertical-align: top;
}

.book-prose th {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--forest-deep);
}

.book-prose tbody tr:last-child td {
  border-bottom: none;
}

.book-prose td:first-child {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--forest-deep);
  white-space: nowrap;
  padding-right: 1.5rem;
}

/* --- Safety warning: high-attention note for cautions and dangers --- */
.safety-note {
  margin: 2.5rem 0;
  padding: 1.75rem 2rem;
  background: rgba(109, 42, 42, 0.05);
  border: 1px solid rgba(109, 42, 42, 0.25);
  border-left: 4px solid var(--burgundy);
}

.safety-note-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.9rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin: 0 0 1rem;
  font-weight: 500;
}

.safety-note-label::before {
  content: '\26A0';
  font-size: 1.1rem;
  font-style: normal;
}

.safety-note-body {
  font-family: 'Lora', serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
}

.safety-note-body p {
  margin: 0 0 0.75em;
}

.safety-note-body p:last-child { margin-bottom: 0; }

.safety-note-body ul {
  margin: 0.75em 0;
  padding-left: 1.5em;
}

.safety-note-body ul li {
  padding: 0.15em 0;
}

.book-prose .safety-note-body ul li::before {
  content: '\2013';
  color: var(--burgundy);
  opacity: 0.7;
}

/* --- Side note: a quieter aside, not a warning --- */
.side-note {
  margin: 2rem 0;
  padding: 1.25rem 1.75rem;
  background: rgba(31, 58, 41, 0.035);
  border-left: 3px solid var(--paper-shadow);
  font-family: 'Lora', serif;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.side-note-label {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: block;
  margin-bottom: 0.5rem;
}

.side-note p {
  margin: 0 0 0.75em;
}

.side-note p:last-child { margin-bottom: 0; }

/* --- Image placeholder: sits where an illustration will go, clearly a
       placeholder but visually coherent with the page --- */
.image-placeholder {
  margin: 2.5rem 0;
  padding: 3rem 2rem;
  background: rgba(31, 58, 41, 0.04);
  border: 1px dashed rgba(31, 58, 41, 0.3);
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  color: var(--ink-muted);
}

.image-placeholder-label {
  font-style: italic;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.book-prose .image-placeholder-description {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--ink-soft);
  max-width: 40ch;
  margin: 0 auto;
  line-height: 1.5;
  text-align: center;
}

/* --- Illustration: rendered image, click to expand in lightbox.
       Replaces image-placeholder once an actual image is available. --- */
.illustration {
  margin: 2.75rem 0;
  padding: 0;
  text-align: center;
}

.illustration-trigger {
  display: inline-block;
  max-width: 100%;
  margin: 0;
  padding: 0;
  background: none;
  border: 1px solid var(--paper-shadow);
  box-shadow: 0 1px 3px rgba(31, 32, 20, 0.08);
  cursor: zoom-in;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  font: inherit;
  color: inherit;
  line-height: 0; /* prevents baseline gap below the image */
}

.illustration-trigger:hover,
.illustration-trigger:focus-visible {
  box-shadow: 0 4px 12px rgba(31, 32, 20, 0.14);
  transform: translateY(-1px);
  outline: none;
}

.illustration-trigger:focus-visible {
  box-shadow: 0 0 0 2px var(--gold), 0 4px 12px rgba(31, 32, 20, 0.14);
}

.illustration-trigger img {
  display: block;
  max-width: 100%;
  max-height: 720px;
  width: auto;
  height: auto;
  margin: 0;
}

.illustration-zoom {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(242, 236, 222, 0.92);
  color: var(--forest);
  border: 1px solid var(--paper-shadow);
  border-radius: 999px;
  font-size: 0.95rem;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(31, 32, 20, 0.12);
  pointer-events: none;
}

.illustration-caption {
  margin: 1rem auto 0;
  max-width: 40ch;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink-muted);
  text-align: center;
}

/* --- Lightbox: fullscreen overlay with zoom, pan and print --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  background: rgba(20, 21, 14, 0.92);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.lightbox.is-open {
  display: block;
  opacity: 1;
}

.lightbox-stage {
  position: absolute;
  inset: 0;
  overflow: auto;
  display: flex;
  align-items: safe center;
  justify-content: safe center;
  cursor: grab;
  touch-action: pan-x pan-y; /* finger scrolling pans; pinch never zooms */
  -webkit-overflow-scrolling: touch;
}

.lightbox-stage.is-panning {
  cursor: grabbing;
}

.lightbox-image {
  display: block;
  max-width: none;
  max-height: none;
  background: var(--paper);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.lightbox-toolbar {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.5rem;
  background: var(--paper);
  border: 1px solid var(--paper-shadow);
  border-radius: 999px;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.lightbox-btn {
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--forest);
  color: var(--paper);
  border: none;
  border-radius: 999px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lightbox-btn-text {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  padding: 0 0.9rem;
}

.lightbox-btn-icon {
  padding: 0;
}

.lightbox-btn svg {
  width: 1.15rem;
  height: 1.15rem;
}

.lightbox-sep {
  width: 1px;
  height: 1.4rem;
  margin: 0 0.15rem;
  background: var(--paper-shadow);
}

.lightbox-btn:hover,
.lightbox-btn:focus-visible {
  background: var(--forest-deep);
  outline: none;
}

.lightbox-readout {
  min-width: 3.4rem;
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: var(--forest);
  font-variant-numeric: tabular-nums;
}

.lightbox-close {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  color: var(--forest);
  border: 1px solid var(--paper-shadow);
  border-radius: 999px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: background 0.2s ease;
  z-index: 2;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: var(--paper-deep);
  outline: none;
}

/* --- Per-illustration print button. The script wraps each
   .illustration-trigger in an .illustration-stage and adds this button,
   so it sits on the image (portrait or landscape), clear of the
   bottom-right zoom glyph. --- */
.illustration-stage {
  position: relative;
  display: inline-block;
  max-width: 100%;
  line-height: 0;
}

.illustration-print {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: var(--forest);
  color: var(--paper);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  opacity: 0.92;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: opacity 0.2s ease, background 0.2s ease;
  z-index: 2;
}

.illustration-print svg {
  width: 1.05rem;
  height: 1.05rem;
}

.illustration-print:hover,
.illustration-print:focus-visible {
  background: var(--forest-deep);
  opacity: 1;
  outline: none;
}

/* Keep the on-screen controls off any printed page. */
@media print {
  .illustration-print,
  .illustration-zoom,
  .lightbox {
    display: none !important;
  }
}

/* --- Drill: small timed exercise block ("10-Minute Action Plan") --- */
.drill {
  margin: 3rem 0;
  padding: 2rem;
  background: rgba(179, 141, 66, 0.05);
  border: 1px solid rgba(179, 141, 66, 0.25);
  text-align: center;
}

.drill-timer {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.5rem;
}

.drill-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--forest-deep);
  margin: 0 0 1rem;
  line-height: 1.2;
}

.drill-divider {
  width: 40px;
  height: 1px;
  background: var(--paper-shadow);
  margin: 1rem auto 1.5rem;
}

.drill-body {
  font-family: 'Lora', serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.drill-body p {
  margin: 0 0 0.75em;
}

.drill-body p:last-child { margin-bottom: 0; }

.drill-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  max-width: 24em;
  margin-left: auto;
  margin-right: auto;
}

.drill-body ul li {
  padding: 0.35em 0 0.35em 1.5em;
  position: relative;
}

.book-prose .drill-body ul li::before {
  content: '\2767';
  position: absolute;
  left: 0;
  top: 0.35em;
  color: var(--gold);
  font-size: 0.85em;
  opacity: 0.7;
}

/* --- Common Mistakes: muted list of pitfalls at the end of a chapter --- */
.common-mistakes {
  margin: 3rem 0;
  padding: 1.75rem 2rem;
  border-top: 1px solid var(--paper-shadow);
  border-bottom: 1px solid var(--paper-shadow);
}

.common-mistakes-title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 1rem;
}

.common-mistakes ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.common-mistakes li {
  padding: 0.4em 0 0.4em 1.5em;
  position: relative;
  font-family: 'Lora', serif;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.book-prose .common-mistakes li::before {
  content: '\2715';
  position: absolute;
  left: 0;
  top: 0.4em;
  color: var(--burgundy);
  opacity: 0.6;
  font-size: 0.9em;
}

/* --- Chapter Summary: distilled end-of-chapter takeaway --- */
.chapter-summary {
  margin: 3rem 0 1rem;
  padding: 2rem;
  background: rgba(31, 58, 41, 0.04);
  border-top: 1px solid var(--paper-shadow);
  border-bottom: 1px solid var(--paper-shadow);
  text-align: center;
}

.chapter-summary-label {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}

.chapter-summary-body {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--forest-deep);
  max-width: 40ch;
  margin: 0 auto;
}

.chapter-summary-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  text-align: left;
  display: inline-block;
}

.chapter-summary-body ul li {
  padding: 0.2em 0 0.2em 1.5em;
  position: relative;
}

.book-prose .chapter-summary-body ul li::before {
  content: '\2767';
  position: absolute;
  left: 0;
  top: 0.35em;
  color: var(--gold);
  font-size: 0.85em;
  opacity: 0.7;
}

.chapter-summary-closing {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  color: var(--forest-deep);
  margin: 1.5rem 0 0;
}

/* --- End-of-chapter reflection: a question prompt for the reader --- */
.reflection {
  margin: 3rem 0 2rem;
  padding: 2rem;
  text-align: center;
}

.reflection-label {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.25rem;
}

.book-prose .reflection-question {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.6;
  color: var(--forest-deep);
  max-width: 40ch;
  margin: 0 auto 1.25rem;
  text-align: center;
}

.reflection-prompt {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* --- Colophon: a small formal closing inscription at the end of a volume.
       Designed to sit once at the end of the Afterword, signalling completion
       with typographic restraint rather than celebration. --- */
.colophon {
  margin: 5rem auto 2rem;
  padding: 3rem 1.5rem;
  max-width: 30rem;
  text-align: center;
  border-top: 1px solid var(--paper-shadow);
  border-bottom: 1px solid var(--paper-shadow);
}

.colophon-ornament {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  color: var(--gold);
  opacity: 0.75;
  margin-bottom: 1.75rem;
  line-height: 1;
}

.colophon-series {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.6rem;
}

.colophon-volume {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  color: var(--ink-soft);
  letter-spacing: 0.12em;
  margin: 0 0 1.5rem;
}

.colophon-divider {
  width: 2.5rem;
  height: 1px;
  background-color: var(--paper-shadow);
  margin: 0 auto 1.5rem;
}

.colophon-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--forest);
  margin: 0 0 0.6rem;
  letter-spacing: 0.02em;
}

.colophon-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-muted);
  line-height: 1.5;
  margin: 0;
}

/* --- Responsive rules for chapter components --- */
@media (max-width: 640px) {
  .first-principle,
  .checklist,
  .safety-note,
  .drill,
  .chapter-summary,
  .common-mistakes {
    padding: 1.25rem 1rem;
  }
  .first-principle-body {
    font-size: 1.1rem;
  }
  .drill-title {
    font-size: 1.2rem;
  }
  .reflection-question {
    font-size: 1.15rem;
  }
  .image-placeholder {
    padding: 2rem 1rem;
  }
  .book-prose table {
    font-size: 0.9rem;
  }
  .colophon {
    padding: 2rem 1rem;
    margin-top: 3rem;
  }
  .colophon-title {
    font-size: 1.25rem;
  }
  .illustration {
    margin: 2rem 0;
  }
  .lightbox-close {
    width: 2.25rem;
    height: 2.25rem;
    top: 0.75rem;
    right: 0.75rem;
  }
  .lightbox-toolbar {
    bottom: 0.9rem;
  }
  .lightbox-btn {
    min-width: 2.7rem;
    height: 2.7rem;
  }
  .illustration-print {
    width: 2.4rem;
    height: 2.4rem;
  }
  .book-prose th,
  .book-prose td {
    padding: 0.6rem 0.5rem;
  }
}

/* ==========================================================================
   PART CHAPTER LIST — bookish list of chapters on a Part preview page
   ========================================================================== */
.part-chapter-list {
  margin: 3rem 0 1rem;
}

.part-chapter {
  display: grid;
  grid-template-columns: 15rem 1fr auto;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.5rem 1rem;
  font-family: 'Cormorant Garamond', serif;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--paper-shadow);
  transition: padding 0.3s, color 0.3s;
}

.part-chapter:hover {
  color: var(--forest-deep);
  padding-left: 1.5rem;
  border-bottom-color: var(--forest-deep);
}

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

.part-chapter-num {
  font-style: italic;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}

.part-chapter-title {
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.3;
}

.part-chapter-arrow {
  color: var(--gold);
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
}

.part-chapter:hover .part-chapter-arrow {
  opacity: 1;
  transform: translateX(4px);
}

@media (max-width: 640px) {
  .part-chapter {
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
    padding: 1.25rem 0.5rem;
  }
  .part-chapter-num {
    grid-column: 1 / -1;
    min-width: 0;
    margin-bottom: 0.3rem;
  }
  .part-chapter-title {
    font-size: 1.15rem;
  }
}
