.book-wrap {
  width: min(90%, 76rem);
  margin-inline: auto;
}
.book-back {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding-block: 1rem;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}
.book-back:hover, .book-sample:hover strong { text-decoration: underline; }
.book-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5.5vw, 5rem);
  margin-bottom: clamp(2.5rem, 5vw, 5rem);
}
.book-art {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  background: var(--corn);
  aspect-ratio: 1.19;
}
.book-scene {
  position: absolute;
  inset: 0 0 0 auto;
  width: 64%;
  height: 100%;
  object-fit: cover;
}
.book-cover {
  position: absolute;
  inset: 10% auto auto 23%;
  width: 54%;
  height: 80%;
  object-fit: contain;
  transform: rotate(-5deg);
}
.book-scene + .book-cover {
  inset-inline-start: 7%;
  filter: drop-shadow(.2rem .4rem .45rem rgba(50, 37, 15, .25));
}
.book-art-photo .book-scene { width: 100%; }
.book-intro { min-width: 0; padding-block: .75rem; }
.book-intro h1 {
  margin: 0;
  color: var(--leaf);
  font-size: clamp(2.6rem, 4.3vw, 4.75rem);
  line-height: 1.02;
  text-wrap: balance;
}
.book-imprint { color: var(--green); font-weight: 700; margin: .85rem 0 1.2rem; }
.book-description { margin: 0 0 1.35rem; max-width: 50ch; line-height: 1.5; overflow-wrap: anywhere; }
.book-format { margin: 0; font-size: 1rem; font-weight: 700; }
.book-offer { border-top: 1px solid color-mix(in srgb, var(--ink) 30%, var(--paper)); margin-top: .75rem; padding-top: 1rem; }
.book-offer p { margin: .2rem 0; }
.book-offer > p:not(.book-availability) { font-size: 1rem; }
.book-buy { display: flex; align-items: center; gap: 1rem 1.5rem; flex-wrap: wrap; margin-bottom: .6rem; }
.book-price { color: var(--leaf); font: 400 2.2rem/1.1 Bowlby, Arial, sans-serif; }
.book-price del { font: 400 1rem Atkinson, sans-serif; color: #556555; white-space: nowrap; }
.book-buy button { background: var(--leaf); padding: .8rem 1.5rem; }
.book-buy button:hover { background: var(--green); }
.book-availability { font-weight: 700; font-size: 1.35rem; }
.book-preview-link { display: inline-flex; align-items: center; gap: .7rem; min-height: 2.75rem; font-weight: 700; color: var(--leaf); }
.book-hero-text { grid-template-columns: 1fr; padding: clamp(1.5rem, 5vw, 4rem); background: #fff2d0; }
.book-hero-text .book-intro { max-width: 50rem; }
.book-section { border-top: 1px solid color-mix(in srgb, var(--ink) 35%, var(--paper)); padding-top: clamp(1.25rem, 2.8vw, 2.25rem); margin-bottom: 3.25rem; scroll-margin-top: 1rem; }
.book-section h2 { margin: 0 0 1.2rem; color: var(--leaf); font-size: clamp(1.8rem, 3.1vw, 3rem); }
.book-samples, .book-quotes { display: grid; gap: clamp(1rem, 2.5vw, 2rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.book-sample { display: block; max-width: 32rem; width: 100%; text-decoration: none; }
.book-sample > img { display: block; width: 100%; aspect-ratio: 1.65; object-fit: cover; background: #f0ecd7; }
.book-sample > span { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; margin-top: .55rem; }
.book-zoom { font-size: 1.3rem; font-weight: 700; color: var(--green); }
.book-quotes blockquote { margin: 0; max-width: 55ch; padding: 1.25rem; background: #f0ecd7; overflow-wrap: anywhere; }
.book-quotes p { margin: 0; }
.book-quotes cite { display: block; margin-top: .5rem; }
.book-parts { margin: 0; padding-inline-start: 1.3rem; }
.book-viewer { width: max-content; max-width: 94vw; max-height: 95vh; max-height: 95dvh; padding: 1rem; border: 0; color: var(--ink); background: var(--paper); }
.book-viewer::backdrop { background: rgb(10 28 17 / .82); }
.book-viewer[open] { display: grid; gap: .65rem; }
.book-viewer > button { justify-self: end; }
.book-viewer img { display: block; width: 100%; height: auto; max-height: 60vh; object-fit: contain; }
.book-viewer p { margin: 0; font-weight: 700; }
.book-viewer-nav { display: flex; gap: .75rem; justify-content: space-between; }
@media (max-width: 48rem) {
  .book-hero { grid-template-columns: 1fr; gap: 1.2rem; }
  .book-art { aspect-ratio: 1.65; }
  .book-back { padding-block: .65rem; }
  .book-intro { padding: 0; }
  .book-samples { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
}
