/* The book page: deep magenta and gold, with the preview set on cream paper. */
.book {
  --navfill: #2a0420;
  --deep: #2a0420;
  --magenta: #d0218f;
  --magenta-hot: #ff4fc0;
  --gold: #f5c84b;
  --gold-hot: #ffe08a;
  --ink: #f9ecf3;
  --ink-soft: rgba(249, 236, 243, 0.86);
  --line: rgba(245, 200, 75, 0.65);
  --panel: rgba(42, 4, 32, 0.78);
  --shadow: #17020f;
  min-height: 100vh; display: flex; flex-direction: column;
  background:
    radial-gradient(70% 50% at 80% 0%, rgba(208, 33, 143, 0.55), transparent 70%),
    radial-gradient(60% 40% at 0% 45%, rgba(208, 33, 143, 0.3), transparent 70%),
    linear-gradient(#3a062d, #2a0420 40%, #1c0216);
  background-attachment: fixed;
}
html:has(.book) { background: #2a0420; }
.book .topbar { position: static; }
.book main { flex: 1; }
.book footer { background: rgba(23, 2, 15, 0.85); }
.book .btn { color: #2a0420; box-shadow: 0 5px 0 var(--shadow), 0 0 30px rgba(245, 200, 75, 0.35); }
.book .btn.ghost { background: rgba(42, 4, 32, 0.6); color: var(--gold); box-shadow: inset 0 0 0 2px var(--gold); }
.book .btn.ghost:hover { background: rgba(245, 200, 75, 0.16); }

/* ---- cover and title ---- */
.bhero { padding-block: clamp(20px, 4vw, 56px) clamp(36px, 6vw, 72px); }
.bhero .wrap { display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.bhero .cover {
  width: 100%; height: auto; border-radius: 6px; rotate: -2.5deg;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 70px rgba(208, 33, 143, 0.55);
}
.bhero .eyebrow { color: var(--magenta-hot); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; font-style: normal; font-size: 0.85em; }
.bhero h1 { font-size: clamp(2.6rem, 1.2rem + 4.4vw, 4.6rem); }
.bhero .sub { font-size: 1.35em; line-height: 1.25; margin-top: 0.6em; max-width: 24ch; }
.bhero .authors { margin-top: 1em; color: var(--ink-soft); letter-spacing: 0.06em; }
.bhero .cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.6em; }

/* ---- words from the back cover ---- */
.blurb { text-align: center; padding-block: clamp(28px, 5vw, 64px); }
.blurb .wrap { max-width: 800px; }
.blurb p { font-style: italic; font-size: 1.12em; margin-top: 0.9em; text-wrap: balance; }
.blurb hr { border: 0; height: 2px; width: 180px; margin: 1.6em auto 0.4em; background: linear-gradient(90deg, transparent, var(--gold), transparent); }

/* ---- the preview ---- */
.preview { text-align: center; }
.preview h2 { margin-bottom: 0.5em; }
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin: 0 auto 18px; }
.pager.bottom { margin: 18px auto 0; }
.pager[hidden] { display: none; }
.pager .where { min-width: 15em; color: var(--ink-soft); font-style: italic; }
.pager button {
  font: inherit; font-size: 1.2rem; line-height: 1; width: 2.6em; height: 2.6em; cursor: pointer;
  color: var(--gold); background: var(--panel); border: 1.5px solid var(--line); border-radius: 50%;
  transition: background 0.2s, color 0.2s;
}
.pager button:hover:not(:disabled) { background: var(--gold); color: var(--deep); }
.pager button:disabled { opacity: 0.35; cursor: default; }
.pager button:focus-visible { outline: 3px solid var(--gold-hot); outline-offset: 3px; }

.sheets { display: grid; gap: 28px; }
.sheet {
  max-width: 760px; width: 100%; margin-inline: auto; text-align: left;
  background: #fbf6ec; color: #1d1418;
  font-family: Georgia, "Times New Roman", serif; font-size: clamp(1rem, 0.95rem + 0.25vw, 1.12rem); font-weight: 400; line-height: 1.6;
  padding: clamp(28px, 7vw, 76px) clamp(22px, 7vw, 76px);
  border-radius: 4px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(245, 200, 75, 0.35);
}
.sheet[hidden] { display: none; }
.sheet h3 { color: #1d1418; text-align: center; font-family: inherit; font-size: 1.3em; font-variant: small-caps; letter-spacing: 0.03em; margin-bottom: 1.2em; }
.sheet h4 { font-size: 1em; font-weight: 700; margin: 1.5em 0 0.8em; }
.sheet p { margin-top: 0.9em; text-indent: 1.2em; text-align: justify; hyphens: auto; }
.sheet ul { margin: 0; padding-left: 2.2em; }
.sheet li { margin-top: 0.9em; }
.sheet .call { text-indent: 0; text-align: center; font-weight: 700; font-size: 1.15em; margin: 2em 0 1.6em; text-wrap: balance; }
.sheet .blank { height: clamp(120px, 26vw, 260px); margin: 1.4em 0; border: 1px dashed rgba(29, 20, 24, 0.25); border-radius: 4px; }
.sheet .ends { text-indent: 0; text-align: center; margin-top: 3em; font-style: italic; color: #a3157a; }

.title-page { text-align: center; min-height: min(100vw, 760px); display: flex; flex-direction: column; justify-content: center; }
.title-page[hidden] { display: none; }
.title-page p { text-indent: 0; text-align: center; }
.title-page .t { font-size: clamp(1.8rem, 1.2rem + 3vw, 2.8rem); font-weight: 700; line-height: 1.5; }
.title-page .s { font-style: italic; font-size: 1.15em; margin-top: 3em; }
.title-page .a { font-weight: 700; margin-top: 5em; line-height: 1.9; }

.toc { list-style: none; margin: 0; padding: 0; font-size: 0.92em; }
.toc li { display: flex; align-items: baseline; gap: 6px; margin: 0; padding: 0.22em 0; }
.toc li i { flex: 1; border-bottom: 1px dotted rgba(29, 20, 24, 0.45); translate: 0 -0.25em; min-width: 1em; }
.toc li b { font-weight: 400; font-variant-numeric: tabular-nums; }
.toc .ritual span { font-style: italic; color: #a3157a; padding-left: 1em; }

.preview .dl { margin-top: 20px; font-style: italic; }
.preview .dl a { color: var(--gold); }

@media (max-width: 760px) {
  .bhero .wrap { grid-template-columns: 1fr; text-align: center; }
  .bhero .cover { width: min(62%, 260px); margin-inline: auto; }
  .bhero .sub { margin-inline: auto; }
  .bhero .cta-row { justify-content: center; }
  .pager .where { min-width: 0; flex: 1; font-size: 0.95em; }
  .sheet p { text-align: left; }
}
