/* =====================================================
   Daily Dino Guy — /book page
   Page-specific styles. Reuses tokens + primitives from main.css.
   ===================================================== */

/* ── BOOK HERO ─────────────────────────────────────────
   Two-column hero: cover image left, text right.
   Uses .hero / .hero--darker base for background + overlay,
   then overrides layout to align left + grid.
   ────────────────────────────────────────────────────── */
.book-hero {
  text-align: left;
  align-items: stretch;
  justify-content: flex-start;
  padding: 110px var(--gutter) 100px;
  min-height: auto;
}
.book-hero .wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}
.book-hero-cover {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.42),
    0 6px 16px rgba(0, 0, 0, 0.28);
  transform: rotate(-1.2deg);
  transition: transform 0.4s var(--ease);
}
.book-hero-cover:hover { transform: rotate(0deg) translateY(-4px); }
.book-hero-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.book-hero-text { max-width: 620px; }
.book-hero-text .hero-h1 {
  font-size: clamp(2.5rem, 5.2vw, 4.2rem);
  text-align: left;
  margin-left: 0;
  margin-bottom: 1rem;
}
.book-hero-sub {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  color: var(--paper);
  font-weight: 300;
  margin-bottom: 1.25rem;
  max-width: 580px;
  font-family: var(--display);
  letter-spacing: -0.01em;
}
.book-hero-sub em { color: var(--sky); font-style: italic; }
.book-hero-byline {
  font-size: 0.95rem;
  color: var(--on-dark);
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}
.book-hero-byline a {
  color: var(--sky);
  border-bottom: 1px solid rgba(185,214,242,0.4);
  padding-bottom: 1px;
  transition: color 0.2s;
}
.book-hero-byline a:hover { color: var(--paper); border-bottom-color: var(--paper); }

.book-hero .speaker-entity {
  text-align: left;
  margin: 0 0 1.5rem;
  max-width: 100%;
}

.book-hero-credibility {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 14px 18px;
  background: rgba(185, 214, 242, 0.10);
  border-left: 3px solid var(--sky);
  border-radius: 4px;
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--paper);
}
.book-hero-credibility strong { color: var(--sky); font-weight: 600; }
.book-hero-credibility-star {
  flex-shrink: 0;
  width: 22px; height: 22px;
  color: var(--sky);
  margin-top: 1px;
}

.book-hero-pullquote {
  border-left: 2px solid rgba(185,214,242,0.4);
  padding-left: 18px;
  margin-bottom: 2rem;
  max-width: 560px;
}
.book-hero-pullquote-text {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--paper);
  margin-bottom: 0.5rem;
}
.book-hero-pullquote-attr {
  font-size: 0.85rem;
  color: var(--on-dark);
  letter-spacing: 0.01em;
}
.book-hero-pullquote-attr strong { color: var(--sky); font-weight: 600; }
.book-hero-pullquote-attr em { font-style: italic; }

