/* ==========================================================================
   Page layouts — mobile-first; enhanced at 700px and 1000px
   ========================================================================== */

.container { max-width: var(--max-wide); margin: 0 auto; padding: 0 5vw; }
.container-narrow { max-width: var(--max-narrow); margin: 0 auto; padding: 0 5vw; }

.page-section { padding: 56px 0; }
.page-section:first-child { padding-top: 40px; }

.eyebrow {
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-strong); margin: 0 0 16px;
}
.lede {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(21px, 3vw, 26px); line-height: 1.5;
  color: var(--quote); margin: 0 0 20px;
}
.prose p { font-size: 16px; line-height: 1.85; color: var(--text-muted); margin: 0 0 18px; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- Hero (Home) ---------- */

.hero {
  display: grid;
  grid-template-columns: 1fr;
  min-height: calc(100vh - var(--header-h) - var(--page-turn-h));
}
.hero-spine {
  display: none;
}
.hero-main {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 60vh;
}
.hero-main .hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 38%;
  background: var(--surface); /* visible briefly before the video's first frame paints */
}
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, oklch(12% 0.02 50 / 0.85) 0%, oklch(12% 0.02 50 / 0.35) 48%, oklch(12% 0.02 50 / 0.05) 75%);
}
.hero-content {
  position: relative; z-index: 1;
  margin: 20px;
  max-width: 600px;
  padding: 26px 26px 30px;
  /* A dedicated backdrop behind the hero text — the scrim gradient alone
     isn't reliable contrast once the backdrop is a moving video, so the
     text sits on its own translucent, blurred panel regardless of what's
     playing behind it. */
  background: oklch(10% 0.015 50 / 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: page-fade-in var(--dur-slow) var(--ease) both;
}
.hero-kicker {
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: oklch(92% 0.02 75); margin: 0 0 16px;
  text-shadow: 0 1px 3px oklch(0% 0 0 / 0.35);
}
.hero-desc {
  font-size: 15.5px; line-height: 1.7;
  color: oklch(95% 0.01 75); margin: 0 0 26px; max-width: 520px;
  text-shadow: 0 1px 3px oklch(0% 0 0 / 0.35);
}
.hero-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(34px, 8vw, 58px); line-height: 1.05;
  color: oklch(97% 0.01 75); margin: 0 0 18px;
  text-shadow: 0 2px 6px oklch(0% 0 0 / 0.35);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.teaser-quote {
  text-align: center;
  padding: 48px 5vw;
}

/* ---------- Grids ---------- */

.grid-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.grid-cards .card,
.grid-cards .card-outline { padding: 26px; }

.doorway-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.doorway-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 24px;
  text-align: left;
}
.doorway-card .doorway-num {
  font-family: var(--font-display); font-size: 28px; color: var(--surface-2);
}
.doorway-card h3 { font-family: var(--font-display); font-size: 20px; color: var(--text); }
.doorway-card p { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; flex: 1; }
.doorway-card .doorway-arrow { font-size: 14px; color: var(--link); font-weight: 500; }

/* ---------- Story page ---------- */

.story-layout { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; }
.story-cover {
  aspect-ratio: 4 / 5;
  max-width: 360px;
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.story-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.story-cover:hover img { transform: scale(1.04); }
.theme-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 32px; }
.actions-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Author page ---------- */

.author-layout { display: grid; grid-template-columns: 1fr; gap: 32px; }
.author-photo {
  aspect-ratio: 4 / 5;
  max-width: 360px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.author-photo img { width: 100%; height: 100%; object-fit: cover; }
.socials-row { display: flex; gap: 14px; margin: 28px 0; }

/* ---------- Reviews page ---------- */

.review-list { display: flex; flex-direction: column; gap: 16px; }
.review-empty { font-size: 15px; color: var(--text-faint); font-style: italic; margin: 0; }
.review-card { display: flex; flex-direction: column; gap: 14px; padding: 26px; }
.review-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.review-source {
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint);
}
.review-stars { font-size: 15px; color: var(--accent-strong); letter-spacing: 2px; }
.review-quote {
  font-family: var(--font-display); font-style: italic; font-size: 18px; line-height: 1.6;
  color: var(--text);
  margin: 0 0 10px;
}
.review-quote.is-clamped {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}
.review-toggle {
  display: inline-block;
  background: none; border: none; padding: 0;
  margin: 0 0 12px;
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  color: var(--link); cursor: pointer;
}
.review-toggle[hidden] { display: none; }
.review-toggle:hover { color: var(--link-hover); text-decoration: underline; }
.review-name { font-size: 13px; color: var(--text-faint); }

/* ---------- Events page ---------- */

