/* Editorial refinements retain the existing type, colour variables and book treatment. */
.featured-section { padding-top: 0; }
.section-heading { text-align: center; max-width: 680px; margin: 0 auto 32px; }
.section-heading h2 { margin-bottom: 12px; }
.section-heading > p { color: var(--color-text-muted); font-size: .9375rem; }
.featured-section .books-grid { max-width: 960px; }
.featured-section .book-card { display: flex; flex-direction: column; cursor: default; }
.featured-section .book-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(11,13,16,.09); }
.featured-section .book-card-image {
  display: block; width: 100%; height: 355px; aspect-ratio: auto; padding: 24px;
  background: linear-gradient(150deg, #f7f5f2, #edece8); border-bottom: 1px solid var(--color-border);
}
.featured-section .book-card-image img { width: auto; max-width: 100%; height: 100%; margin: auto; box-shadow: 5px 7px 14px rgba(11,13,16,.15); }
.featured-section .book-card:hover .book-card-image img { transform: scale(1.015); }
.featured-section .book-card-overlay { background: rgba(11,13,16,.34); }
.book-cover-action:focus-visible { outline-offset: -5px; }
.book-cover-action:focus-visible .book-card-overlay { opacity: 1; }
.featured-section .book-card-content { display: flex; flex-direction: column; flex: 1; padding: 28px; }
.featured-section .book-card-badge { align-self: flex-start; font-size: .6875rem; }
.featured-section .book-card h3 { font-size: 1.8rem; }
.featured-section .book-card-description { line-height: 1.7; }
.featured-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 24px; }
.featured-actions .btn { min-height: 44px; padding: 11px 18px; font-size: .8125rem; }
.featured-actions .btn:disabled { color: var(--color-text-muted); border-color: var(--color-border); background: var(--color-surface); cursor: default; }
.featured-loading { min-height: 500px; padding: 48px; text-align: center; grid-column: 1/-1; }
.timeline-section { border-top: 1px solid var(--color-border); padding-bottom: 24px; }
.timeline-section .timeline { padding: 12px 5px 12px; justify-content: flex-start; }
.timeline-section .timeline-item { box-shadow: 0 4px 16px rgba(11,13,16,.035); will-change: auto; }
.timeline-section .timeline-item:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(11,13,16,.07); }
.timeline-date { min-height: 2.8em; display: flex; align-items: center; justify-content: center; }
.timeline-status { font-size: .75rem; color: var(--color-accent); line-height: 1.5; margin-top: 10px; }
.timeline-preorder { display: block; font-size: .6875rem; padding: 10px 4px; color: var(--color-accent); }
.timeline-preorder:disabled { cursor: default; color: var(--color-text-muted); }
.reader-reviews-section { background: var(--color-surface); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.reader-reviews-carousel { min-width: 0; }
.reader-reviews-controls { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-bottom: 18px; }
.reader-reviews-controls[hidden] { display: none; }
.review-control { display: inline-flex; justify-content: center; align-items: center; min-width: 44px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--color-border); border-radius: 5px; background: #fff; color: var(--color-text-primary); }
.review-control:hover { border-color: var(--color-accent); color: var(--color-accent); }
.review-position { min-width: 48px; text-align: center; font-size: .75rem; font-variant-numeric: tabular-nums; color: var(--color-text-muted); }
.reader-reviews-track { position: relative; display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding: 4px 0 14px; scrollbar-width: thin; scrollbar-color: var(--color-border) transparent; }
.reader-review-card { flex: 0 0 calc((100% - 48px) / 3); min-width: 0; scroll-snap-align: start; display: flex; flex-direction: column; margin: 0; background: #fff; border: 1px solid var(--color-border); border-top: 2px solid var(--color-accent); border-radius: 7px; padding: 28px; }
.reader-review-stars { color: var(--color-accent); letter-spacing: .12em; font-size: .875rem; margin-bottom: 16px; }
.reader-review-source-label { color: var(--color-accent); font-size: .75rem; margin-bottom: 16px; }
.reader-review-card blockquote { margin-bottom: 22px; }
.reader-review-card blockquote p { font-size: .9rem; line-height: 1.8; color: var(--color-text-primary); }
.reader-review-card figcaption { font-weight: 600; font-size: .875rem; margin-top: auto; }
.reader-review-card figcaption span { display: block; font-weight: 400; font-size: .75rem; color: var(--color-text-muted); margin-top: 3px; }
.text-link { color: var(--color-accent); text-decoration: underline; text-underline-offset: 4px; }
.review-more { align-self: flex-start; display: inline-flex; align-items: center; padding: 12px 0 0; font-size: .75rem; min-height: 44px; }
.reader-review-disclosure { color: var(--color-text-muted); font-size: .6875rem; margin-top: 8px; }
.home-newsletter { display: flex; align-items: center; justify-content: space-between; gap: 36px; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 40px 48px; position: relative; overflow: hidden; }
.home-newsletter::before { content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 3px; background: var(--color-accent); }
.home-newsletter-copy { max-width: 610px; }
.home-newsletter h2 { margin-bottom: 15px; }
.home-newsletter-copy > p { font-size: .9375rem; }
.home-newsletter-action { flex-shrink: 0; text-align: center; max-width: 230px; }
.home-newsletter-action > p { font-size: .75rem; color: var(--color-text-muted); margin-top: 12px; }

/* The close and navigation controls are outside the independently scrolling pages. */
.book-modal { height: 100vh; height: 100dvh; padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); overflow: hidden; }
.book-modal-content { max-height: 100%; overflow: visible; min-height: 0; }
.book-modal-toolbar { display: flex; justify-content: flex-end; flex: 0 0 48px; margin-bottom: 8px; }
.book-modal-close { position: static; opacity: 1; min-width: 92px; min-height: 44px; padding: 8px 15px; background: #242427; color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 6px; z-index: 2; }
.book-modal-close:hover { background: #37373b; }
.book-container, .book, .book-pages-container { min-height: 0; }
.book-container { flex: 1 1 auto; overflow: hidden; }
.book { height: 100%; max-height: 100%; }
.book-pages-container { height: min(70vh, calc(100dvh - 160px)); }
.book-page { min-width: 0; }
.page-body { min-height: 0; min-width: 0; overscroll-behavior: contain; overflow-x: hidden; overflow-wrap: anywhere; }
.page-text-wrap p { font-size: .875rem; line-height: 1.8; }
.book-nav { flex: 0 0 auto; margin-top: 8px; min-height: 48px; gap: 12px; }
.book-nav-btn { min-height: 44px; opacity: 1; }
.book-nav-btn:disabled { opacity: .45; }
.book-modal :focus-visible { outline-color: #fff; }
.book-modal .page-body:focus-visible { outline: 2px solid var(--color-accent); outline-offset: -4px; }
.book-modal .page-body button:focus-visible { outline-color: var(--color-accent); }
.book-purchase-buttons .btn:disabled { background: #e5e5e5; color: #52525b; opacity: 1; cursor: default; }
.read-card { display: flex; flex-direction: column; }
.read-card > .btn { align-self: flex-start; margin-top: auto; }
.read-card h2 { font-size: 1.65rem; margin-bottom: 16px; }
.form-status { color: var(--color-error); font-size: .875rem; margin-top: 12px; }

@media (min-width: 720px) {
  .timeline-section .timeline { scroll-padding-inline: 5px; }
  .timeline-section .timeline-item { width: 175px; flex-basis: 175px; align-self: stretch; }
  .timeline-section .timeline-line { width: 22px; flex-basis: 22px; }
  .timeline-title { min-height: 2.8em; }
}
@media (max-width: 900px) {
  .home-newsletter { padding: 32px; gap: 24px; }
  .reader-reviews-track { gap: 16px; }
  .reader-review-card { flex-basis: calc((100% - 16px) / 2); padding: 22px; }
}
@media (max-width: 768px) {
  .featured-section .books-grid { max-width: 450px; }
  .featured-section .book-card-image { height: 330px; }
  .featured-section .book-card-content { padding: 24px; }
  .featured-section .book-card h3 { font-size: 1.7rem; }
  .reader-review-card { flex-basis: 87%; }
  .reader-reviews-controls { justify-content: center; }
  .timeline-section { padding-bottom: 20px; }
  .home-newsletter { flex-direction: column; align-items: flex-start; }
  .home-newsletter-action { text-align: left; max-width: none; }
  .book-modal { padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); }
  .book-modal-content { height: 100%; max-height: 100%; }
  .book-modal-toolbar { margin-bottom: 6px; }
  .book-container { flex: 1; }
  .book { padding: 5px; }
  .book-pages-container { height: 100%; max-height: 100%; flex-direction: column; }
  .book-page { min-height: 0; height: 100%; padding: 0; }
  .page-body { padding: 22px 20px 60px; }
  .book-nav { gap: 6px; margin-top: 6px; justify-content: space-between; }
  .book-nav-btn { font-size: .8125rem; padding: 8px 10px; }
  .book-nav-dots { gap: 6px; }
  .book-nav-dot { width: 6px; height: 6px; }
  .book-info { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .book-card *, .timeline-item { transition: none !important; transform: none !important; }
}
