.dog-book-page {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 120px 0 60px;
}

.dog-book-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 28px;
  align-items: center;
  min-height: calc(100vh - 190px);
}

.dog-book-copy,
.dog-book-portrait,
.dog-book-chapter,
.dog-book-ending {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(8, 8, 16, 0.72);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.dog-book-copy {
  padding: clamp(26px, 5vw, 58px);
  border-radius: 8px;
}

.dog-book-eyebrow,
.chapter-number {
  color: #ffb7aa;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
}

.dog-book-copy h1 {
  font-size: clamp(3.4rem, 9vw, 7rem);
  line-height: 0.9;
  margin: 0 0 18px;
}

.dog-book-copy .lead {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.08rem, 2.3vw, 1.45rem);
  line-height: 1.65;
  margin: 0 0 24px;
}

.book-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

.book-facts span,
.book-link-row a {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 800;
  padding: 10px 14px;
}

.dog-book-portrait {
  border-radius: 8px;
  padding: 16px;
}

.dog-book-portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
}

.dog-book-portrait figcaption {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
  margin-top: 12px;
  text-align: center;
}

.dog-book-toc {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 26px 0;
}

.dog-book-toc a,
.book-link-row a {
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.dog-book-toc a {
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.07);
  font-weight: 850;
  padding: 14px;
}

.dog-book-toc a:hover,
.book-link-row a:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.dog-book-chapters {
  display: grid;
  gap: 22px;
}

.dog-book-chapter,
.dog-book-ending {
  border-radius: 8px;
  padding: clamp(22px, 4vw, 38px);
}

.dog-book-chapter h2,
.dog-book-ending h2 {
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 1;
  margin: 0 0 16px;
}

.dog-book-chapter p,
.dog-book-ending p {
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 2vw, 1.16rem);
  line-height: 1.8;
  margin: 0;
}

.dog-book-chapter p + p,
.dog-book-ending p + p {
  margin-top: 14px;
}

.book-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.book-link-row a {
  display: inline-flex;
}

.shaina-book .dog-book-eyebrow,
.shaina-book .chapter-number {
  color: #d7b5ff;
}

.shaina-book .dog-book-copy,
.shaina-book .dog-book-portrait,
.shaina-book .dog-book-chapter,
.shaina-book .dog-book-ending {
  background:
    linear-gradient(135deg, rgba(183, 140, 255, 0.14), rgba(255, 255, 255, 0.04)),
    rgba(8, 8, 16, 0.74);
}

@media (max-width: 820px) {
  .dog-book-page {
    padding-top: 96px;
  }

  .dog-book-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .dog-book-toc {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .dog-book-toc {
    grid-template-columns: 1fr;
  }

  .book-facts span,
  .book-link-row a {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}