.media-grid { margin-bottom: 56px; }
.media-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.media-thumb {
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.media-thumb img { width: 100%; height: 100%; object-fit: cover; }
.media-thumb-fallback {
  font-family: var(--font-display); font-size: 32px; font-weight: 600;
  color: var(--text-faint);
}
.media-body { padding: 18px 20px 22px; }
.media-platform {
  display: block;
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-strong); margin-bottom: 8px;
}
.media-body h3 {
  font-family: var(--font-display); font-size: 17px; font-weight: 600;
  color: var(--text); line-height: 1.4;
}

.event-card { padding: 26px; display: flex; flex-direction: column; gap: 20px; justify-content: space-between; }
.event-card h3 { font-family: var(--font-display); font-size: 20px; color: var(--text); margin-bottom: 10px; }
.event-meta { font-size: 13.5px; color: var(--text-muted); margin: 0 0 4px; }
.event-desc { font-size: 14px; line-height: 1.7; color: var(--text-muted); margin: 12px 0 0; }
.event-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  flex-wrap: wrap;
}
.event-price { font-size: 15px; font-weight: 600; color: var(--accent-strong); }

/* ---------- Buy page ---------- */

.chapter-divider { height: 1px; background: var(--border); margin: 48px 0 40px; }
.retailer-card { display: flex; flex-direction: column; gap: 14px; padding: 28px 24px; }
.retailer-card h3 { font-family: var(--font-display); font-size: 21px; color: var(--text); }
.retailer-card p { font-size: 14px; line-height: 1.6; color: var(--text-muted); flex: 1; margin: 0; }
.retailer-footnote { font-size: 13px; color: var(--text-faint); margin: 20px 0 0; }

.store-card { padding: 24px; }
.store-card h3 { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.store-card p.line { font-size: 13px; line-height: 1.6; color: var(--text-muted); margin: 0; }
.store-card p.contact { font-size: 13px; color: var(--accent-strong); margin: 12px 0 0; }
.store-card p.contact + p.contact { margin-top: 2px; }
.store-fallback p { font-size: 13px; line-height: 1.7; color: var(--text-muted); margin: 0 0 16px; }

/* ---------- Contact page ---------- */

.contact-layout { display: grid; grid-template-columns: 1fr; gap: 48px; }
.speaking-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 24px; }

.contact-details { display: flex; flex-direction: column; gap: 14px; margin: 0 0 28px; max-width: 340px; }
.contact-detail {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  transition: border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.contact-detail:hover { border-color: var(--accent); transform: translateY(-2px); }
.contact-detail-icon {
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--surface-2);
  color: var(--accent-strong);
}
.contact-detail-icon svg { width: 18px; height: 18px; }
.contact-detail-text { display: flex; flex-direction: column; gap: 4px; }
.contact-detail-label {
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-faint);
}
.contact-detail-value { font-size: 16px; font-weight: 500; color: var(--text); }

/* ---------- Privacy page ---------- */

.legal-page .chapter-head { margin-bottom: 8px; }
.legal-updated {
  font-size: 13px; color: var(--text-faint); margin: 0 0 32px;
}
.legal-section {
  padding-top: 32px; margin-top: 32px;
  border-top: 1px solid var(--border);
}
.legal-section:first-of-type { padding-top: 0; margin-top: 0; border-top: none; }
.legal-heading {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(20px, 2.6vw, 26px); color: var(--quote);
  margin: 0 0 14px;
}
.legal-list {
  margin: 0 0 16px;
  padding-left: 22px;
  display: flex; flex-direction: column; gap: 8px;
}
.legal-list li { font-size: 15.5px; line-height: 1.7; color: var(--text-muted); }
.legal-footnote { font-size: 14.5px; line-height: 1.7; color: var(--text-muted); font-style: italic; margin: 0; }

/* ==========================================================================
   Breakpoints
   ========================================================================== */

@media (min-width: 640px) {
  .grid-cards { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .doorway-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-actions .btn { flex: none; }
}

@media (min-width: 780px) {
  .story-layout { grid-template-columns: 0.9fr 1.1fr; gap: 56px; }
  .author-layout { grid-template-columns: 1.1fr 0.9fr; gap: 56px; }
  .author-photo { position: sticky; top: calc(var(--header-h) + 24px); max-width: none; }
  .story-cover { max-width: none; }
  .contact-layout { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 860px) {
  .doorway-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
  .hero { grid-template-columns: 64px 1fr; }
  .hero-spine {
    display: flex; align-items: center; justify-content: center;
    writing-mode: vertical-rl;
    border-right: 1px solid var(--border);
    background: var(--surface);
  }
  .hero-spine span {
    font-family: var(--font-display); font-style: italic;
    font-size: 18px; letter-spacing: .02em; color: var(--quote);
  }
  .hero-content { margin: 6vh 6vw; padding: 34px 38px 38px; max-width: 640px; }
  .hero-title { font-size: clamp(40px, 5.6vw, 64px); }
}

@media (min-width: 1000px) {
  .review-card { flex-direction: row; align-items: flex-start; gap: 28px; }
  .review-meta { flex-direction: column; align-items: flex-start; min-width: 130px; gap: 6px; }
}
