/* THE PIVOT — book interior patterns
   Layered on top of ../ebook/ebook.css (chrome, type primitives, palette).
   Pages: 1240 × 1754 (A4 portrait) via deck-stage. */
@import url("../ebook/ebook.css");

/* ================================================================
   RUNNING HEAD / FOLIO refinements
   ================================================================ */
.chrome-top .rh-title { color: var(--ci-slate); }
.dark .chrome-top .rh-title { color: rgba(246,242,234,0.7); }

/* ================================================================
   CHAPTER OPENER (dark)
   ================================================================ */
.chapter-open {
  position: absolute; inset: 0;
  padding: 200px 110px 150px;
  display: grid; grid-template-rows: auto 1fr auto; gap: 0;
}
.chapter-open .co-top {
  display: flex; align-items: baseline; justify-content: space-between;
}
.chapter-open .co-part {
  font-family: var(--font-sans); font-weight: 600;
  font-size: 12px; letter-spacing: 0.5em; text-transform: uppercase;
  color: var(--ci-copper);
}
.chapter-open .co-of {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.3em;
  color: rgba(246,242,234,0.45); text-transform: uppercase;
}
.chapter-open .co-mid { align-self: center; }
.chapter-open .co-kicker {
  font-family: var(--font-sans); font-weight: 600;
  font-size: 13px; letter-spacing: 0.46em; text-transform: uppercase;
  color: rgba(246,242,234,0.55); margin-bottom: 30px;
}
.chapter-open .co-num {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: 300px; line-height: 0.82; letter-spacing: -0.03em;
  color: var(--ci-copper); margin: 0 0 8px -6px;
}
.chapter-open .co-title {
  font-family: var(--font-serif); font-weight: 400;
  font-size: 96px; line-height: 0.98; letter-spacing: -0.02em;
  color: var(--ci-cream); margin: 0; max-width: 12ch;
}
.chapter-open .co-title em { font-style: italic; color: var(--ci-copper); }
.chapter-open .co-epi {
  margin: 52px 0 0; padding-top: 40px; max-width: 760px;
  border-top: 1px solid rgba(184,130,90,0.45);
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: 33px; line-height: 1.4; color: rgba(246,242,234,0.85);
  letter-spacing: -0.005em;
}
.chapter-open .co-foot {
  display: flex; align-items: flex-end; justify-content: space-between;
}
.chapter-open .co-foot .mark img { height: 24px; opacity: 0.85; }
.chapter-open .co-foot .lbl {
  font-family: var(--font-sans); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.42em; text-transform: uppercase; color: rgba(246,242,234,0.5);
}

/* ================================================================
   BODY PAGE — two-column literary prose
   ================================================================ */
.chapter-body {
  position: absolute; inset: 0;
  padding: 170px 88px 140px;
  display: flex; flex-direction: column;
  justify-content: center; /* vertically centre the text block on the page */
}
.prose {
  columns: 2; column-gap: 60px; column-fill: balance;
  flex: 0 1 auto;
}
.prose > * { break-inside: avoid-column; }
.prose p {
  font-family: var(--font-sans); font-weight: 400;
  font-size: 18px; line-height: 1.72; color: var(--ci-slate);
  margin: 0 0 19px; text-wrap: pretty;
  break-inside: auto;
}
.prose p.tight { margin-bottom: 19px; }
/* opening drop cap */
.prose.lead-cap > p:first-of-type::first-letter {
  font-family: var(--font-serif); font-weight: 400; font-style: normal;
  font-size: 104px; line-height: 0.74;
  float: left; margin: 10px 14px -4px 0; color: var(--ci-copper);
}
/* dialogue / emphasis line */
.prose .say {
  font-family: var(--font-serif); font-style: italic;
  color: var(--ci-navy); font-size: 19px; line-height: 1.5;
}
.prose em { font-style: italic; color: var(--ci-navy); }

/* section break — sits inside the column flow so reading order stays clear */
.prose .brk {
  margin: 26px 0;
  display: flex; align-items: center; gap: 16px;
}
.prose .brk::before, .prose .brk::after {
  content: ""; flex: 1; height: 1px; background: var(--ci-light-beige);
}
.prose .brk span {
  font-family: var(--font-sans); font-weight: 600;
  font-size: 11px; letter-spacing: 0.46em; text-transform: uppercase;
  color: var(--ci-copper); white-space: nowrap;
}

/* full-width pull quote — RULE: always at the top or bottom of a page,
   never mid-page (it breaks the two-column reading flow). Place the
   .pull div as a direct child of .chapter-body, before or after .prose. */
.prose .pull, .chapter-body > .pull {
  column-span: all; margin: 18px 0 26px;
  padding: 30px 0; border-top: 1px solid var(--ci-copper);
  border-bottom: 1px solid var(--ci-copper);
  text-align: center;
}
.chapter-body > .pull { flex: 0 0 auto; margin: 0 0 50px; }
.prose .pull p, .chapter-body > .pull p {
  font-family: var(--font-serif); font-weight: 400; font-style: italic;
  font-size: 40px; line-height: 1.18; color: var(--ci-navy);
  margin: 0; max-width: 22ch; margin-inline: auto; letter-spacing: -0.01em;
}
.prose .pull p em, .chapter-body > .pull p em { color: var(--ci-copper); font-style: italic; }

/* ================================================================
   CLOSING STATEMENT (dark, full-bleed)
   ================================================================ */
.chapter-close {
  position: absolute; inset: 0;
  padding: 230px 110px 150px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.chapter-close .cc-mark {
  font-family: var(--font-sans); font-weight: 600;
  font-size: 11.5px; letter-spacing: 0.5em; text-transform: uppercase;
  color: var(--ci-copper);
}
.chapter-close .cc-h {
  font-family: var(--font-serif); font-weight: 400;
  font-size: 80px; line-height: 1.08; letter-spacing: -0.018em;
  color: var(--ci-cream); margin: 0; max-width: 18ch;
}
.chapter-close .cc-h em { font-style: italic; color: var(--ci-copper); }
.chapter-close .cc-sub {
  display: block; margin-top: 34px;
  font-family: var(--font-serif); font-style: italic;
  font-size: 33px; line-height: 1.35; color: rgba(246,242,234,0.68);
  letter-spacing: -0.005em; max-width: 24ch;
}
.chapter-close .cc-foot {
  display: flex; align-items: flex-end; justify-content: space-between;
  padding-top: 30px; border-top: 1px solid rgba(184,130,90,0.45);
}
.chapter-close .cc-foot .nm {
  font-family: var(--font-sans); font-size: 11px; font-weight: 600;
  letter-spacing: 0.42em; text-transform: uppercase; color: rgba(246,242,234,0.6);
}
.chapter-close .cc-foot .nm strong {
  display: block; font-family: var(--font-serif); font-style: italic;
  font-weight: 400; font-size: 26px; letter-spacing: -0.005em;
  color: var(--ci-cream); margin-top: 8px; text-transform: none;
}
.chapter-close .cc-foot .pg {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.3em;
  color: rgba(246,242,234,0.5);
}
