:root {
  --paper: #f8f2e6;
  --paper-deep: #eee3d0;
  --ink: #28362f;
  --forest: #233c31;
  --rose: #8a6532;
  --gold: #a87b2d;
  --muted: #697068;
  --line: #d8ccb9;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 8%, rgba(205,157,73,.13), transparent 30rem),
    linear-gradient(180deg, #fbf8f2 0, var(--paper) 28rem);
  font-family: Georgia, "Times New Roman", serif;
}
a { color: inherit; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.reader-tools {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 62px;
  padding: 12px max(20px, 5vw);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  background: rgba(250,247,240,.96);
  border-bottom: 1px solid var(--line);
  color: var(--forest);
  font: 700 12px/1.25 Arial, sans-serif;
  letter-spacing: .05em;
}
.reader-tools a { text-decoration: none; }
.reader-tools a:hover { text-decoration: underline; text-underline-offset: 4px; }
.reader-tools .next { text-align: right; }
.reader-tools .contents {
  color: #806638;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.book-shell { width: min(820px, calc(100% - 40px)); margin: 0 auto; padding: 74px 0 110px; }
.title-page {
  padding: clamp(24px, 6vw, 58px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background:
    linear-gradient(145deg, rgba(255,255,255,.88), rgba(238,226,206,.92)),
    radial-gradient(circle at 70% 20%, rgba(193,139,49,.2), transparent 24rem);
  border: 1px solid var(--line);
  box-shadow: 0 24px 65px rgba(42,56,49,.1);
}
.book-cover { display: block; width: min(100%, 500px); height: auto; box-shadow: 0 22px 58px rgba(38,54,45,.22); }
.title-page .ornament { color: var(--gold); font-size: 25px; letter-spacing: .45em; }
.title-page h1 { margin: 28px 0 8px; color: var(--forest); font-size: clamp(58px, 11vw, 96px); font-weight: 400; line-height: .92; letter-spacing: .035em; text-transform: uppercase; }
.title-page .subtitle { margin: 10px 0 50px; color: var(--rose); font-size: clamp(24px, 4vw, 37px); font-style: italic; }
.title-page .author { margin: 0; color: var(--forest); font: 700 13px/1.3 Arial, sans-serif; letter-spacing: .28em; text-transform: uppercase; }
.publication-note { width: min(100%, 620px); margin: 58px 0 0; padding: 32px 0 0; border-top: 1px solid var(--line); color: var(--muted); text-align: left; }
.publication-note p { margin: 0 0 1em; font-size: 14px; line-height: 1.7; }
.contents-page { margin-top: 70px; padding: clamp(32px, 7vw, 64px); background: rgba(255,255,255,.6); border: 1px solid var(--line); }
.contents-page h2 { margin: 0 0 31px; color: var(--forest); font-size: 42px; font-weight: 400; }
.contents-list { margin: 0; padding: 0; list-style: none; counter-reset: chapter; }
.contents-list li { border-top: 1px solid var(--line); }
.contents-list a { padding: 12px 3px; display: flex; gap: 18px; text-decoration: none; line-height: 1.45; }
.contents-list a:hover { color: var(--rose); }
.contents-list .number { flex: 0 0 28px; color: var(--gold); font: 700 11px/1.8 Arial, sans-serif; }
.start-reading { margin-top: 32px; display: inline-flex; padding: 14px 19px; background: var(--forest); color: #fff; font: 700 12px/1.2 Arial, sans-serif; letter-spacing: .04em; text-decoration: none; }
.book-copy { max-width: 730px; margin: 0 auto; }
.chapter-label { margin: 0 0 12px !important; color: var(--rose); font: 800 11px/1.2 Arial, sans-serif !important; letter-spacing: .22em; text-indent: 0 !important; text-transform: uppercase; }
.book-copy h1 { margin: 0 0 38px; color: var(--forest); font-size: clamp(45px, 7vw, 67px); font-weight: 400; line-height: 1.05; }
.book-copy h2 { margin: 52px 0 19px; padding-top: 26px; color: var(--forest); border-top: 1px solid var(--line); font-size: 27px; font-weight: 400; line-height: 1.2; }
.book-copy > p { margin: 0; color: #3e4c45; font-size: 19px; line-height: 1.88; text-indent: 1.55em; }
.book-copy h1 + p,
.book-copy h2 + p,
.book-copy blockquote + p,
.book-copy .chapter-label + p,
.book-copy .colophon p { text-indent: 0; }
.book-copy blockquote {
  margin: 0 0 42px;
  padding: 27px 30px;
  color: var(--forest);
  background: #e8ebe4;
  border-left: 4px solid var(--gold);
}
.book-copy blockquote p { margin: 0; font-size: 20px; font-style: italic; line-height: 1.65; }
.book-copy blockquote cite { margin-top: 13px; display: block; color: #806638; font: 800 10px/1.4 Arial, sans-serif; font-style: normal; letter-spacing: .11em; text-transform: uppercase; }
.foreword h1 { margin-bottom: 36px; }
.foreword > p:first-of-type { color: var(--rose); font-size: 24px; font-style: italic; text-indent: 0; }
.colophon { margin-top: 68px; padding: 34px; background: var(--paper-deep); border-top: 3px solid var(--gold); text-align: center; }
.colophon p { margin: 5px 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.colophon p:first-child { color: var(--forest); font-size: 22px; }
.chapter-turn { margin: 72px auto 0; padding-top: 25px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); font: 700 12px/1.4 Arial, sans-serif; }
.chapter-turn a { color: var(--forest); text-decoration-color: var(--gold); text-underline-offset: 4px; }
.chapter-turn a:last-child { margin-left: auto; text-align: right; }
@media (max-width: 620px) {
  .reader-tools { grid-template-columns: 1fr auto 1fr; gap: 8px; padding: 11px 14px; font-size: 10px; }
  .book-shell { width: min(100% - 34px, 820px); padding: 48px 0 80px; }
  .title-page { padding: 24px 18px 42px; }
  .publication-note { margin-top: 42px; }
  .contents-page { margin-top: 38px; padding: 29px 22px; }
  .contents-list a { font-size: 15px; }
  .book-copy > p { font-size: 18px; line-height: 1.82; }
  .book-copy h2 { margin-top: 44px; font-size: 25px; }
  .book-copy blockquote { padding: 23px 22px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
