/* Book pages: about.css (fonts, top bar, footer, reveals) plus the sections below.
   Each page sets its palette on <body>: --k-soft (hero), --k-deep (buttons, titles), --k-band (gallery band),
   --k-band-2 (playlist band), --k-foot (footer). */
.book-page { background: #fff; }

/* Hero: status, title, blurb and buttons beside the 3D cover */
.book-hero {
  background: var(--k-soft); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 5rem);
  align-items: center; padding: clamp(110px, 16vh, 150px) clamp(20px, 7vw, 120px) clamp(56px, 9vh, 90px);
}
.book-status { display: block; font: 600 .78rem/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--k-deep); margin-bottom: 1rem; }
.book-title { font: 600 clamp(2.6rem, 5.4vw, 4.8rem)/1.02 var(--serif); letter-spacing: -0.02em; color: var(--k-deep); margin-bottom: 1.4rem; }
.book-title img { display: block; width: min(520px, 100%); height: auto; }
.book-blurb p { font-size: clamp(1rem, 1.3vw, 1.12rem); line-height: 1.7; color: var(--muted); margin-bottom: 1rem; max-width: 60ch; }
.book-blurb .lede { color: var(--ink); font-weight: 600; }
.book-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }
.btn {
  display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.4rem; border-radius: 999px; text-decoration: none;
  font: 600 .8rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; transition: background .2s, color .2s, transform .2s;
}
.btn-primary { background: var(--k-deep); color: #fff; }
.btn-primary:hover, .btn-primary:focus-visible { transform: translateY(-2px); }
.btn-ghost { border: 2px solid var(--k-deep); color: var(--k-deep); }
.btn-ghost:hover, .btn-ghost:focus-visible { background: var(--hover-bg); }
.book-cover { margin: 0; display: grid; justify-items: center; gap: 1.4rem; }
.book-cover img { width: min(360px, 80%); height: auto; filter: drop-shadow(0 26px 30px rgba(0,0,0,.25)); }
.tropes { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tropes li { padding: .45rem .85rem; border-radius: 999px; background: #fff; color: var(--k-deep); font: 600 .74rem/1.2 var(--sans); box-shadow: 0 4px 12px rgba(0,0,0,.06); }

/* Sections */
.book-section { padding: clamp(4rem, 10vh, 6.5rem) clamp(20px, 7vw, 120px); }
.book-section .section-title { text-align: center; margin-bottom: clamp(2rem, 5vh, 3rem); }
.band { background: var(--k-band); color: #fff; }
.band .section-title { color: #fff; }
.band-2 { background: var(--k-band-2); color: #fff; }
.band-2 .section-title { color: #fff; }
.soft { background: var(--k-soft); }

.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); max-width: 1180px; margin: 0 auto; }
.trio img { display: block; width: 100%; height: auto; border-radius: 18px; box-shadow: 0 18px 40px rgba(0,0,0,.08); }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); max-width: 1180px; margin: 0 auto; }
.duo img { display: block; width: 100%; height: auto; }

/* Gallery: masonry columns of fan art */
.gallery { columns: 3 260px; column-gap: clamp(12px, 1.6vw, 20px); max-width: 1180px; margin: 0 auto; }
.gallery img { display: block; width: 100%; height: auto; margin-bottom: clamp(12px, 1.6vw, 20px); border-radius: 18px; break-inside: avoid; }

/* Comic panels */
.comic img { border-radius: 22px; }

/* Places */
.places { list-style: none; padding: 0; }
.places li { display: grid; gap: .8rem; }
.places img { aspect-ratio: 3 / 2; object-fit: cover; }
.places span { display: flex; align-items: center; gap: .5rem; font: 600 1.05rem var(--serif); }
.places span::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--k-deep); box-shadow: 0 0 0 4px var(--hover-bg); }

/* Playlist / video embeds */
.embed { max-width: 760px; margin: 0 auto; }
.embed iframe { display: block; width: 100%; border: 0; border-radius: 16px; }
.embed-video { aspect-ratio: 16 / 9; }
.embed-video iframe { height: 100%; }

/* Readers' comments */
.comments { columns: 3 280px; column-gap: 20px; max-width: 1180px; margin: 0 auto; }
.comments blockquote {
  break-inside: avoid; margin: 0 0 20px; padding: 26px 28px; border-radius: 20px; background: var(--k-soft);
  font-size: 1rem; line-height: 1.65; color: var(--ink);
}
.comments blockquote::before { content: "“"; display: block; font: 600 3rem/0.6 var(--serif); color: var(--k-deep); margin-bottom: .6rem; }
.comments strong { color: var(--k-deep); }

/* Footer in the book's colour */
.book-page .connect { margin-top: 0; background: var(--k-foot); }
.book-page .socials-labelled .s-icon { color: var(--k-foot); }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 860px) {
  .book-hero { grid-template-columns: 1fr; padding-top: 110px; }
  .book-cover { order: -1; }
  .trio, .duo { grid-template-columns: 1fr; }
}

/* Extra bands and the wide feature image (Love is a Mess) */
.soft-2 { background: #fee7e1; }
.band-3 { background: var(--k-band-3); color: #fff; }
.band-3 .section-title { color: #fff; }
.wide-img { display: block; width: min(1100px, 100%); height: auto; margin: 0 auto; border-radius: 24px; }
