/* Book detail page styles
   Shared site-wide design should remain in css/style.css.
   This file contains only styles specific to individual book pages. */

:root {
  --book-ink: #161616;
  --book-blue: #0f1c2e;
  --book-crimson: #8b1e24;
  --book-silver: #c9c9c9;
  --book-white: #ffffff;
  --book-teal: #16818a;
  --book-serif: "Cormorant Garamond", Georgia, serif;
  --book-sans: "DM Sans", Arial, sans-serif;
}

.book-detail-page {
  margin: 0;
  background: var(--book-ink);
  color: var(--book-white);
  font-family: var(--book-sans);
}

.book-detail-page * { box-sizing: border-box; }
.book-detail-page a { color: inherit; }
.book-detail-page img { display: block; max-width: 100%; }

/* Social icon row above the original site header.
   The main header, logo, navigation and mobile menu are styled by css/style.css. */
.book-social-bar {
  min-height: 76px;
  padding: 12px 24px 8px;
  background: #0b1724;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.book-social-rule {
  width: min(910px, 80%);
  height: 1px;
  margin-bottom: 17px;
  background: rgba(22, 129, 138, .65);
}
.book-social-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}
.book-social-icons a {
  width: 31px;
  height: 31px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: .94;
  transition: color .2s ease, transform .2s ease, opacity .2s ease;
}
.book-social-icons a:hover,
.book-social-icons a:focus-visible {
  color: #58c0c5;
  opacity: 1;
  transform: translateY(-2px);
}
.book-social-icons svg {
  width: 27px;
  height: 27px;
  display: block;
  fill: currentColor;
}
.book-social-icons a:first-child svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.book-social-icons .social-dot {
  fill: currentColor;
  stroke: none;
}

.section-shell { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.eyebrow {
  margin: 0 0 12px;
  color: #d89a9d;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.book-hero {
  position: relative;
  min-height: 470px;
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
  background:
    linear-gradient(110deg, rgba(7,13,21,.86), rgba(15,28,46,.58), rgba(7,13,21,.88)),
    url("../images/hero-background.jpg") center 48% / cover no-repeat,
    #0f1c2e;
}
.book-hero::after {
  position: absolute;
  inset: auto 8% 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(201,201,201,.55), transparent);
}
.book-hero-content {
  position: relative;
  z-index: 1;
  width: min(900px, calc(100% - 36px));
  padding: 75px 0 85px;
}
.book-hero h1 {
  margin: 0;
  color: #fff;
  font-family: var(--book-serif);
  font-size: clamp(3rem, 7vw, 6.2rem);
  font-weight: 500;
  line-height: .98;
}
.book-tagline {
  max-width: 760px;
  margin: 20px auto 30px;
  color: #f1eeee;
  font-family: var(--book-serif);
  font-size: clamp(1.25rem, 2.7vw, 2rem);
}

.button {
  min-height: 48px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--book-crimson); color: #fff; }
.button-primary:hover { background: #a52a31; }
.button-outline { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.button-outline:hover { border-color: #d89a9d; background: rgba(255,255,255,.06); }

.book-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(250px, .72fr);
  align-items: center;
  gap: clamp(42px, 8vw, 100px);
  padding-block: 92px;
}
.book-copy h2, .trailer-section h2, .other-books-inner h2, .reviews-section h2 {
  margin: 0 0 20px;
  color: #fff;
  font-family: var(--book-serif);
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 500;
  line-height: 1.05;
}
.book-intro-lead {
  color: #e7dfe0;
  font-family: var(--book-serif);
  font-size: 1.45rem;
  line-height: 1.45;
}
.book-description {
  color: #d2d2d2;
  font-size: .98rem;
  line-height: 1.9;
}
.book-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.small-note { color: #aaa; font-size: .78rem; line-height: 1.6; }
.book-cover-wrap {
  width: min(100%, 360px);
  justify-self: center;
  margin: 0;
  padding: 12px;
  background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.015));
  border: 1px solid rgba(201,201,201,.22);
  box-shadow: 0 22px 55px rgba(0,0,0,.48);
}
.book-cover-wrap img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: contain;
  background: #0c1119;
}

.trailer-section {
  padding: 82px 0 92px;
  background: #0c1119;
  border-top: 1px solid rgba(201,201,201,.12);
  border-bottom: 1px solid rgba(201,201,201,.12);
  text-align: center;
}
.trailer-section h2 { margin-bottom: 30px; }
.trailer-placeholder {
  width: min(850px, 100%);
  min-height: 360px;
  margin: auto;
  display: grid;
  place-items: center;
  padding: 30px;
  background:
    linear-gradient(rgba(8,14,23,.78), rgba(8,14,23,.88)),
    url("../images/hero-background.jpg") center / cover no-repeat,
    #182333;
  border: 1px solid rgba(201,201,201,.22);
}
.trailer-placeholder-content { display: grid; justify-items: center; gap: 12px; }
.play-mark {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  padding-left: 4px;
  border-radius: 50%;
  background: var(--book-crimson);
  color: #fff;
  font-size: 1.35rem;
}
.trailer-placeholder p {
  margin: 8px 0 0;
  font-family: var(--book-serif);
  font-size: 1.55rem;
}

.reviews-section { padding-block: 80px; text-align: center; }
.reviews-section blockquote {
  max-width: 800px;
  margin: 30px auto 12px;
  color: #e8e8e8;
  font-family: var(--book-serif);
  font-size: 1.45rem;
  line-height: 1.5;
}
.review-source { color: #c99a9d; }

.other-books-cta {
  padding: 58px 0;
  background: linear-gradient(105deg, #101b2b, #1b1719);
  border-top: 1px solid rgba(201,201,201,.16);
}
.other-books-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.other-books-inner h2 { margin-bottom: 8px; font-size: clamp(2rem, 4vw, 2.8rem); }
.other-books-inner p:not(.eyebrow) { margin: 0; color: #c9c9c9; line-height: 1.7; }

.site-footer {
  padding: 38px 0;
  background: #090d13;
  border-top: 1px solid rgba(201,201,201,.12);
  text-align: center;
}
.footer-inner p { margin: 10px 0 0; color: #aaa; font-size: .82rem; }
.footer-logo { display: inline-block; }
.footer-logo span { text-align: center; }
.footer-inner .copyright { margin-top: 20px; font-size: .72rem; }

@media (max-width: 900px) {
  .main-nav { gap: 14px; }
  .main-nav a { font-size: .72rem; }
  .book-intro { gap: 42px; }
}
@media (max-width: 720px) {
  .book-social-bar { min-height: 68px; }
  .book-social-rule { width: min(620px, 90%); margin-bottom: 12px; }
  .book-social-icons { gap: 18px; }
  .book-social-icons a { width: 29px; height: 29px; }
  .book-social-icons svg { width: 25px; height: 25px; }
  .book-hero { min-height: 390px; }
  .book-intro { grid-template-columns: 1fr; padding-block: 65px; }
  .book-cover-wrap { width: min(290px, 78%); grid-row: 1; }
  .book-actions { flex-direction: column; align-items: stretch; }
  .book-actions .button { width: 100%; }
  .trailer-section { padding: 62px 0; }
  .trailer-placeholder { min-height: 240px; }
  .other-books-inner { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
