/* Shared BOOK typography -- the single source for "what a chapter looks like".
   Applied to the on-screen Quill editor (.ql-editor) AND, in Stage 4, the EPUB chapter XHTML
   (.book-prose), so the screen and the EPUB render identically (screen == EPUB).

   CONCRETE values only (NO var(--) tokens): an EPUB reader has no app tokens, so the same
   stylesheet must resolve standalone. Values match the house serif (--serif) and ink (--ink):
     --serif  'Newsreader', 'Source Serif Pro', Georgia, serif
     --ink    #1B1B1A      --ink-4  #6D6C68
   Newsreader is a real loaded webfont on screen; Georgia/Times are the EPUB-safe fallback. */

.ql-editor,
.book-prose {
  font-family: 'Newsreader', 'Source Serif Pro', Georgia, 'Times New Roman', serif;
  font-size: 1.125rem;
  line-height: 1.7;
  color: #1B1B1A;
  max-width: 34em;
  margin: 0 auto;
}

/* First-line indent, no blank line between paragraphs (trade-book convention). */
.ql-editor p,
.book-prose p { margin: 0; text-indent: 1.4em; }

/* The first paragraph of the chapter and the first after every scene break are flush-left. */
.ql-editor p:first-child,
.book-prose p:first-child { text-indent: 0; }
.ql-editor hr.scene-break + p,
.book-prose hr.scene-break + p { text-indent: 0; }

/* Scene break: a centered "* * *" ornament (no rule line). The raw *** never reaches the reader. */
.ql-editor hr.scene-break,
.book-prose hr.scene-break {
  border: 0;
  height: 0;
  margin: 1.6em 0;
  text-align: center;
}
.ql-editor hr.scene-break::before,
.book-prose hr.scene-break::before {
  content: "* * *";
  letter-spacing: 0.5em;
  color: #6D6C68;
  font-size: 0.9em;
}

/* Block quote (A2): in-chapter epigraph / letter. Indented + italic; flush-left, no first-indent.
   Screen (.ql-editor) and EPUB (.book-prose) share it. Concrete values. */
.ql-editor blockquote,
.book-prose blockquote {
  margin: 1.2em 1.6em;
  padding-left: 1em;
  border-left: 2px solid #D6D5D1;
  font-style: italic;
  color: #3D3D3A;
  text-indent: 0;
}
.ql-editor blockquote + p,
.book-prose blockquote + p { text-indent: 0; }

/* EPUB structural pages (Stage 4). These classes appear ONLY in the exported book, never in the
   on-screen editor (which renders .ql-editor) -- so they are inert on screen. Concrete values. */
.book-page { max-width: 34em; margin: 0 auto; }
.chapter-head { text-align: center; margin: 2em 0 2.5em; }
.chapter-num { font-size: 1.5em; color: #6D6C68; margin: 0 0 0.3em; }
.chapter-title { font-size: 1.4em; font-weight: 600; margin: 0; }
.half-title, .title-page { text-align: center; margin-top: 6em; }
.book-title { font-size: 2em; font-weight: 700; }
.book-subtitle { font-style: italic; color: #3D3D3A; }
.byline { margin-top: 1.5em; }
.book-publisher { margin-top: 4em; color: #6D6C68; }
.section-title { text-align: center; font-weight: 600; margin: 2em 0 1.5em; }
.copyright .copyright-prose { font-size: 0.85em; text-align: center; color: #3D3D3A; }
.copyright .copyright-prose p { text-indent: 0; margin: 0 0 1em; }
.epub-cover { text-align: center; margin: 0; }
.epub-cover img { max-width: 100%; height: auto; }
.cr-logo { max-width: 120px; }
.epigraph { margin-top: 4em; font-style: italic; }
.epigraph .epigraph-attr { text-align: right; font-style: normal; }
.also-by { list-style: none; padding: 0; text-align: center; }
