/* Chapter-opening specimens use the fonts, sizes, spacing and colors from Publish. */
.book-proof { box-sizing: border-box; padding: clamp(1.4rem,5%,3.4rem); background: #fff; color: var(--book-ink); font: var(--book-size)/var(--book-leading) var(--book-body); overflow-wrap: anywhere; color-scheme: light; }
.book-proof * { box-sizing: border-box; }
.book-proof .running-title { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--book-accent); font-size: .8em; border-bottom: 1px solid #ccc; padding-bottom: .6rem; }
.book-proof .chapter-opening { text-align: var(--book-title-align); padding-top: var(--book-sink); margin-bottom: var(--book-heading-gap); break-inside: avoid; break-after: avoid; }
.book-proof .chapter-ornament, .book-proof .chapter-mark { margin: 0; color: var(--book-accent); }
.book-proof .chapter-mark { font: .85em/1.4 var(--book-body); letter-spacing: .12em; }
.book-proof .proof-title { margin: .3em 0 0; color: var(--book-heading-ink); font: 700 var(--book-title-size)/1.16 var(--book-heading); }
.book-proof .body-copy p { margin: 0 0 var(--book-paragraph-gap); text-indent: var(--book-indent); text-align: var(--book-align); hyphens: var(--book-hyphens); white-space: pre-wrap; orphans: 2; widows: 2; }
.book-proof .body-copy p:first-child { text-indent: var(--book-first-indent); }
.book-proof[data-size="large"] { font-size: calc(var(--book-size) * 1.2); }
.book-proof[data-spacing="open"] { line-height: calc(var(--book-leading) * 1.2); }
.book-proof [hidden] { display: none; }
@media print { .book-proof { padding: 0; } }

.book-proof[data-edition="literary-fiction"] {
  --book-body: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --book-heading: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --book-size: 11.5pt;
  --book-title-size: 23pt;
  --book-leading: 1.4;
  --book-ink: #211f1c;
  --book-heading-ink: #292622;
  --book-accent: #544b40;
  --book-align: justify;
  --book-title-align: center;
  --book-indent: 1.2em;
  --book-first-indent: 0em;
  --book-paragraph-gap: 0em;
  --book-hyphens: auto;
  --book-sink: 4.0em;
  --book-heading-gap: 1.65em;
}

.book-proof[data-edition="fantasy"] {
  --book-body: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --book-heading: Georgia, "Times New Roman", serif;
  --book-size: 11pt;
  --book-title-size: 26pt;
  --book-leading: 1.4;
  --book-ink: #211f1c;
  --book-heading-ink: #2e392d;
  --book-accent: #495941;
  --book-align: justify;
  --book-title-align: center;
  --book-indent: 1.2em;
  --book-first-indent: 0em;
  --book-paragraph-gap: 0em;
  --book-hyphens: auto;
  --book-sink: 4.0em;
  --book-heading-gap: 1.65em;
}

.book-proof[data-edition="fantasy"] .body-copy p:first-child::first-letter { float: left; font-size: 3em; line-height: .85; margin: .07em .08em 0 0; color: var(--book-accent); font-family: var(--book-heading); }

.book-proof[data-edition="science-fiction"] {
  --book-body: Cambria, Georgia, serif;
  --book-heading: Arial, Helvetica, sans-serif;
  --book-size: 11pt;
  --book-title-size: 25pt;
  --book-leading: 1.35;
  --book-ink: #211f1c;
  --book-heading-ink: #292622;
  --book-accent: #405967;
  --book-align: justify;
  --book-title-align: left;
  --book-indent: 1.2em;
  --book-first-indent: 0em;
  --book-paragraph-gap: 0em;
  --book-hyphens: auto;
  --book-sink: 1.67em;
  --book-heading-gap: 1.65em;
}

.book-proof[data-edition="mystery"] {
  --book-body: Georgia, "Times New Roman", serif;
  --book-heading: Cambria, Georgia, serif;
  --book-size: 11pt;
  --book-title-size: 22pt;
  --book-leading: 1.35;
  --book-ink: #211f1c;
  --book-heading-ink: #292622;
  --book-accent: #544b40;
  --book-align: justify;
  --book-title-align: center;
  --book-indent: 1em;
  --book-first-indent: 0em;
  --book-paragraph-gap: 0em;
  --book-hyphens: auto;
  --book-sink: 2.0em;
  --book-heading-gap: 1.65em;
}

.book-proof[data-edition="thriller"] {
  --book-body: Cambria, Georgia, serif;
  --book-heading: Arial, Helvetica, sans-serif;
  --book-size: 11pt;
  --book-title-size: 25pt;
  --book-leading: 1.3;
  --book-ink: #211f1c;
  --book-heading-ink: #292622;
  --book-accent: #544b40;
  --book-align: justify;
  --book-title-align: left;
  --book-indent: 1em;
  --book-first-indent: 0em;
  --book-paragraph-gap: 0em;
  --book-hyphens: auto;
  --book-sink: 1.0em;
  --book-heading-gap: 1em;
}

.book-proof[data-edition="suspense"] {
  --book-body: Georgia, "Times New Roman", serif;
  --book-heading: "Trebuchet MS", Arial, sans-serif;
  --book-size: 11pt;
  --book-title-size: 21pt;
  --book-leading: 1.4;
  --book-ink: #211f1c;
  --book-heading-ink: #292622;
  --book-accent: #544b40;
  --book-align: justify;
  --book-title-align: center;
  --book-indent: 1.2em;
  --book-first-indent: 0em;
  --book-paragraph-gap: 0em;
  --book-hyphens: auto;
  --book-sink: 3.33em;
  --book-heading-gap: 2em;
}

.book-proof[data-edition="horror"] {
  --book-body: Georgia, "Times New Roman", serif;
  --book-heading: "Times New Roman", Times, serif;
  --book-size: 11pt;
  --book-title-size: 28pt;
  --book-leading: 1.35;
  --book-ink: #211f1c;
  --book-heading-ink: #281f20;
  --book-accent: #544245;
  --book-align: justify;
  --book-title-align: center;
  --book-indent: 1.2em;
  --book-first-indent: 0em;
  --book-paragraph-gap: 0em;
  --book-hyphens: auto;
  --book-sink: 5.0em;
  --book-heading-gap: 2.25em;
}

.book-proof[data-edition="romance"] {
  --book-body: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --book-heading: Georgia, "Times New Roman", serif;
  --book-size: 11pt;
  --book-title-size: 23pt;
  --book-leading: 1.4;
  --book-ink: #211f1c;
  --book-heading-ink: #292622;
  --book-accent: #70505b;
  --book-align: justify;
  --book-title-align: center;
  --book-indent: 1.2em;
  --book-first-indent: 0em;
  --book-paragraph-gap: 0em;
  --book-hyphens: auto;
  --book-sink: 2.67em;
  --book-heading-gap: 1.65em;
}

.book-proof[data-edition="adventure"] {
  --book-body: Georgia, "Times New Roman", serif;
  --book-heading: "Trebuchet MS", Arial, sans-serif;
  --book-size: 11pt;
  --book-title-size: 25pt;
  --book-leading: 1.35;
  --book-ink: #211f1c;
  --book-heading-ink: #292622;
  --book-accent: #544b40;
  --book-align: justify;
  --book-title-align: left;
  --book-indent: 1.2em;
  --book-first-indent: 0em;
  --book-paragraph-gap: 0em;
  --book-hyphens: auto;
  --book-sink: 1.67em;
  --book-heading-gap: 1.15em;
}

.book-proof[data-edition="historical-fiction"] {
  --book-body: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --book-heading: "Times New Roman", Times, serif;
  --book-size: 11.5pt;
  --book-title-size: 25pt;
  --book-leading: 1.4;
  --book-ink: #211f1c;
  --book-heading-ink: #292622;
  --book-accent: #544b40;
  --book-align: justify;
  --book-title-align: center;
  --book-indent: 1.2em;
  --book-first-indent: 0em;
  --book-paragraph-gap: 0em;
  --book-hyphens: auto;
  --book-sink: 3.67em;
  --book-heading-gap: 1.65em;
}

.book-proof[data-edition="short-stories"] {
  --book-body: Georgia, "Times New Roman", serif;
  --book-heading: Georgia, "Times New Roman", serif;
  --book-size: 11pt;
  --book-title-size: 22pt;
  --book-leading: 1.35;
  --book-ink: #211f1c;
  --book-heading-ink: #292622;
  --book-accent: #544b40;
  --book-align: justify;
  --book-title-align: center;
  --book-indent: 1.2em;
  --book-first-indent: 0em;
  --book-paragraph-gap: 0em;
  --book-hyphens: auto;
  --book-sink: 2.67em;
  --book-heading-gap: 1.8em;
}

.book-proof[data-edition="poetry"] {
  --book-body: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --book-heading: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --book-size: 12pt;
  --book-title-size: 18pt;
  --book-leading: 1.4;
  --book-ink: #211f1c;
  --book-heading-ink: #292622;
  --book-accent: #544b40;
  --book-align: left;
  --book-title-align: left;
  --book-indent: 0em;
  --book-first-indent: 0em;
  --book-paragraph-gap: 0em;
  --book-hyphens: manual;
  --book-sink: 1.67em;
  --book-heading-gap: 2em;
}

.book-proof[data-edition="comics"] {
  --book-body: Arial, Helvetica, sans-serif;
  --book-heading: Arial, Helvetica, sans-serif;
  --book-size: 10.5pt;
  --book-title-size: 18pt;
  --book-leading: 1.25;
  --book-ink: #211f1c;
  --book-heading-ink: #292622;
  --book-accent: #544b40;
  --book-align: left;
  --book-title-align: left;
  --book-indent: 0em;
  --book-first-indent: 0em;
  --book-paragraph-gap: 0.35em;
  --book-hyphens: manual;
  --book-sink: 0.0em;
  --book-heading-gap: 0.45em;
}

.book-proof[data-edition="graphic-novels"] {
  --book-body: Cambria, Georgia, serif;
  --book-heading: Arial, Helvetica, sans-serif;
  --book-size: 11.5pt;
  --book-title-size: 24pt;
  --book-leading: 1.35;
  --book-ink: #211f1c;
  --book-heading-ink: #292622;
  --book-accent: #544b40;
  --book-align: left;
  --book-title-align: left;
  --book-indent: 0em;
  --book-first-indent: 0em;
  --book-paragraph-gap: 0.35em;
  --book-hyphens: manual;
  --book-sink: 0.0em;
  --book-heading-gap: 0.85em;
}

.book-proof[data-edition="children-s-books"] {
  --book-body: "Trebuchet MS", Arial, sans-serif;
  --book-heading: Georgia, "Times New Roman", serif;
  --book-size: 16pt;
  --book-title-size: 28pt;
  --book-leading: 1.45;
  --book-ink: #211f1c;
  --book-heading-ink: #292622;
  --book-accent: #544b40;
  --book-align: left;
  --book-title-align: center;
  --book-indent: 0em;
  --book-first-indent: 0em;
  --book-paragraph-gap: 0.65em;
  --book-hyphens: manual;
  --book-sink: 0.0em;
  --book-heading-gap: 0.75em;
}

.book-proof[data-edition="young-adult"] {
  --book-body: Georgia, "Times New Roman", serif;
  --book-heading: "Trebuchet MS", Arial, sans-serif;
  --book-size: 11.5pt;
  --book-title-size: 21pt;
  --book-leading: 1.4;
  --book-ink: #211f1c;
  --book-heading-ink: #292622;
  --book-accent: #544b40;
  --book-align: justify;
  --book-title-align: center;
  --book-indent: 1em;
  --book-first-indent: 0em;
  --book-paragraph-gap: 0em;
  --book-hyphens: auto;
  --book-sink: 1.67em;
  --book-heading-gap: 1.65em;
}

.book-proof[data-edition="biography"] {
  --book-body: Cambria, Georgia, serif;
  --book-heading: Georgia, "Times New Roman", serif;
  --book-size: 11.5pt;
  --book-title-size: 23pt;
  --book-leading: 1.4;
  --book-ink: #211f1c;
  --book-heading-ink: #24343b;
  --book-accent: #455b64;
  --book-align: justify;
  --book-title-align: center;
  --book-indent: 1.2em;
  --book-first-indent: 0em;
  --book-paragraph-gap: 0em;
  --book-hyphens: auto;
  --book-sink: 2.67em;
  --book-heading-gap: 1.1em;
}

.book-proof[data-edition="memoir"] {
  --book-body: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --book-heading: Georgia, "Times New Roman", serif;
  --book-size: 11pt;
  --book-title-size: 22pt;
  --book-leading: 1.4;
  --book-ink: #211f1c;
  --book-heading-ink: #292622;
  --book-accent: #544b40;
  --book-align: justify;
  --book-title-align: center;
  --book-indent: 1.2em;
  --book-first-indent: 0em;
  --book-paragraph-gap: 0em;
  --book-hyphens: auto;
  --book-sink: 2.67em;
  --book-heading-gap: 1.65em;
}

.book-proof[data-edition="self-help"] {
  --book-body: Georgia, "Times New Roman", serif;
  --book-heading: "Trebuchet MS", Arial, sans-serif;
  --book-size: 11pt;
  --book-title-size: 22pt;
  --book-leading: 1.4;
  --book-ink: #211f1c;
  --book-heading-ink: #24343b;
  --book-accent: #455b64;
  --book-align: left;
  --book-title-align: left;
  --book-indent: 0em;
  --book-first-indent: 0em;
  --book-paragraph-gap: 0.55em;
  --book-hyphens: manual;
  --book-sink: 1.0em;
  --book-heading-gap: 1.1em;
}

.book-proof[data-edition="business"] {
  --book-body: Cambria, Georgia, serif;
  --book-heading: Arial, Helvetica, sans-serif;
  --book-size: 11pt;
  --book-title-size: 22pt;
  --book-leading: 1.35;
  --book-ink: #211f1c;
  --book-heading-ink: #24343b;
  --book-accent: #455b64;
  --book-align: left;
  --book-title-align: left;
  --book-indent: 0em;
  --book-first-indent: 0em;
  --book-paragraph-gap: 0.45em;
  --book-hyphens: manual;
  --book-sink: 1.0em;
  --book-heading-gap: 1.1em;
}

.book-proof[data-edition="investing"] {
  --book-body: Cambria, Georgia, serif;
  --book-heading: Arial, Helvetica, sans-serif;
  --book-size: 11pt;
  --book-title-size: 22pt;
  --book-leading: 1.35;
  --book-ink: #211f1c;
  --book-heading-ink: #27392f;
  --book-accent: #4a6154;
  --book-align: left;
  --book-title-align: left;
  --book-indent: 0em;
  --book-first-indent: 0em;
  --book-paragraph-gap: 0.45em;
  --book-hyphens: manual;
  --book-sink: 1.0em;
  --book-heading-gap: 1.1em;
}

.book-proof[data-edition="academic"] {
  --book-body: "Times New Roman", Times, serif;
  --book-heading: Cambria, Georgia, serif;
  --book-size: 10pt;
  --book-title-size: 20pt;
  --book-leading: 1.2;
  --book-ink: #211f1c;
  --book-heading-ink: #252525;
  --book-accent: #393939;
  --book-align: justify;
  --book-title-align: left;
  --book-indent: 1em;
  --book-first-indent: 0em;
  --book-paragraph-gap: 0em;
  --book-hyphens: auto;
  --book-sink: 0.67em;
  --book-heading-gap: 1.1em;
}