.book-hero-ctas {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}
.book-hero-ctas .btn { width: auto; }
.book-hero-secondary-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
}
.book-hero-secondary-ctas a {
  font-size: 0.88rem;
  color: var(--sky);
  border-bottom: 1px solid rgba(185, 214, 242, 0.4);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
.book-hero-secondary-ctas a:hover { color: var(--paper); border-bottom-color: var(--paper); }
.book-hero-quaternary {
  font-size: 0.85rem;
  color: var(--on-dark-soft);
  margin-top: 0.5rem;
  font-style: italic;
}
.book-hero-fineprint {
  margin-top: 1.5rem;
  font-size: 0.78rem;
  line-height: 1.65;
  color: var(--on-dark-soft);
  max-width: 560px;
}

@media (max-width: 880px) {
  .book-hero { padding: 72px var(--gutter-mobile) 60px; }
  .book-hero .wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .book-hero-cover {
    max-width: 280px;
    margin: 0 auto;
    transform: rotate(0deg);
  }
  .book-hero-text { max-width: 100%; margin: 0 auto; }
  .book-hero-text .hero-h1 { font-size: clamp(2.25rem, 8vw, 3rem); }
  .book-hero .speaker-entity { text-align: left; }
  .book-hero-ctas { width: 100%; }
  .book-hero-ctas .btn { width: 100%; justify-content: center; }
}

/* ── SECTION: PREMISE (narrative prose, paper bg) ─────── */
.book-premise {
  padding: 130px 0;
  background: var(--paper);
  border-top: 1px solid var(--border);
}
.book-premise .wrap { max-width: 820px; }
.book-premise-head { margin-bottom: 56px; }
.book-premise-head .s-label { margin-bottom: 1.25rem; }
.book-premise-body p {
  font-size: 1.12rem;
  line-height: 1.78;
  color: var(--ink);
  opacity: 0.88;
  margin-bottom: 1.5rem;
}
.book-premise-body p:first-of-type {
  font-size: 1.35rem;
  line-height: 1.55;
  font-family: var(--display);
  letter-spacing: -0.01em;
  color: var(--ink);
  opacity: 1;
  margin-bottom: 1.75rem;
  font-weight: 500;
}
.book-premise-body em { font-style: italic; color: var(--accent); }

/* ── SECTION: WHAT'S INSIDE (chapter table) ──────────── */
.book-chapters {
  padding: 130px 0;
  background: var(--navy);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.book-chapters::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 0%, rgba(0,109,170,0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(3,83,164,0.14) 0%, transparent 50%);
  pointer-events: none;
}
.book-chapters .wrap { position: relative; z-index: 1; max-width: 980px; }
.book-chapters-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.book-chapters-head .s-label { color: var(--sky); margin-bottom: 1.25rem; }
.book-chapters-head .s-h2 { color: var(--paper); }
.book-chapters-head .s-h2 em { color: var(--sky); }

.chapter-table {
  width: 100%;
  border-collapse: collapse;
}
.chapter-table tr {
  border-top: 1px solid rgba(255,255,255,0.10);
}
.chapter-table tr:last-child { border-bottom: 1px solid rgba(255,255,255,0.10); }
.chapter-table td {
  padding: 22px 0;
  font-size: 0.95rem;
  line-height: 1.55;
  vertical-align: top;
}
.chapter-table td.chapter-num {
  width: 64px;
  font-family: var(--display);
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  color: var(--sky);
  font-weight: 600;
  padding-top: 26px;
}
.chapter-table td.chapter-title {
  width: 42%;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--paper);
  letter-spacing: -0.01em;
  padding-right: 32px;
}
.chapter-table td.chapter-summary {
  color: var(--on-dark);
  font-size: 0.95rem;
}
.chapter-table .placeholder-inline {
  background: rgba(185,214,242,0.10);
  border-color: rgba(185,214,242,0.30);
  color: var(--sky);
}
.book-chapters-footnote {
  margin-top: 32px;
  font-size: 0.85rem;
  color: var(--on-dark-soft);
  font-style: italic;
  line-height: 1.6;
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 720px) {
  .chapter-table td { padding: 16px 0; font-size: 0.88rem; }
  .chapter-table td.chapter-num { width: 44px; }
  .chapter-table td.chapter-title { width: 50%; padding-right: 16px; font-size: 0.95rem; }
}

