/* My Five Ravens Publishing — main styles */

:root {
  /* Aligned with Vercel draft: https://new-website-1777678502766-7ifbw4dgm-teamavallon.vercel.app */
  --primary: #a85b3a;
  --primary-hover: #8e4d31;
  --bg: #f4efe6;
  --text: #1a1f2e;
  --muted: #5c6370;
  --surface: #eae4d9;
  --footer-bg: #1a1f2e;
  --footer-text: #f4efe6;
  --footer-muted: rgba(244, 239, 230, 0.72);

  --cream: var(--bg);
  --cream-deep: var(--surface);
  --ink: var(--text);
  --ink-soft: #2d3548;
  --slate: var(--muted);
  --slate-muted: #7a8290;
  --accent: var(--primary);
  --accent-hover: var(--primary-hover);
  --accent-subtle: rgba(168, 91, 58, 0.14);

  --white: #fdfcfa;
  --border: rgba(26, 31, 46, 0.08);
  --shadow-soft: 0 2px 24px rgba(26, 31, 46, 0.08);
  --shadow-btn: 0 4px 12px rgba(168, 91, 58, 0.28);
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --measure: 68ch;
  --reading-width: 680px;
  --space-section: clamp(3.75rem, 9vw, 6rem);
  --header-height: 5.25rem;
  --wrap-pad: clamp(1rem, 4vw, 2rem);
  --header-bg: rgba(244, 239, 230, 0.72);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 110% 70% at 50% -15%, rgba(168, 91, 58, 0.085), transparent 52%),
    linear-gradient(180deg, #f8f3ea 0%, var(--bg) 22%, #f1ece2 55%, var(--bg) 100%);
  background-attachment: scroll;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s ease, background-color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--cream);
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin: 0 0 0.75em;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
}

h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
}

h3 {
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
}

.text-lead {
  font-size: 1.2rem;
  line-height:1.62;
  color: var(--slate);
}

.text-muted {
  color: var(--slate);
  font-size: 0.95rem;
}

.label-kicker {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
  display: block;
}

/* Layout */
.wrap {
  width: min(1280px, 100%);
  margin-inline: auto;
  padding-inline: var(--wrap-pad);
}

.stack-loose > * + * {
  margin-top: 1.25rem;
}

.section {
  padding-block: var(--space-section);
}

.section--tight {
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}

.section--surface {
  background: linear-gradient(
    180deg,
    rgba(234, 228, 217, 0.35) 0%,
    var(--surface) 8%,
    var(--surface) 92%,
    rgba(244, 239, 230, 0.5) 100%
  );
  border-block: 1px solid rgba(26, 31, 46, 0.045);
}

.section--border-top {
  border-top: 1px solid var(--border);
}

.feature-intro {
  max-width: 52rem;
  margin-bottom: 2.5rem;
}

.feature-intro:last-of-type {
  margin-bottom: 0;
}

.feature-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.feature-card {
  background: rgba(253, 252, 250, 0.72);
  border: 1px solid rgba(26, 31, 46, 0.06);
  border-radius: 12px;
  padding: clamp(1.35rem, 3vw, 2rem);
  box-shadow: 0 1px 0 rgba(26, 31, 46, 0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.feature-card h3 {
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 0.65rem;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  color: var(--slate);
  font-size: 0.98rem;
  line-height: 1.62;
}

/* Header — blends into page gradient */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border-bottom: 1px solid rgba(26, 31, 46, 0.04);
}

.header-inner {
  width: min(1280px, 100%);
  margin-inline: auto;
  padding-inline: var(--wrap-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-height);
  padding-block: 0.85rem;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.logo:hover {
  opacity: 0.88;
}

.logo img {
  height: clamp(48px, 7vw, 64px);
  width: auto;
  max-width: min(380px, 88vw);
}

.logo-text-fallback {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.15;
  max-width: 11rem;
}

/* Nav */
.nav-primary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.15rem 0.35rem;
}

.nav-primary a {
  position: relative;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
  padding: 0.45rem 0.5rem;
  border-radius: 4px;
  transition: color 0.2s ease;
}

.nav-primary a::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 0.15rem;
  height: 1px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-primary a:hover {
  color: var(--primary);
  background: transparent;
}

.nav-primary a:hover::after,
.nav-primary a.is-active::after {
  transform: scaleX(1);
}

.nav-primary a.is-active {
  color: var(--primary);
  background: transparent;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(26, 31, 46, 0.08);
  border-radius: 8px;
  background: rgba(253, 252, 250, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  color: var(--ink);
}

.nav-toggle-icon {
  display: block;
  width: 20px;
  height: 14px;
  position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

.nav-toggle-icon::before {
  top: 0;
  box-shadow: 0 6px 0 currentColor;
}

.nav-toggle-icon::after {
  bottom: 0;
}

@media (max-width: 960px) {
  .nav-toggle {
    display: flex;
  }

  .nav-primary {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1rem;
    background: rgba(244, 239, 230, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(26, 31, 46, 0.05);
    box-shadow: 0 12px 32px rgba(26, 31, 46, 0.06);
  }

  .nav-primary.is-open {
    display: flex;
  }

  .nav-primary a {
    padding: 0.65rem 0.75rem;
    border-radius: 6px;
  }
}

/* Footer — draft dark band */
.site-footer {
  border-top: 1px solid rgba(244, 239, 230, 0.08);
  background: var(--footer-bg);
  color: var(--footer-text);
  padding-block: 3rem 2.75rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--footer-text);
  margin-bottom: 0.35rem;
}

.footer-note {
  font-size: 0.9rem;
  color: var(--footer-muted);
  max-width: 36ch;
  margin: 0;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: flex-start;
}

@media (min-width: 640px) {
  .footer-nav {
    justify-content: flex-end;
  }
}

.footer-nav a {
  font-size: 0.85rem;
  color: var(--footer-muted);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--footer-text);
}

.footer-copy {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(244, 239, 230, 0.12);
  font-size: 0.8125rem;
  color: var(--footer-muted);
}

.footer-powered {
  margin-top: 0.65rem;
  font-size: 0.75rem;
  color: var(--footer-muted);
  letter-spacing: 0.03em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  padding: 0.85em 1.35em;
  border-radius: 6px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--white);
}

@media (prefers-reduced-motion: no-preference) {
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-btn);
  }
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: rgba(26, 31, 46, 0.22);
}

