/* ═══════════════════════════════
   book.css — reusable book page styles
   ═══════════════════════════════ */

.book-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2.5rem 6rem;
}

.back-link {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #bbb;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 3rem;
  transition: color 0.15s;
}
.back-link:hover { color: #111; }

/* ── Hero ── */
.book-hero {
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: 2rem;
}

.book-cover {
  width: 100%;
}

.book-cover-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.book-info {
  min-width: 0;
}

.book-cover img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 3px 4px 6px rgba(0,0,0,0.32), 1px 2px 2px rgba(0,0,0,0.18);
}

.book-title {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111;
  line-height: 1.05;
  margin-bottom: 0.4rem;
}

.book-meta {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: #bbb;
  margin-bottom: 1.75rem;
}

.book-description {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.1rem;
  line-height: 1.85;
  color: #444;
  margin-bottom: 2rem;
}
.book-description p { margin-bottom: 0.9rem; }
.book-description p:last-child { margin-bottom: 0; }

/* ── Awards — medallions ── */
.book-awards {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  min-width: 0;
}

.book-awards img {
  object-fit: contain;
}

/* ── Buy links ── */
.buy-label {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #bbb;
  display: block;
  margin-bottom: 0.6rem;
}

.buy-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.buy-row a {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: #111;
  text-decoration: none;
  border-bottom: 1px solid #111;
  padding-bottom: 1px;
  transition: opacity 0.15s;
}
.buy-row a:hover { opacity: 0.4; }

/* ── Divider ── */
.book-divider {
  border: none;
  border-top: 1px solid #eee;
  margin: 3rem 0;
}

/* ── Reviews ── */
.review {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.8;
  color: #444;
  font-style: italic;
  margin-bottom: 1.5rem;
  display: grid;
  grid-template-columns: 1.2rem 1fr;
  gap: 0.5rem;
  align-items: start;
}

.review::before {
  content: '';
  display: block;
}

.review.starred::before {
  content: '★';
  color: #111;
  font-style: normal;
  font-size: 1rem;
  line-height: 1.9;
}

.review-content {
  font-style: italic;
}

.review-source {
  font-style: normal;
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #bbb;
  display: block;
  margin-top: 0.3rem;
}



/* ── Press ── */
.press-item {
  border-top: 1px solid #eee;
  padding: 1.5rem 0;
}
.press-item:last-child { border-bottom: 1px solid #eee; }

.press-outlet {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #bbb;
  margin-bottom: 0.25rem;
}

.press-headline {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.2rem;
  color: #111;
  margin-bottom: 0.4rem;
  line-height: 1.4;
}

.press-quote {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #666;
  font-style: italic;
}

/* ── Video ── */
.book-video {
  border-top: 1px solid #eee;
  padding-top: 3rem;
  margin-top: 1rem;
}

.book-video-frame {
  position: relative;
  width: 100%;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #111;
  overflow: hidden;
}

.book-video-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.book-video-caption {
  width: 100%;
  margin: 1.5rem auto 0;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #666;
  font-style: italic;
  text-align: center;
}

/* ── Prev / Next ── */
.book-prevnext {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  border-top: 1px solid #eee;
  padding-top: 2rem;
  margin-top: 3rem;
}

.prevnext-prev,
.prevnext-next {
  min-width: 0;
  max-width: 48%;
}

.prevnext-label {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #bbb;
  margin-bottom: 0.3rem;
}

.prevnext-next { text-align: right; }

.prevnext-next:only-child { margin-left: auto; }
.prevnext-prev:only-child { margin-right: auto; }

.prevnext-title {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.05rem;
  color: #111;
  text-decoration: none;
  display: block;
}
.prevnext-title:hover { opacity: 0.5; }

/* ── Responsive ── */
/* ── Responsive ── */
@media (max-width: 1000px) {
  .book-hero { grid-template-columns: 1fr; gap: 2rem; }
  .book-cover { width: 100%; max-width: 100%; }
  .book-cover img { width: 100%; }
}

@media (max-width: 640px) {
  .book-page { padding: 2rem 1.5rem 4rem; }
  .book-title { font-size: 1.7rem; }
  .award-wrap { height: 56px; }
  .award-wrap img { height: 56px; }
  .book-awards { gap: 0.6rem; }
  .award-wrap .award-tip { display: none; }
}

.book-meta a {
  color: #bbb;
  text-decoration: none;
  border-bottom: 1px solid #ddd;
  transition: color 0.15s, border-color 0.15s;
}

.book-meta a:hover {
  color: #111;
  border-color: #111;
}

.review-source a {
  color: #bbb;
  text-decoration: none;
  border-bottom: 1px solid #ddd;
  transition: color 0.15s, border-color 0.15s;
}

.review-source a:hover {
  color: #111;
  border-color: #111;
}

.book-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.book-buy-btn {
  display: inline-block;
  margin-top: 1.5rem;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: #111;
  padding: 0.75rem 2rem;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.15s;
}

.book-buy-btn:hover {
  background: #444;
}

.book-btn-row .book-buy-btn {
  margin-top: 0;
}

.book-site-btn {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #111;
  background: #fff;
  border: 1px solid #111;
  padding: 0.75rem 2rem;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.15s, color 0.15s;
}

.book-site-btn:hover {
  background: #111;
  color: #fff;
}

/* ── Award tooltips ── */
.award-wrap {
  position: relative;
  display: inline-flex;
  height: 72px;
  width: auto;
  max-width: 100%;
  min-width: 0;
  flex-shrink: 0;
}

.award-wrap img {
  height: 72px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  cursor: default;
}

.award-wrap .award-tip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  color: #fff;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  padding: 0.35rem 0.65rem;
  border-radius: 2px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 20;
}