/* ── SECTION: SAMPLE / FIRST CHAPTER ─────────────────── */
.book-sample {
  padding: 130px 0;
  background: var(--paper);
  border-top: 1px solid var(--border);
}
.book-sample .wrap { max-width: 720px; text-align: center; }
.book-sample-head .s-label { margin-bottom: 1.25rem; }
.book-sample-head .s-h2 { margin-bottom: 1.5rem; }
.book-sample-head .s-h2 em { font-style: italic; }
.book-sample-body {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}
.book-sample-cta { margin-bottom: 1.5rem; }
.book-sample-secondary {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── SECTION: ENDORSEMENTS ──────────────────────────── */
.book-endorsements {
  padding: 130px 0;
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.book-endorsements::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(0,109,170,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(3,83,164,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.book-endorsements .wrap { position: relative; z-index: 1; max-width: 1100px; }
.book-endorsements-head { text-align: center; max-width: 760px; margin: 0 auto 64px; }
.book-endorsements-head .s-label { color: var(--sky); margin-bottom: 1.25rem; }
.book-endorsements-head .s-h2 { color: var(--paper); }
.book-endorsements-head .s-h2 em { color: var(--sky); }

.endorsements-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.endorsement-card {
  background: rgba(248,248,250,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  padding: 36px 36px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.endorsement-card.is-feature { grid-column: 1 / -1; background: rgba(0,109,170,0.10); border-color: rgba(185,214,242,0.20); }
.endorsement-quote-mark {
  position: absolute;
  top: 18px;
  right: 24px;
  font-family: var(--display);
  font-size: 4rem;
  line-height: 1;
  color: var(--sky);
  opacity: 0.32;
  font-style: italic;
  font-weight: 700;
}
.endorsement-body {
  font-family: var(--display);
  font-size: 1.08rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--paper);
  margin-bottom: 1.5rem;
  letter-spacing: -0.005em;
}
.endorsement-body em { font-style: italic; color: var(--sky); }
.endorsement-card.is-feature .endorsement-body {
  font-size: 1.2rem;
  line-height: 1.5;
}
.endorsement-attr {
  margin-top: auto;
  font-size: 0.88rem;
  color: var(--on-dark);
  letter-spacing: 0.01em;
  line-height: 1.5;
}
.endorsement-attr strong { color: var(--sky); font-weight: 600; }
.endorsement-attr em { font-style: italic; }

@media (max-width: 820px) {
  .endorsements-grid { grid-template-columns: 1fr; gap: 22px; }
  .endorsement-card { padding: 28px 26px 26px; }
  .endorsement-body { font-size: 1rem; }
  .endorsement-card.is-feature .endorsement-body { font-size: 1.08rem; }
}

/* ── SECTION: ABOUT THE AUTHOR ──────────────────────── */
.book-author {
  padding: 130px 0;
  background: var(--paper);
  border-top: 1px solid var(--border);
}
.book-author .wrap {
  max-width: 1080px;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 56px;
  align-items: center;
}
.book-author-image {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: 0 18px 40px rgba(24,27,43,0.10);
}
.book-author-image img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.book-author-text .s-label { margin-bottom: 1.25rem; }
.book-author-text .s-h2 { margin-bottom: 2rem; }
.book-author-text .s-h2 em { font-style: italic; }
.book-author-body p {
  font-size: 1.05rem;
  line-height: 1.72;
  color: var(--ink);
  opacity: 0.85;
  margin-bottom: 1.25rem;
}
.book-author-body a {
  color: var(--accent);
  border-bottom: 1px solid rgba(0,109,170,0.3);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
.book-author-body a:hover { color: var(--blue); border-bottom-color: var(--blue); }
.book-author-body em { font-style: italic; }
.book-author-cta { margin-top: 1.5rem; }

@media (max-width: 880px) {
  .book-author .wrap { grid-template-columns: 1fr; gap: 40px; }
  .book-author-image { max-width: 320px; margin: 0 auto; }
}

/* ── SECTION: FOR BOOK CLUBS / EDUCATORS ─────────────── */
.book-educators {
  padding: 130px 0;
  background: var(--navy);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.book-educators::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 70% 0%, rgba(0,109,170,0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 100%, rgba(3,83,164,0.14) 0%, transparent 50%);
  pointer-events: none;
}
.book-educators .wrap { position: relative; z-index: 1; max-width: 1100px; }
.book-educators-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.book-educators-head .s-label { color: var(--sky); margin-bottom: 1.25rem; }
.book-educators-head .s-h2 { color: var(--paper); }
.book-educators-head .s-h2 em { color: var(--sky); }
.book-educators-intro {
  text-align: center;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--on-dark);
  margin: 0 auto 56px;
  max-width: 720px;
}

.educator-resources {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px;
}
.educator-card {
  background: rgba(248,248,250,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.educator-card-h {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--paper);
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.educator-card-body {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--on-dark);
}
.educator-card-body a {
  color: var(--sky);
  border-bottom: 1px solid rgba(185,214,242,0.4);
  padding-bottom: 1px;
}
.educator-card-body a:hover { color: var(--paper); border-bottom-color: var(--paper); }
.educator-card-body strong { color: var(--sky); font-weight: 600; }

@media (max-width: 880px) {
  .educator-resources { grid-template-columns: 1fr; }
}

/* ── SECTION: RELATED READING ────────────────────────── */
.book-related {
  padding: 130px 0;
  background: var(--paper);
  border-top: 1px solid var(--border);
}
.book-related .wrap { max-width: 820px; }
.book-related-head { margin-bottom: 40px; }
.book-related-head .s-label { margin-bottom: 1.25rem; }
.book-related-head .s-h2 em { font-style: italic; }

.related-list {
  list-style: none;
}
.related-list li {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
}
.related-list li:first-child { border-top: 1px solid var(--border); }
.related-list li a {
  color: var(--accent);
  font-weight: 500;
}
.related-list li a:hover { color: var(--blue); }
.related-list li em { font-style: italic; color: var(--muted); font-size: 0.92rem; }
.related-list li.has-placeholder { color: var(--muted); }

/* ── SECTION: WHERE TO GET IT ────────────────────────── */
.book-purchase {
  padding: 130px 0;
  background: var(--ink);
  color: var(--paper);
}
.book-purchase .wrap { max-width: 1080px; }
.book-purchase-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.book-purchase-head .s-label { color: var(--sky); margin-bottom: 1.25rem; }
.book-purchase-head .s-h2 { color: var(--paper); }
.book-purchase-head .s-h2 em { color: var(--sky); }

.purchase-table {
  width: 100%;
  border-collapse: collapse;
}
.purchase-table thead th {
  text-align: left;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sky);
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.18);
}
.purchase-table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.purchase-table tbody tr:hover { background: rgba(248,248,250,0.04); }
.purchase-table tbody td {
  padding: 22px 18px;
  font-size: 0.95rem;
  line-height: 1.55;
  vertical-align: top;
}
.purchase-table td.purchase-where {
  font-family: var(--display);
  font-weight: 600;
  color: var(--paper);
  font-size: 1.02rem;
  letter-spacing: -0.005em;
}
.purchase-table td.purchase-where a {
  color: var(--paper);
  border-bottom: 1px solid var(--sky);
  padding-bottom: 1px;
  transition: color 0.2s;
}
.purchase-table td.purchase-where a:hover { color: var(--sky); }
.purchase-table td.purchase-format {
  color: var(--on-dark);
  white-space: nowrap;
}
.purchase-table td.purchase-format em { font-style: italic; }
.purchase-table td.purchase-best {
  color: var(--on-dark);
}
.purchase-table td.purchase-best a {
  color: var(--sky);
  border-bottom: 1px solid rgba(185,214,242,0.4);
}
.purchase-table td.purchase-best a:hover { color: var(--paper); }
.purchase-table .placeholder-inline {
  background: rgba(185,214,242,0.10);
  border-color: rgba(185,214,242,0.30);
  color: var(--sky);
}

@media (max-width: 820px) {
  .purchase-table thead { display: none; }
  .purchase-table tbody, .purchase-table tr, .purchase-table td {
    display: block;
    width: 100%;
  }
  .purchase-table tbody tr {
    padding: 18px 0;
    border-bottom: 1px solid rgba(255,255,255,0.10);
  }
  .purchase-table tbody td { padding: 4px 0; }
  .purchase-table td.purchase-where { font-size: 1.08rem; margin-bottom: 4px; }
  .purchase-table td.purchase-format {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--sky);
    white-space: normal;
  }
  .purchase-table td.purchase-best { font-size: 0.92rem; opacity: 0.85; }
}