.btn-secondary:hover {
  border-color: var(--text);
  color: var(--text);
  background: rgba(26, 31, 46, 0.04);
}

.btn-ghost {
  background: transparent;
  color: var(--slate);
  border-color: transparent;
  font-weight: 500;
  padding-inline: 1em;
}

.btn-ghost:hover {
  color: var(--accent);
  background: var(--accent-subtle);
}

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

.btn--block {
  width: 100%;
}

.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.headline-gap {
  margin-top: 1rem;
}

/* Hero — larger cover, gradient ties to header + body */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4rem, 10vw, 6.5rem);
  padding-top: clamp(2.75rem, 6vw, 4.25rem);
  margin-top: -1px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 55% at 92% 8%, rgba(168, 91, 58, 0.1), transparent 58%),
    radial-gradient(ellipse 55% 50% at 0% 100%, rgba(234, 228, 217, 0.65), transparent 58%),
    linear-gradient(
      185deg,
      rgba(248, 243, 234, 0.7) 0%,
      var(--bg) 32%,
      rgba(241, 236, 226, 0.95) 70%,
      var(--surface) 100%
    );
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  display: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: center;
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: clamp(2.25rem, 5vw, 4.5rem);
    align-items: center;
  }
}

.hero-copy {
  max-width: 38rem;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

@media (min-width: 900px) {
  .hero-visual {
    justify-content: flex-end;
  }
}

.hero-cover-frame {
  position: relative;
  max-width: min(440px, 100%);
  width: min(100%, 440px);
  box-shadow:
    0 2px 4px rgba(26, 31, 46, 0.05),
    0 32px 64px rgba(26, 31, 46, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

@media (min-width: 1100px) {
  .hero-cover-frame {
    max-width: min(480px, 100%);
    width: min(100%, 480px);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-visual:hover .hero-cover-frame {
    transform: rotate(2deg);
  }
}

.hero-cover-frame img {
  width: 100%;
  border-radius: 6px;
}

/* Home hero — landscape illustration (replaces portrait book cover) */
.hero-art-frame {
  position: relative;
  max-width: min(640px, 100%);
  width: 100%;
  box-shadow:
    0 2px 4px rgba(26, 31, 46, 0.05),
    0 32px 64px rgba(26, 31, 46, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

@media (min-width: 1100px) {
  .hero-art-frame {
    max-width: min(680px, 100%);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-visual:hover .hero-art-frame {
    transform: translateY(-5px);
    box-shadow:
      0 4px 8px rgba(26, 31, 46, 0.06),
      0 36px 72px rgba(26, 31, 46, 0.14),
      inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  }
}

.hero-art-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.hero-cover-caption-hint {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--slate-muted);
  max-width: 260px;
  margin-inline: auto;
}

/* Content sections grid */
.split-section {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .split-section {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: start;
  }
}

.prose-block {
  max-width: var(--measure);
}

.prose-block p {
  margin: 0 0 1.1em;
  color: var(--slate);
}

.prose-block p:last-child {
  margin-bottom: 0;
}

.prose-block strong {
  color: var(--ink);
  font-weight: 600;
}

/* Book page */
.book-hero {
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
  background: linear-gradient(180deg, transparent 0%, rgba(234, 228, 217, 0.25) 45%, transparent 100%);
}

.book-layout {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 840px) {
  .book-layout {
    grid-template-columns: minmax(300px, 460px) 1fr;
    gap: clamp(2.5rem, 5vw, 4.5rem);
    align-items: center;
  }
}

.book-cover-large {
  box-shadow:
    var(--shadow-soft),
    inset 0 0 0 1px rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  overflow: hidden;
}

.book-meta .subtitle {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--slate);
  margin: 0 0 0.5rem;
  font-weight: 500;
  line-height: 1.35;
}

.book-meta .author {
  font-size: 1rem;
  color: var(--slate);
  margin: 0 0 1.5rem;
}

/* Purchase cards */
.cards-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .cards-grid--2 {
    grid-template-columns: repeat(2, 1fr);
    align-items: stretch;
    max-width: 52rem;
    margin-inline: auto;
  }

  .cards-grid--3 {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}

.purchase-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 1px 0 rgba(26, 35, 50, 0.04);
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

.purchase-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.purchase-card .price {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.75rem;
}

.purchase-card .desc {
  flex-grow: 1;
  font-size: 0.95rem;
  color: var(--slate);
  margin: 0 0 1.25rem;
}

.amazon-note {
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  background: rgba(26, 35, 50, 0.04);
  border-radius: 8px;
  border-left: 3px solid var(--accent);
  font-size: 0.95rem;
  color: var(--slate);
  max-width: var(--measure);
}

.amazon-note p {
  margin: 0 0 0.65em;
}

.amazon-note p:last-child {
  margin-bottom: 0;
}

/* Reviews (Get the Book) */
.section-reviews {
  margin-bottom: clamp(2.25rem, 5vw, 3.25rem);
}

.reviews-intro {
  text-align: center;
  margin-bottom: 1.75rem;
}

.reviews-intro h2 {
  margin-bottom: 0.5rem;
}

.reviews-intro .text-lead {
  margin-bottom: 0;
  font-size: 1.05rem;
}

.reviews-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 44rem;
  display: grid;
  gap: 1.25rem;
}

.review-quote blockquote {
  margin: 0;
  padding: 0;
  border: none;
}

.review-quote {
  margin: 0;
  padding: 1.25rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  border-left: 3px solid var(--primary);
  box-shadow: 0 1px 0 rgba(26, 35, 50, 0.04);
}

.review-quote p {
  margin: 0 0 0.9rem;
  font-size: 0.96rem;
  line-height: 1.62;
  color: var(--text);
}

.review-quote p:last-child {
  margin-bottom: 0;
}

.review-meta {
  font-size: 0.88rem;
  color: var(--slate);
  margin: 0;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(26, 35, 50, 0.12);
}

.review-meta strong {
  color: var(--ink);
  font-weight: 600;
}

.review-role {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.85rem;
  color: var(--slate-muted);
  line-height: 1.45;
}

/* Responsive video segments (videos.html — static iframe embeds) */
.video-segments {
  display: grid;
  gap: 2rem;
}

/* Narrower embedded player (all segments use the compact layout) */
.video-segments--compact .video-embed-mount {
  max-width: 560px;
  margin-inline: auto;
}

.video-segment {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.35rem;
  background: var(--white);
}

.video-segment h3 {
  margin: 0 0 0.65rem;
  font-size: 1.08rem;
}

.video-segment .video-lede {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--slate);
  line-height: 1.5;
}

.video-embed-mount {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: rgba(26, 35, 50, 0.06);
  border-radius: 8px;
  overflow: hidden;
}

.video-embed-mount .video-embed-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-pending-msg {
  margin: 0;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--slate-muted);
  line-height: 1.5;
}

.video-pending-msg code {
  font-size: 0.82em;
}

.checkout-flow-note {
  margin-top: 2.25rem;
  max-width: 42rem;
  margin-inline: auto;
  text-align: center;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--slate-muted);
}

.checkout-flow-note code {
  font-size: 0.84em;
  padding: 0.12em 0.35em;
  border-radius: 4px;
  background: rgba(26, 31, 46, 0.06);
}

.narrow-wrap {
  max-width: 38rem;
  margin-inline: auto;
}

.thank-you-box .text-lead + .text-lead {
  margin-top: 0.75rem;
}

.thank-you-box {
  padding-block: clamp(1rem, 4vw, 2rem);
}

.thank-you-box h1 {
  text-align: center;
  margin-bottom: 1rem;
}

.thank-you-box .text-lead {
  text-align: center;
  margin-bottom: 0;
}

.thank-you-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.75rem;
}

