/* =========================================
   BOOK PAGES (book.php), light since 2026-10-15.
   The base layout is in style.css (written for the old dark page); this
   file turns its dark pieces tan and styles the open first paragraph and
   "More from Hank Redding". Loaded from includes/head.php ($isBookDetail).
   ========================================= */

/* ---------- Decision zone ---------- */

body.light-shell .book-page .edition-label {
  color: var(--ls-accent-deep);
  border-color: var(--ls-hairline);
}

body.light-shell .book-page .free-badge {
  color: var(--ls-accent-deep);
}

body.light-shell .book-page .cta-row::after {
  border-bottom-color: var(--ls-hairline);
}

/* One filled button for the main action; a second one becomes an outline. */
body.light-shell .book-page .cta-row .btn-primary {
  background: #965220;
  border-color: #965220;
  color: #fff8ef;
}

body.light-shell .book-page .cta-row .btn-primary:hover {
  background: var(--ls-accent-deep);
  border-color: var(--ls-accent-deep);
  color: #fff8ef;
}

body.light-shell .book-page .cta-row .btn-primary + .btn-primary,
body.light-shell .book-page .cta-row .btn-secondary {
  background: transparent;
  border-color: var(--ls-accent);
  color: var(--ls-accent-deep);
}

body.light-shell .book-page .cta-row .btn-primary + .btn-primary:hover,
body.light-shell .book-page .cta-row .btn-secondary:hover {
  background: var(--ls-paper-card);
  color: var(--ls-accent-deep);
}

body.light-shell .book-page .buy-note {
  color: var(--ls-muted);
}

body.light-shell .book-page .book-cover img {
  box-shadow: 0 18px 36px rgba(43, 33, 24, 0.3);
}

/* ---------- Description ---------- */

.book-page .book-intro p {
  margin: 1.4rem 0 0;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ls-ink-soft, #4d4033);
}

.book-page details.book-description {
  margin-top: 1rem;
}

.book-page details.book-description p {
  line-height: 1.7;
  color: var(--ls-ink-soft, #4d4033);
}

body.light-shell .book-page .book-description summary {
  color: var(--ls-link);
}

/* ---------- Podcast, audio, outline buttons ---------- */

body.light-shell .book-page .feature-box,
body.light-shell .book-page .book-audio {
  background: var(--ls-paper-card);
  border: 1px solid var(--ls-hairline);
  border-left: 3px solid var(--ls-accent);
}

body.light-shell .book-page .book-podcast a {
  color: var(--ls-link);
  border-bottom-color: var(--ls-hairline);
}

body.light-shell .book-page .btn-outline {
  border-color: var(--ls-accent);
  color: var(--ls-accent-deep);
}

body.light-shell .book-page .btn-outline:hover {
  background: var(--ls-paper-card);
}

/* ---------- Sticky bar ---------- */

body.light-shell .book-page .sticky-buy {
  background: rgba(246, 240, 228, 0.96);
  border-color: var(--ls-hairline);
  box-shadow: 0 10px 28px rgba(43, 33, 24, 0.18);
}

body.light-shell .book-page .sticky-title {
  color: var(--ls-ink);
}

body.light-shell .book-page .sticky-buy .btn-primary {
  background: #965220;
  border-color: #965220;
  color: #fff8ef;
}

/* ---------- More from Hank Redding ---------- */

.book-more {
  max-width: 980px;
  margin: 5rem auto 0;
  padding-top: 2.5rem;
  border-top: 1px solid var(--ls-hairline, rgba(168, 98, 44, 0.35));
  text-align: center;
}

.book-more h2 {
  margin: 0 0 1.8rem;
  font-size: 1.5rem;
  font-weight: normal;
  color: var(--ls-ink, #2b2118);
}

.book-more-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  text-align: left;
}

.book-more-grid a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: inherit;
  text-decoration: none;
}

.book-more-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 12px 24px rgba(43, 33, 24, 0.25);
  margin-bottom: 8px;
  transition: transform 0.15s ease;
}

.book-more-grid a:hover img,
.book-more-grid a:focus-visible img {
  transform: translateY(-3px);
}

.book-more-grid strong {
  font-size: 0.98rem;
  font-weight: normal;
  color: var(--ls-ink, #2b2118);
}

.book-more-grid span {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  color: var(--ls-muted, #695943);
}

.book-more-links {
  margin: 2rem 0 0;
  color: var(--ls-muted, #695943);
  font-size: 0.95rem;
}

.book-more-links a {
  color: var(--ls-link, #743d18);
}

.book-page .follow-box {
  margin-bottom: 2rem;
}

@media (max-width: 760px) {
  .book-more-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- The opening (2026-11-01) ---------- */

.book-page .book-opening-link {
  margin: 0.9rem 0 0;
  font-size: 0.95rem;
}

.book-page .book-opening-link a,
.book-page .book-opening-more a {
  color: var(--ls-accent-deep, #8a4e22);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.book-page .book-opening-more {
  margin-top: 1.4rem;
  font-weight: 600;
}

.book-page #opening {
  scroll-margin-top: 90px;
}