.award-wrap .award-tip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #111;
}

.award-wrap:hover .award-tip {
  opacity: 1;
}

/* ── Interior spreads ── */
.book-spreads {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2rem;
}

.book-spreads img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 2px 3px 8px rgba(0,0,0,0.12);
}

/* ── Interior spread filmstrip ── */
.spread-strip {
  display: flex;
  gap: 2px;
  margin-top: 1.5rem;
  height: 26px;
  border-radius: 2px;
  overflow: hidden;
}

.spread-strip-item {
  flex: 1;
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
  background: #eee;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.spread-strip-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease, opacity 0.2s ease;
}

.spread-strip-item:hover img {
  transform: scale(1.06);
  opacity: 0.88;
}

.spread-strip-item:focus-visible {
  outline: 2px solid #111;
  outline-offset: -2px;
}

/* ── Lightbox ── */
.spread-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 2rem;
}

.spread-lightbox.active { display: flex; }

.spread-lightbox-img {
  max-width: 90vw;
  max-height: 78vh;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.spread-lightbox-video {
  width: min(90vw, 900px);
  aspect-ratio: 16 / 9;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  background: #000;
}

.spread-lightbox-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.spread-lightbox-caption {
  color: #eee;
  font-family: 'EB Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 600px;
  text-align: center;
  margin-top: 1.25rem;
}

.spread-lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: 0;
  color: #eee;
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.5rem;
}
.spread-lightbox-close:hover { opacity: 0.7; }

.spread-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  border: 0;
  color: #eee;
  font-size: 2.8rem;
  line-height: 1;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, opacity 0.15s;
}
.spread-lightbox-nav:hover { background: rgba(255,255,255,0.18); }
.spread-lightbox-nav:disabled { opacity: 0.25; cursor: default; }
.spread-lightbox-nav:disabled:hover { background: rgba(255,255,255,0.08); }

.spread-lightbox-prev { left: 1.5rem; }
.spread-lightbox-next { right: 1.5rem; }

@media (max-width: 640px) {
  .spread-lightbox-nav { width: 44px; height: 44px; font-size: 2.2rem; }
  .spread-lightbox-prev { left: 0.5rem; }
  .spread-lightbox-next { right: 0.5rem; }
}

.book-credits {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #999;
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

/* Common Sense Selection — taller badge, match width of round medals */
.award-wrap img[alt="Common Sense Selection — Families"] {
  width: 72px;
  height: auto;
}