.thank-you-footnote {
  margin-top: 2rem;
}

/* Chapter reading */
.reading-page {
  padding-block: clamp(2rem, 5vw, 3rem);
}

.reading-header {
  text-align: center;
  max-width: 36rem;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}

.chapter-surface {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: clamp(1.75rem, 4vw, 3rem);
  margin-inline: auto;
  max-width: var(--reading-width);
  box-shadow: 0 1px 0 rgba(26, 35, 50, 0.03);
}

.chapter-prose {
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink);
}

.chapter-prose p {
  margin: 0 0 1.25em;
  text-indent: 0;
}

.chapter-prose p:last-child {
  margin-bottom: 0;
}

.reading-actions {
  max-width: var(--reading-width);
  margin-inline: auto;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.pdf-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

.pdf-toolbar a {
  font-weight: 500;
}

.pdf-embed-wrap {
  margin-inline: auto;
  max-width: var(--reading-width);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(26, 31, 46, 0.04);
  /* Reserve vertical space when the PDF viewer is slow or blocked (common on desktop Safari). */
  min-height: min(75vh, 900px);
}

.pdf-frame {
  display: block;
  width: 100%;
  min-height: min(75vh, 900px);
  border: 0;
}

.pdf-embed-helper {
  max-width: var(--reading-width);
  margin: 0 auto 1rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--slate-muted);
  text-align: center;
}

