.reader-page {
  background: #f9f8f4;
  min-height: 80vh;
  padding-bottom: 90px;
}
.reader-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  border-bottom: 1px solid #e0e4dc;
  font-size: 12px;
  color: #67746a;
}
.reader-top__library {
  border: 0;
  background: none;
  color: var(--forest);
  font-size: 12px;
}
.reader-layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 720px);
  justify-content: space-between;
  gap: 60px;
  padding-top: 45px;
}
.reader-side {
  position: sticky;
  align-self: start;
  top: 30px;
}
.reader-side__head h2 {
  font:
    400 28px Georgia,
    serif;
  line-height: 1.12;
  margin: 12px 0 7px;
}
.reader-side__head p {
  color: #7b877d;
  font-size: 12px;
}
.reader-chapters {
  margin-top: 55px;
}
.side-label {
  font-size: 10px;
  letter-spacing: 0.15em;
  color: #a0a79d;
}
.chapter-link {
  width: 100%;
  display: flex;
  gap: 11px;
  align-items: center;
  text-align: left;
  border: 0;
  border-bottom: 1px solid #e5e8e1;
  padding: 17px 3px;
  background: none;
  color: #667168;
}
.chapter-link.selected {
  color: #205743;
}
.chapter-link span:first-child {
  font-size: 11px;
  color: #b8876b;
}
.chapter-link strong {
  font-weight: 500;
  font-size: 13px;
  flex: 1;
}
.chapter-link span:last-child {
  font-size: 18px;
}
.reader-side__bottom {
  font-size: 11px;
  color: #959d91;
  margin-top: 24px;
  line-height: 1.5;
}
.reader-content {
  min-height: 720px;
  max-width: 720px;
  background: #fff;
  box-shadow: 0 8px 45px #6b7a6420;
  padding: 25px clamp(28px, 5vw, 72px) 55px;
}
.reader-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #8f978c;
  font-size: 11px;
  border-bottom: 1px solid #ecefe9;
  padding-bottom: 20px;
}
.reader-toolbar > div {
  display: flex;
  gap: 3px;
}
.reader-toolbar button {
  border: 0;
  background: #f3f5f0;
  color: #4a624f;
  border-radius: 3px;
  min-width: 33px;
  height: 31px;
}
.reader-text {
  font-family: Georgia, "Times New Roman", serif;
  font-size: calc(19px * var(--reader-scale));
  line-height: 1.9;
  color: #29362f;
}
.reader-kicker {
  display: block;
  margin-top: 52px;
  font:
    700 10px Arial,
    sans-serif;
  letter-spacing: 0.16em;
  color: #ad8169;
}
.reader-text h1 {
  font-weight: 400;
  font-size: calc(40px * var(--reader-scale));
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin: 16px 0;
}
.chapter-rule {
  width: 52px;
  border-top: 2px solid #a48468;
  margin: 27px 0 37px;
}
.reader-text p {
  margin: 0 0 1.35em;
}
.reader-text p:first-of-type:first-letter {
  font-size: 2.7em;
  float: left;
  line-height: 0.9;
  padding-right: 0.08em;
  color: #54755b;
}
.reader-end {
  text-align: center;
  border-top: 1px solid #ecefe9;
  padding-top: 35px;
  margin-top: 45px;
}
.reader-end > span {
  color: #a78367;
  font-size: 23px;
}
.reader-end p {
  font:
    400 21px Georgia,
    serif;
  line-height: 1.4;
}
.reader-locked {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 575px;
}
.reader-locked > span {
  font-size: 34px;
  color: #b38566;
}
.reader-locked h1 {
  font:
    400 41px Georgia,
    serif;
  margin: 18px 0 8px;
}
.reader-locked p {
  color: #667268;
  line-height: 1.7;
  max-width: 390px;
}
.reader-locked small {
  margin-top: 15px;
  color: #8e968c;
}
.reader-page--dark {
  background: #171f1b;
}
.reader-page--dark .reader-top {
  border-color: #38483e;
  color: #b5c4b6;
}
.reader-page--dark .reader-side {
  color: #d7e0d3;
}
.reader-page--dark .reader-content {
  background: #27322b;
}
.reader-page--dark .reader-text {
  color: #ecece0;
}
.reader-page--dark .reader-toolbar {
  border-color: #405044;
}
.reader-page--dark .reader-toolbar button {
  background: #3a4d40;
  color: #e3e9de;
}
.reader-page--dark .chapter-link {
  border-color: #3c4b3e;
  color: #bccbb9;
}
.reader-page--dark .reader-end {
  border-color: #405044;
}
.reader-page--dark .reader-end p,
.reader-page--dark .reader-locked h1 {
  color: #edece3;
}
.reader-page--dark .reader-locked p {
  color: #c1cbbd;
}
.reading-dark .site-header {
  background: #17231b;
  border-color: #344d3b;
}
.reading-dark .brand,
.reading-dark .nav-link {
  color: #e4eadd;
}
.reading-dark .nav-library {
  border-color: #57705a;
}
.reading-dark .site-footer {
  background: #111b16;
}
