.book-cover {
  padding-block: clamp(3.25rem, 8vw, 7rem) clamp(2.5rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line);
}

.book-label {
  color: var(--yellow);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
}

.book-cover h1 {
  margin-block: 1.15rem 1.35rem;
  font-size: clamp(2.75rem, 9.5vw, 8.25rem);
  line-height: .93;
}

.book-subtitle {
  max-width: 36rem;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.4rem);
}

.book-author {
  margin-top: .85rem;
  font-weight: 700;
}

.book-cover .actions {
  margin-top: 1.35rem;
}

.book-end {
  padding-block: 1.6rem 2.5rem;
}

.book blockquote {
  margin: 1.65rem 0;
  padding: .1rem 0 .1rem 1.25rem;
  border-left: 2px solid var(--yellow);
  color: var(--ink);
  font: 400 clamp(1.35rem, 2.6vw, 2.15rem)/1.28 var(--serif);
}

.book-cover blockquote {
  max-width: 46rem;
  margin-bottom: 0;
}

.book-layout {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) minmax(0, 3fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(2rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line);
}

.book-index {
  position: sticky;
  top: 1.5rem;
}

.book-index a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .45rem;
  padding: .9rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.book-index a:hover { color: var(--yellow); }

.book-index a > span:first-child {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: .78rem;
}

.book-text {
  max-width: 45rem;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.65vw, 1.19rem);
  line-height: 1.78;
}

.book-chapter h2, .book-chapter h3 {
  margin-block: .55rem 1.25rem;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  line-height: 1.04;
}

.book-chapter p + p { margin-top: 1em; }
.book-chapter .chapter-lead { color: var(--ink); }

.book-chapter + .book-chapter {
  margin-top: clamp(2rem, 6vw, 4rem);
  padding-top: clamp(2rem, 5vw, 3.5rem);
  border-top: 1px solid var(--line);
}

.book-index--full {
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  padding-inline-end: .8rem;
  scrollbar-width: thin;
}

.book-index--full h2 {
  font-size: 1.6rem;
  line-height: 1.18;
}

.book-index--full details {
  border-bottom: 1px solid var(--line);
}

.book-index--full summary {
  padding-block: .85rem;
  cursor: pointer;
  font-weight: 700;
}

.book-index--full summary:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: -2px;
}

.book-index--full ol {
  margin: 0 0 .65rem;
  padding: 0;
  list-style: none;
}

.book-index--full .book-index-chapter {
  grid-template-columns: 1.4rem minmax(0, 1fr);
  gap: .65rem;
  align-items: baseline;
  padding-block: .4rem;
  border-bottom: 0;
}

.book-index--full .book-index-chapter span:first-child {
  grid-column: auto;
  color: var(--yellow);
  text-align: end;
}

.book-part, .book-epilogue {
  margin-top: clamp(3rem, 5.5vw, 5rem);
  padding-top: clamp(2rem, 4vw, 3.25rem);
  border-top: 1px solid var(--line);
}

.book-part-heading {
  margin-bottom: clamp(1.8rem, 4vw, 3rem);
}

.book-part-heading h2 {
  margin-block: .55rem .8rem;
  color: var(--ink);
  font-size: clamp(2.1rem, 5vw, 3.8rem);
  line-height: 1;
}

.book-signature {
  margin-top: 2rem;
}

.book-signature p + p {
  margin-top: .3rem;
}

@media (max-width: 45rem) {
  .book-layout { grid-template-columns: minmax(0, 1fr); }
  .book-index { position: static; }
  .book-index--full {
    max-height: none;
    overflow-y: visible;
    padding-inline-end: 0;
  }
}

.book-passages {
  padding-block: clamp(2rem, 5.5vw, 4rem);
  border-bottom: 1px solid var(--line);
}

.book-passages h2 {
  margin-bottom: 1.4rem;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.06;
}

.book-passage-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  margin-bottom: 2rem;
}

.book-passage-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 700;
  text-underline-offset: .2em;
}

.book-passage-part + .book-passage-part { margin-top: 2.5rem; }

.book-passage-part h3 {
  margin: 0 0 1rem;
  font: 400 clamp(1.65rem, 3vw, 2.4rem)/1.15 var(--serif);
}

.book-passages, .book-passage-part, .book-passage { scroll-margin-top: 1rem; }

.book-passages-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.book-passage {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .85rem;
  padding: clamp(1rem, 2.5vw, 1.6rem);
  border: 1px solid var(--line);
  border-radius: .35rem;
}

.book-passage h4 {
  margin: 0;
  color: var(--ink);
  font: 400 clamp(1.35rem, 2.2vw, 1.85rem)/1.13 var(--serif);
}

.book .book-passage blockquote {
  margin: 0 0 .35rem;
  padding-left: .85rem;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.45;
}

.book-passage a {
  display: inline-flex;
  gap: .6rem;
  align-items: center;
  margin-top: auto;
  min-height: 2.75rem;
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
}

.book-passage a:hover { color: var(--yellow); }

@media (max-width: 60rem) {
  .book-passages-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 36rem) {
  .book-passages-grid { grid-template-columns: minmax(0, 1fr); }
}