.chapter-prose:empty {
  display: none;
}

.chapter-prose:not(:empty) {
  margin-top: 2.5rem;
  margin-inline: auto;
  max-width: var(--reading-width);
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem 1.5rem;
}

.testimonial-card blockquote {
  margin: 0 0 1.25rem;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.45;
  color: var(--ink);
  font-style: italic;
}

.testimonial-card .byline-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  margin: 0;
}

.testimonial-card .byline-role {
  font-size: 0.85rem;
  color: var(--slate);
  margin: 0.2rem 0 0;
}

.cta-band {
  margin-top: var(--space-section);
  padding: 2.25rem 1.75rem;
  background: var(--cream-deep);
  border-radius: 10px;
  border: 1px solid var(--border);
  text-align: center;
}

.cta-band h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.cta-band p {
  margin: 0 0 1rem;
  color: var(--slate);
  max-width: 52ch;
  margin-inline: auto;
}

.form-success-banner {
  max-width: 40rem;
  margin: 0 auto 2rem;
  padding: 1rem 1.25rem;
  background: rgba(168, 91, 58, 0.12);
  border: 1px solid rgba(168, 91, 58, 0.25);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
}

.form-success-banner[hidden] {
  display: none;
}

/* Video placeholders */
.video-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.video-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.video-thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(145deg, #e8e4db 0%, #dce0e6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-muted);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.video-card-body {
  padding: 1.15rem 1.25rem;
}

.video-card-body h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--ink);
}

.video-card-body p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--slate);
  line-height: 1.55;
}

/* Resources */
.support-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem 1.5rem 1.5rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 1px 0 rgba(26, 35, 50, 0.03);
}

.support-panel h2 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.support-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.support-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.98rem;
  color: var(--slate);
}

.support-list li:last-child {
  border-bottom: none;
}

.support-list strong {
  color: var(--ink);
  font-weight: 600;
}

.resource-section {
  margin-bottom: 2.75rem;
}

.resource-section:last-child {
  margin-bottom: 0;
}

.resource-section h2 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.bullet-quiet {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--slate);
}

.bullet-quiet li {
  margin-bottom: 0.5rem;
}

.bullet-quiet li:last-child {
  margin-bottom: 0;
}

/* About page sections */
.about-section {
  max-width: var(--measure);
  margin-bottom: 2.75rem;
}

.about-section:last-child {
  margin-bottom: 0;
}

.about-section p {
  margin: 0 0 1em;
  color: var(--slate);
}

.about-section p:last-child {
  margin-bottom: 0;
}

.page-intro {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.page-intro .text-lead {
  margin: 0;
}

/* Utility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.center-heading {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}

.center-heading .text-lead {
  margin: 0;
}

.prose-muted {
  max-width: var(--measure);
}

.prose-muted.is-lead {
  margin: 0;
}

.list-after-muted {
  max-width: var(--measure);
  margin-top: 1rem;
}

.list-after-muted + .text-muted {
  margin-top: 1rem;
}

.center-heading .page-subnote {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--slate-muted);
  max-width: 42ch;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}