:root {
  color-scheme: light;
  --ink: #1d2730;
  --muted: #596571;
  --navy: #152b3b;
  --line: #dce1e5;
  --paper: #fff;
  --canvas: #f5f7f8;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}
a:focus-visible {
  outline: 3px solid #b97624;
  outline-offset: 5px;
}
p {
  margin: 0;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
.skip {
  position: absolute;
  top: -100px;
  left: 1rem;
  padding: 0.75rem 1rem;
  background: white;
  z-index: 10;
}
.skip:focus {
  top: 1rem;
}
.masthead {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem clamp(1.3rem, 5vw, 5rem);
  background: var(--navy);
  color: #fff;
}
.book-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  letter-spacing: 0.02em;
}
.contents-link {
  font-size: 1rem;
}
.index {
  max-width: 1120px;
  margin: 0 auto;
  padding: 4rem 2rem 5rem;
}
.index-heading {
  border-bottom: 1px solid var(--line);
  padding-bottom: 2.6rem;
}
.eyebrow,
.chapter-label {
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}
h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.12;
  margin: 1rem 0 1.8rem;
  letter-spacing: -0.025em;
}
.start {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  padding: 0.9rem 1.2rem;
  border-radius: 3px;
  font-size: 1rem;
}
.toc-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin: 2.5rem 0 1rem;
}
.toc-heading h2 {
  font-size: 1.8rem;
  margin: 0;
}
.toc-heading > span {
  font-size: 0.9rem;
  color: var(--muted);
}
.toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 3rem;
}
.toc li {
  border-bottom: 1px solid var(--line);
}
.toc a {
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  padding: 1rem 0.15rem;
  font-size: 1rem;
  line-height: 1.5;
  min-height: 56px;
}
.chapter-number {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-size: 0.85rem;
  min-width: 1.6rem;
}
.reading {
  background: var(--paper);
}
.reader {
  max-width: 820px;
  margin: auto;
  padding: 3rem 2rem 4rem;
}
.chapter-position {
  text-align: right;
  color: var(--muted);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}
.chapter-heading {
  margin: 1rem 0 2rem;
}
.chapter-heading h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin: 1rem 0 0;
}
.chapter-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}
.chapter-nav a {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  line-height: 1.4;
}
.chapter-nav span {
  font-size: 0.85rem;
  color: var(--muted);
}
.chapter-nav strong {
  font-size: 0.95rem;
  font-weight: 500;
}
.chapter-nav .next {
  text-align: right;
  align-items: flex-end;
}
.prose {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  line-height: 1.2;
  padding: 2.6rem 0;
  overflow-wrap: break-word;
}
.prose p {
  margin: 0 0 0.3em;
  white-space: pre-line;
  text-align: justify;
}
.prose p:last-child {
  margin-bottom: 0;
}
p.indent {padding-left: 1rem;}

.scene-break {
  border: 0;
  margin: 1.0rem auto;
  width: 4rem;
  height: 1px;
  background: #a8b3bc;
}
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.6rem;
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--muted);
  font-size: 0.9rem;
}
@media (max-width: 600px) {
  .masthead {
    min-height: 72px;
    padding: 1.2rem;
  }
  .book-name {
    font-size: 1.3rem;
  }
  .index {
    padding: 2.5rem 1.3rem;
  }
  .toc ol {
    grid-template-columns: 1fr;
  }
  .reader {
    padding: 2rem 1.25rem 3rem;
  }
  .prose {
    font-size: 1.18rem;
    line-height: 1.8;
    padding: 2rem 0;
  }
  .chapter-nav {
    gap: 1rem;
  }
  .chapter-nav strong {
    font-size: 0.9rem;
  }
  .chapter-heading {
    margin: 1rem 0 1.7rem;
  }
}
@media print {
  .masthead,
  .chapter-nav,
  .site-footer,
  .chapter-position,
  .skip {
    display: none;
  }
  .reader {
    max-width: none;
    padding: 0;
  }
  .prose {
    font-size: 12pt;
    line-height: 1.6;
  }
  .chapter-heading h1 {
    font-size: 28pt;
  }
  body {
    background: white;
    color: black;
  }
}
