
@font-face {
  font-family: "IM Fell English";
  src: url("fonts/IMFellEnglish-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IM Fell English";
  src: url("fonts/IMFellEnglish-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "IM Fell English SC";
  src: url("fonts/IMFellEnglishSC-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("fonts/EBGaramond-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("fonts/EBGaramond-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("fonts/EBGaramond-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("fonts/EBGaramond-MediumItalic.ttf") format("truetype");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #F4EBD8;
  --ink: #1C1612;
  --ink-soft: #3A3028;
  --tan: #8A7048;
  --tan-bright: #C4A574;
  --rule: #B9A07A;
  --display: "IM Fell English", "EB Garamond", "Palatino Linotype", Palatino, serif;
  --display-sc: "IM Fell English SC", "IM Fell English", serif;
  --body: "EB Garamond", "Palatino Linotype", Palatino, "Times New Roman", serif;
}
html { color-scheme: light; }
body {
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  font-feature-settings: "kern", "liga", "calt", "onum";
  hanging-punctuation: first last allow-end;
}
h1, h2, .ch-label, .compass, .series, .full-title, .author, .toc-label {
  font-family: var(--display);
  font-weight: 400;
}
.ch-label, .series, .compass-sc, .book-num, .toc-label {
  font-family: var(--display-sc);
  letter-spacing: 0.22em;
  text-transform: lowercase;
}
p { margin: 0; text-indent: 1.25em; hyphens: auto; hyphenate-limit-chars: 6 3 3; }
p.first, p.after-break, p.compass, p.ch-label, p.ornament, p.title-ornament, p.center, p.listen, p.coming,
blockquote.letter p, .toc p, .copyright p, .title-page p {
  text-indent: 0;
}
p + p { /* traditional book: indent, no extra gap */ }
.drop {
  float: left;
  font-family: var(--display);
  font-size: 3.05em;
  line-height: 0.68;
  padding-right: 0;
  margin-right: -0.06em;
  margin-left: -0.02em;
  margin-top: 0.04em;
  color: var(--ink);
}
.drop .dq { font-size: 0.55em; margin-right: 0.02em; vertical-align: top; }
.drop-short .drop { font-size: 2.55em; line-height: 0.78; }
.ch-label {
  font-size: 0.95em;
  letter-spacing: 0.28em;
  text-align: center;
  color: var(--tan);
  margin: 0 0 0.4em;
}
h1 {
  font-size: 2.15em;
  text-align: center;
  margin: 0 0 0.15em;
  line-height: 1.15;
  font-weight: 400;
}
.compass {
  font-family: var(--display);
  font-style: italic;
  text-align: center;
  color: var(--tan);
  letter-spacing: 0.14em;
  font-size: 1.05em;
  margin: 0 0 0.2em;
}
.ornament {
  text-align: center;
  text-indent: 0;
  margin: 0.6em 0 1.4em;
}
.ornament img, .opener-ornament img, .end-ornament img {
  display: inline-block;
  width: 14em;
  height: auto;
  color: var(--ink);
}
.end-ornament { margin: 2em 0 0; }
.end-ornament img { width: 3.2em; }
.title-ornament {
  text-align: center;
  text-indent: 0;
  margin: 1.6em auto;
}
.title-ornament img {
  display: inline-block;
  width: 2.6em;
  height: auto;
  max-width: 100%;
  color: var(--ink);
}
blockquote.letter {
  margin: 1.15em 1.5em 1.25em;
  padding: 0.2em 0 0.2em 1em;
  border-left: 0.5pt solid var(--rule);
  font-style: italic;
  color: var(--ink-soft);
}
blockquote.letter p { margin: 0.55em 0; text-indent: 0; hyphens: auto; }
.title-page { text-align: center; }
.copyright { font-size: 0.92em; line-height: 1.5; }
.copyright p { margin: 0.4em 0; text-indent: 0; }
.coming-next { text-align: center; }
.coming-next .coming {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.15em;
  margin: 0.6em 0 0.2em;
}
.coming-next .coming-book {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.35em;
  margin: 0 0 0.6em;
  text-indent: 0;
  line-height: 1.3;
}
.coming-next .listen {
  font-family: var(--display);
  font-size: 1em;
  color: var(--ink-soft);
  margin-top: 1.6em;
}

html, body {
  background: var(--paper);
  margin: 0;
  padding: 0;
  font-size: 21px;
  line-height: 1.6;
}
body { color: var(--ink); }
.wrap {
  max-width: 38rem;
  margin: 0 auto;
  padding: 2.5rem 1.4rem 5rem;
}
header.site {
  text-align: center;
  margin: 0 0 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 0.5pt solid var(--rule);
}
header.site .series {
  font-family: var(--display-sc);
  letter-spacing: 0.3em;
  color: var(--tan);
  font-size: 0.8rem;
  margin: 0 0 0.4rem;
}
header.site a { color: inherit; text-align: center; text-decoration: none; }
header.site .book-title { font-size: 1.35rem; margin: 0; }
header.site .author-line { font-style: italic; color: var(--ink-soft); margin: 0.3rem 0 0; font-size: 1rem; }
.cover-wrap { text-align: center; margin: 0 auto 2rem; }
.cover-wrap img { width: min(100%, 22rem); height: auto; box-shadow: none; background: transparent; }
.nav-chapters, footer.nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--display);
  font-size: 0.95rem;
  margin: 2.5rem 0 0;
  padding-top: 1.2rem;
  border-top: 0.5pt solid var(--rule);
  text-indent: 0;
}
.nav-chapters a, footer.nav a { color: var(--tan); text-decoration: none; }
.nav-chapters a:hover, footer.nav a:hover { color: var(--ink); }
.toc-list { list-style: none; padding: 0; margin: 2rem 0; }
.toc-list li { margin: 0 0 1.15rem; }
.toc-kicker { display: block; font-family: var(--display-sc); letter-spacing: 0.22em; color: var(--tan); font-size: 0.8rem; }
.toc-title { font-family: var(--display); font-size: 1.45rem; }
.toc-compass { font-style: italic; color: var(--tan); margin-left: 0.45em; font-size: 1rem; }
.toc-list a { color: inherit; text-decoration: none; }
.toc-list a:hover .toc-title { text-decoration: underline; }
.title-block { text-align: center; margin: 1rem 0 2.5rem; }
.title-block p { text-align: center; text-indent: 0; }
.title-block .series { color: var(--tan); letter-spacing: 0.3em; font-family: var(--display-sc); font-size: 0.85rem; }
.title-block h1 { font-size: 3rem; margin: 0.5rem 0 0.2rem; line-height: 1; }
.title-block .main-title { font-size: 3rem; margin: 0.5rem 0 0.2rem; line-height: 1.08; letter-spacing: 0.04em; }
.title-block .subtitle { font-family: var(--display-sc); letter-spacing: 0.16em; font-size: 1.6rem; margin: 0.15rem 0 0; }
.title-block .subtitle .into {
  font-family: var(--display);
  font-style: italic;
  font-size: 0.8em;
  letter-spacing: 0.02em;
  margin-right: 0.2em;
  text-transform: none;
}
.title-block .author { font-family: var(--display-sc); letter-spacing: 0.2em; margin-top: 1.6rem; }
.copyright-web { text-align: center; color: var(--ink-soft); font-size: 0.95rem; margin: 2rem 0 3rem; }
.copyright-web p { text-align: center; text-indent: 0; }
.coming-next { text-align: center; margin-top: 3rem; }
p { text-align: justify; }
@media (max-width: 640px) {
  html, body { font-size: 18px; }
  p { text-align: left; }
  .title-block p,
  .copyright-web p { text-align: center; }
  .title-block h1 { font-size: 2.3rem; }
  .title-block .main-title { font-size: 2.3rem; }
}

.toc-label { text-align: center; }
.site-chrome {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  justify-content: center;
  padding: 0.7rem 1.2rem;
  font-family: "IM Fell English", Palatino, serif;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  border-bottom: 0.5pt solid var(--rule, #c4b79a);
  background: var(--paper, #f4ead2);
}
.site-chrome a { color: var(--tan, #6b5a3a); text-decoration: none; }
.site-chrome a:hover { color: var(--ink, #221a10); }
