:root {
  --bg-white: #ffffff;
  --bg-ivory: #faf7f0;
  --bg-limestone: #efece6;
  --bg-rose: #e6cecc;
  --bg-blush: #efe4e3;
  --bg-footer: #f3efe8;
  --ink: #252923;
  --ink-muted: #4b4f47;
  --ink-soft: #6f726a;
  --brand-primary: #304d42;
  --brand-accent: #a14932;
  --hairline: rgba(37, 41, 35, 0.14);

  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 4px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* =========================================================
   NAVIGATION
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(37, 41, 35, 0.08);
}

.nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  height: 78px;
  padding: 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-seal {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-left: auto;
  margin-right: 12px;
}

.nav-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.01em;
  transition: opacity 0.18s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  opacity: 0.65;
  outline: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.icon-btn {
  background: transparent;
  border: none;
  color: var(--ink);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  transition: background-color 0.18s ease;
}

.icon-btn:hover,
.icon-btn:focus-visible {
  background: var(--bg-limestone);
  outline: 2px solid transparent;
}

.mobile-menu-btn {
  display: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 22px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.15s ease;
  white-space: nowrap;
}

.btn-sm {
  padding: 9px 18px;
  font-size: 13.5px;
}

.btn-xs {
  padding: 6px 14px;
  font-size: 11px;
}

.btn-primary {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #363b33;
  border-color: #363b33;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: rgba(37, 41, 35, 0.45);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--bg-limestone);
  border-color: var(--ink);
}

/* Search bar */
.search-bar {
  border-top: 1px solid var(--hairline);
  background: var(--bg-ivory);
  padding: 14px 36px 18px;
}

.search-bar-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
}

.search-bar-inner input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid rgba(37, 41, 35, 0.25);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 14px;
  background: #fff;
}

.search-results {
  max-width: 900px;
  margin: 10px auto 0;
  display: grid;
  gap: 8px;
}

.search-result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 14px;
}

.search-result-item span {
  color: var(--ink-soft);
  font-size: 12px;
}

.mobile-drawer {
  display: none;
  flex-direction: column;
  gap: 14px;
  padding: 18px 24px 24px;
  border-top: 1px solid var(--hairline);
  background: #fff;
}

.mobile-drawer a {
  text-decoration: none;
  font-size: 16px;
  padding: 4px 0;
}

/* =========================================================
   SECTION 1: HERO
   ========================================================= */
.hero-section {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 35.5% 64.5%;
  min-height: 540px;
}

.hero-copy {
  background: var(--bg-white);
  padding: 58px 44px 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-title {
  margin: 0 0 22px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 4.1vw, 3.65rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.hero-sub {
  margin: 0 0 28px;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ink-muted);
  max-width: 340px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-diptych {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: var(--bg-white);
}

.diptych-panel {
  position: relative;
  overflow: hidden;
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Warm walnut desk & subtle wall background */
.desk-wood-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, #dfd4c5 0%, #cfc1ae 52%, #744927 52.5%, #5b371b 82%, #482a13 100%);
  z-index: 0;
}

.desk-wood-bg::after {
  content: '';
  position: absolute;
  inset: 52.5% 0 0 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 232, 200, 0.03) 0px,
    rgba(255, 232, 200, 0.03) 2px,
    transparent 2px,
    transparent 11px
  );
  pointer-events: none;
}

/* Book stacks */
.book-stack {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 146px;
  filter: drop-shadow(0 10px 18px rgba(25, 14, 5, 0.35));
}

.book-stack-left {
  position: absolute;
  left: -14px;
  bottom: 64px;
}

.book-stack-right {
  position: absolute;
  right: -12px;
  top: 26px;
}

.spine {
  width: 100%;
  border: none;
  padding: 9px 14px;
  border-radius: 3px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 2px solid rgba(0, 0, 0, 0.28);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3px;
  cursor: pointer;
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), filter 0.22s ease, box-shadow 0.26s ease;
}

.book-stack-left .spine:hover,
.book-stack-left .spine:focus-visible,
.book-stack-disciplines .spine:hover,
.book-stack-disciplines .spine:focus-visible {
  transform: translateX(16px) translateY(-2px) rotate(-1.2deg);
  filter: brightness(1.07);
  box-shadow: -6px 10px 18px rgba(15, 8, 2, 0.42);
  z-index: 5;
}

.book-stack-right .spine:hover,
.book-stack-right .spine:focus-visible {
  transform: translateX(-16px) translateY(-2px) rotate(1.2deg);
  filter: brightness(1.07);
  box-shadow: 6px 10px 18px rgba(15, 8, 2, 0.42);
  z-index: 5;
}

.spine-band {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 4px;
  bottom: 4px;
  border-left: 1px solid rgba(235, 210, 160, 0.32);
  border-right: 1px solid rgba(235, 210, 160, 0.32);
  pointer-events: none;
}

.spine-title {
  font-family: var(--font-serif);
  font-size: 11px;
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.spine-author {
  font-family: var(--font-serif);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  opacity: 0.88;
}

.spine-tan { background: linear-gradient(180deg, #cfb996, #b79f79); color: #2b2116; }
.spine-oxblood { background: linear-gradient(180deg, #5e221e, #481714); color: #f0dfcf; }
.spine-rust { background: linear-gradient(180deg, #98462c, #7c351e); color: #f5e6d8; }
.spine-umber { background: linear-gradient(180deg, #4b3828, #36271b); color: #eadcc9; }
.spine-olive { background: linear-gradient(180deg, #4f5038, #3b3c28); color: #ece6d5; }
.spine-charcoal { background: linear-gradient(180deg, #323532, #222522); color: #eae4d8; }
.spine-parchment { background: linear-gradient(180deg, #ddd5c3, #c4baa5); color: #26231d; }
.spine-sienna { background: linear-gradient(180deg, #8b4b32, #6f3924); color: #f4e7da; }
.spine-forest { background: linear-gradient(180deg, #2d443c, #1f312b); color: #e8e4da; }
.spine-espresso { background: linear-gradient(180deg, #362d26, #251f1a); color: #e6dac8; }

/* Laptop device */
.laptop-device {
  position: relative;
  z-index: 2;
}

.laptop-hero {
  width: 266px;
  margin-left: 108px;
  margin-top: 34px;
}

.laptop-bezel {
  background: #171817;
  border-radius: 10px 10px 3px 3px;
  padding: 9px 9px 11px;
  box-shadow: 0 18px 34px rgba(15, 10, 5, 0.42);
  position: relative;
}

.laptop-camera {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #353835;
  margin: 0 auto 4px;
}

.laptop-screen {
  background: #faf9f6;
  border-radius: 3px;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--font-sans);
}

.laptop-base {
  height: 11px;
  background: linear-gradient(180deg, #d8d9d7 0%, #aeb0ad 100%);
  border-radius: 0 0 8px 8px;
  margin: 0 -14px;
  position: relative;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.35);
}

.laptop-notch {
  width: 42px;
  height: 3px;
  background: #8a8c89;
  border-radius: 0 0 3px 3px;
  margin: 0 auto;
}

/* App UI inside laptop */
.app-topbar {
  font-size: 10px;
  font-weight: 600;
  padding: 7px 10px;
  border-bottom: 1px solid rgba(37, 41, 35, 0.1);
  background: #fff;
}

.app-body {
  display: grid;
  grid-template-columns: 36% 64%;
  min-height: 162px;
}

.app-sidebar {
  background: #f5f2eb;
  padding: 8px 6px;
  border-right: 1px solid rgba(37, 41, 35, 0.08);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.app-nav-item {
  border: none;
  background: transparent;
  text-align: left;
  font-size: 7.5px;
  padding: 4px 5px;
  border-radius: 3px;
  color: var(--ink-muted);
}

.app-nav-item.is-active {
  background: #e3ded4;
  color: var(--ink);
  font-weight: 600;
}

.app-main {
  padding: 9px 10px;
  background: #fff;
}

.app-kicker {
  font-size: 7px;
  color: var(--ink-soft);
  margin-bottom: 3px;
}

.app-book-title {
  font-family: var(--font-serif);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 3px;
}

.app-meta {
  font-size: 7px;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.app-replies-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.avatar-stack {
  display: inline-flex;
}

.av {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid #fff;
  margin-left: -3px;
  display: inline-block;
}
.av:first-child { margin-left: 0; }
.av-1 { background: #8c624d; }
.av-2 { background: #4a6359; }
.av-3 { background: #b27b6c; }
.av-4 { background: #6b5848; }
.av-eleanor { background: #9b6b57; width: 14px; height: 14px; margin-left: 0; }
.av-amara { background: #5a4236; width: 14px; height: 14px; margin-left: 0; }

.reply-count {
  font-size: 7px;
  color: var(--ink-soft);
}

.app-comment {
  border-top: 1px solid rgba(37, 41, 35, 0.08);
  padding-top: 6px;
}

.comment-author-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 8px;
  margin-bottom: 3px;
}

.comment-time {
  color: var(--ink-soft);
  font-size: 7px;
}

.comment-text {
  margin: 0;
  font-size: 7.4px;
  line-height: 1.38;
  color: var(--ink-muted);
}

.comment-actions {
  margin-top: 5px;
  font-size: 7px;
  color: var(--ink-soft);
}

/* Tablet device */
.tablet-device {
  position: relative;
  z-index: 2;
  background: #171817;
  padding: 11px;
  border-radius: 14px;
  box-shadow: 0 20px 36px rgba(15, 10, 5, 0.44);
}

.tablet-hero {
  width: 214px;
  margin-right: 96px;
  margin-top: 24px;
}

.tablet-screen {
  background: #ffffff;
  border-radius: 6px;
  padding: 13px 14px;
  color: var(--ink);
}

.tablet-header {
  display: flex;
  justify-content: space-between;
  font-size: 8.5px;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.tablet-course-title {
  font-family: var(--font-serif);
  font-size: 16.5px;
  line-height: 1.12;
  font-weight: 600;
  margin: 0 0 10px;
}

.progress-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  color: var(--ink-soft);
  margin-bottom: 4px;
}

.progress-track {
  height: 4px;
  background: #e5e2da;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 11px;
}

.progress-fill {
  height: 100%;
  background: var(--ink);
}

.lesson-active-card {
  background: #f5f2eb;
  border-radius: 5px;
  padding: 10px;
  margin-bottom: 10px;
}

.lesson-title {
  font-family: var(--font-serif);
  font-size: 11.5px;
  font-weight: 600;
  margin-bottom: 3px;
}

.lesson-desc {
  margin: 0 0 6px;
  font-size: 7.8px;
  line-height: 1.35;
  color: var(--ink-muted);
}

.lesson-duration {
  font-size: 7.5px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.lesson-btn {
  width: 100%;
  justify-content: center;
}

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

.lesson-list li {
  font-size: 8.2px;
  padding: 5px 2px;
  border-top: 1px solid rgba(37, 41, 35, 0.1);
  color: var(--ink-muted);
}

.stylus-pen {
  position: absolute;
  right: 16px;
  bottom: 42px;
  width: 168px;
  height: 8px;
  border-radius: 4px 12px 12px 4px;
  background: linear-gradient(180deg, #ffffff 0%, #dcdad5 100%);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  z-index: 3;
}

/* =========================================================
   SECTION 2: THREE-COLUMN OFFER GRID
   ========================================================= */
.offers-section {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 35.5% 64.5%;
  background: var(--bg-white);
  align-items: stretch;
}

.offers-photo-col {
  overflow: hidden;
  height: 430px;
}

.offers-photo-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.offers-cards-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 36px 36px;
  align-items: center;
}

.offer-card {
  padding: 36px 26px 34px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 316px;
}

.offer-limestone { background: var(--bg-limestone); }
.offer-rose { background: var(--bg-rose); }
.offer-white { background: var(--bg-white); }

.offer-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--ink);
}

.badge-limestone { background: #d9cebc; }
.badge-rose { background: #b87a74; color: #361e1c; }
.badge-sand { background: #dfd3be; }

.offer-title {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.15;
}

.offer-copy {
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-muted);
}

.offer-link {
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

.offer-link:hover {
  opacity: 0.68;
}

/* =========================================================
   SHARED SPLIT SECTIONS (3, 4, 5, 6)
   ========================================================= */
.split-section {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 38% 62%;
  align-items: stretch;
}

.split-white { background: var(--bg-white); }
.split-limestone { background: var(--bg-limestone); grid-template-columns: 52% 48%; }
.split-blush { background: var(--bg-blush); grid-template-columns: 38% 62%; }

.split-copy {
  padding: 72px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.split-copy-centered {
  padding-left: 72px;
}

.section-title {
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.3rem, 3.6vw, 3.2rem);
  line-height: 1.06;
  color: var(--ink);
}

.section-copy {
  margin: 0 0 28px;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 340px;
}

.stacked-cta-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 210px;
}

.stacked-cta-group .btn {
  width: 100%;
}

/* =========================================================
   SECTION 3: JUST MERCY DESK SCENE
   ========================================================= */
.split-media {
  position: relative;
  overflow: hidden;
  min-height: 470px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.laptop-just-mercy {
  width: 390px;
  margin-top: -54px;
  margin-right: 46px;
}

.coffee-mug {
  position: absolute;
  right: 26px;
  bottom: 92px;
  width: 112px;
  height: 102px;
  background: radial-gradient(circle at 32% 30%, #e5dcd0 0%, #c8bcab 70%, #a59886 100%);
  border-radius: 10px 10px 34px 34px;
  box-shadow: 0 14px 24px rgba(20, 12, 5, 0.36);
  z-index: 3;
}

.mug-rim {
  width: 104px;
  height: 36px;
  margin: 4px auto 0;
  border-radius: 50%;
  background: #ded4c6;
  padding: 5px;
  border: 1px solid rgba(90, 74, 58, 0.25);
}

.mug-coffee {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 45% 45%, #b2875e 0%, #6d4728 80%);
}

.open-book-spread {
  position: absolute;
  bottom: -14px;
  left: 42px;
  width: 500px;
  height: 190px;
  background: #faf6ed;
  border-radius: 6px;
  box-shadow: 0 16px 34px rgba(15, 8, 2, 0.45);
  display: grid;
  grid-template-columns: 1fr 12px 1fr;
  transform: rotate(-1.5deg);
  z-index: 4;
  border: 3px solid #2b2926;
}

.book-page {
  padding: 26px 28px;
  color: var(--ink);
  font-family: var(--font-serif);
}

.book-page-left {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(90deg, #f3eee3 0%, #faf6ed 88%, #e8e1d4 100%);
}

.book-half-title {
  font-size: 20px;
  letter-spacing: 0.14em;
  font-weight: 600;
  margin-bottom: 10px;
}

.book-subtitle {
  font-style: italic;
  font-size: 13px;
  line-height: 1.3;
  margin-bottom: 14px;
  color: var(--ink-muted);
}

.book-author {
  font-size: 10px;
  letter-spacing: 0.16em;
}

.book-spine-crease {
  background: linear-gradient(90deg, #d7cfc0, #bfb5a3, #dfd8cb);
}

.book-page-right {
  background: linear-gradient(90deg, #e8e1d4 0%, #faf6ed 15%, #f5f0e6 100%);
}

.book-chapter-head {
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-align: center;
  margin-bottom: 10px;
  color: var(--ink-muted);
}

.book-prose {
  margin: 0 0 8px;
  font-size: 10.5px;
  line-height: 1.45;
  color: #3a3934;
}

/* =========================================================
   SECTION 4: STUDY AT YOUR PACE
   ========================================================= */
.courses-list {
  padding: 48px 36px 48px 48px;
  display: flex;
  flex-direction: column;
}

.course-row {
  display: grid;
  grid-template-columns: 196px 1fr;
  gap: 24px;
  padding: 22px 12px;
  border-bottom: 1px solid var(--hairline);
  align-items: start;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius);
  transition: background-color 0.18s ease;
}

.course-row:last-child {
  border-bottom: none;
}

.course-row:hover,
.course-row:focus-visible {
  background: rgba(255, 255, 255, 0.55);
  outline: none;
}

.course-thumb {
  width: 196px;
  height: 132px;
  object-fit: cover;
  border-radius: 5px;
}

.course-name {
  margin: 0 0 4px;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.12;
}

.course-tagline {
  margin: 0 0 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-muted);
}

.course-summary {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.48;
  color: var(--ink-muted);
}

/* =========================================================
   SECTION 5: FORTHCOMING BOOKS
   ========================================================= */
.publications-showcase {
  padding: 56px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(circle at 60% 45%, #f5eceb 0%, #e7d5d3 100%);
}

.book-trio {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  perspective: 1000px;
}

.hardcover-book {
  width: 190px;
  height: 292px;
  border-radius: 4px 8px 8px 4px;
  box-shadow:
    -8px 14px 24px rgba(42, 24, 22, 0.28),
    inset 6px 0 12px rgba(0, 0, 0, 0.12);
  padding: 24px 18px 18px;
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: transform 0.28s ease;
}

.hardcover-book:hover {
  transform: translateY(-6px) rotate(0deg) !important;
}

.book-cream {
  background: linear-gradient(135deg, #f7f4ec 0%, #eae3d5 100%);
  color: var(--ink);
  transform: rotate(-7deg) translateY(8px);
  z-index: 3;
}

.book-rose {
  background: linear-gradient(135deg, #b9938e 0%, #9b736f 100%);
  color: #faf4f2;
  transform: rotate(-3deg) translateY(-4px);
  z-index: 2;
  margin-left: -18px;
}

.book-umber {
  background: linear-gradient(135deg, #4b433b 0%, #312b25 100%);
  color: #f2ebe0;
  transform: rotate(2deg) translateY(-10px);
  z-index: 1;
  margin-left: -18px;
}

.book-cover-face {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.cover-title {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.08;
  font-weight: 500;
  margin-bottom: 8px;
}

.cover-sub {
  font-family: var(--font-serif);
  font-size: 11px;
  line-height: 1.25;
  opacity: 0.85;
  margin-bottom: auto;
}

.cover-botanical {
  margin: 8px 0 auto;
}

.cover-release {
  font-size: 8.5px;
  letter-spacing: 0.12em;
  opacity: 0.85;
  margin-top: 8px;
}

/* =========================================================
   SECTION 6: KEEP CURIOSITY IN COMPANY
   ========================================================= */
.desk-scene-company {
  min-height: 490px;
}

.book-stack-disciplines {
  position: absolute;
  left: -14px;
  top: 16px;
  width: 148px;
}

.laptop-meditations {
  width: 304px;
  margin-left: 126px;
  margin-top: -84px;
}

.tablet-stoic {
  position: absolute;
  left: 14px;
  bottom: 20px;
  width: 162px;
  padding: 8px;
  border-radius: 10px;
  transform: rotate(-6deg);
  z-index: 4;
}

.tablet-stoic .tablet-screen {
  padding: 10px 11px;
}

.tablet-stoic .tablet-course-title {
  font-size: 14px;
  margin-bottom: 4px;
}

.tablet-sub {
  font-size: 8px;
  color: var(--ink-soft);
  margin-bottom: 7px;
}

.lesson-list.compact li {
  font-size: 7.4px;
  padding: 4px 0;
}

.tablet-stoic .lesson-btn {
  margin-top: 8px;
}

.open-notebook-lined {
  position: absolute;
  right: 26px;
  bottom: -18px;
  width: 310px;
  height: 142px;
  background: #f8f4ea;
  border: 3px solid #2b2926;
  border-radius: 6px;
  box-shadow: 0 14px 28px rgba(15, 8, 2, 0.4);
  display: grid;
  grid-template-columns: 1fr 10px 1fr;
  transform: rotate(3deg);
  z-index: 4;
}

.notebook-page-left,
.notebook-page-right {
  background: repeating-linear-gradient(
    180deg,
    transparent 0px,
    transparent 12px,
    rgba(37, 41, 35, 0.1) 12px,
    rgba(37, 41, 35, 0.1) 13px
  );
}

.notebook-crease {
  background: linear-gradient(90deg, #dcd4c5, #bfb5a3, #dcd4c5);
}

.notebook-pen {
  position: absolute;
  right: 54px;
  top: 26px;
  width: 8px;
  height: 110px;
  background: linear-gradient(90deg, #252923, #4a4d47);
  border-radius: 4px;
  transform: rotate(-34deg);
  box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.35);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--bg-footer);
  padding: 34px 48px 26px;
  border-top: 1px solid var(--hairline);
}

.footer-top {
  max-width: 1344px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.footer-wordmark {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.08;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.footer-nav {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-nav a {
  text-decoration: none;
  font-size: 13.5px;
  color: var(--ink);
}

.footer-nav a:hover {
  opacity: 0.65;
}

.footer-divider {
  max-width: 1344px;
  margin: 0 auto 18px;
  height: 1px;
  background: var(--hairline);
}

.footer-bottom {
  text-align: center;
}

.footer-contact-link {
  background: transparent;
  border: none;
  font-size: 13px;
  color: var(--ink);
  padding: 4px 10px;
}

.footer-contact-link:hover {
  text-decoration: underline;
}

/* =========================================================
   MODAL DIALOG
   ========================================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(37, 41, 35, 0.48);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-dialog {
  width: 100%;
  max-width: 560px;
  background: var(--bg-ivory);
  border-radius: 6px;
  padding: 36px 34px 32px;
  position: relative;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.24);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: none;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  color: var(--ink);
}

.modal-dialog h2 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.1;
}

.modal-dialog p {
  margin: 0 0 16px;
  color: var(--ink-muted);
  font-size: 15px;
}

.modal-form {
  display: grid;
  gap: 12px;
}

.modal-form label {
  display: grid;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
}

.modal-form input,
.modal-form textarea,
.modal-form select {
  padding: 10px 12px;
  border: 1px solid rgba(37, 41, 35, 0.24);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 14px;
  background: #fff;
}

.modal-status {
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--bg-limestone);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--brand-primary);
}

/* =========================================================
   RESPONSIVE BREAKPOINTS
   ========================================================= */
@media (max-width: 1100px) {
  .hero-section,
  .offers-section,
  .split-section,
  .split-limestone,
  .split-blush {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .split-copy,
  .split-copy-centered {
    padding: 48px 28px;
  }

  .offers-photo-col {
    max-height: 360px;
  }

  .offers-cards-col {
    padding: 28px 24px;
  }
}

@media (max-width: 820px) {
  .nav-inner {
    padding: 0 20px;
  }

  .nav-links,
  .nav-actions .btn-primary {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .mobile-drawer:not([hidden]) {
    display: flex;
  }

  .hero-diptych {
    grid-template-columns: 1fr;
  }

  .offers-cards-col {
    grid-template-columns: 1fr;
  }

  .course-row {
    grid-template-columns: 1fr;
  }

  .course-thumb {
    width: 100%;
    height: 180px;
  }

  .book-trio {
    flex-direction: column;
    gap: 18px;
  }

  .hardcover-book {
    margin-left: 0 !important;
    transform: none !important;
  }

  .open-book-spread {
    width: 92%;
    left: 4%;
  }

  .laptop-just-mercy,
  .laptop-meditations {
    width: 86%;
    margin-left: 0;
    margin-right: 0;
  }

  .tablet-stoic,
  .book-stack-disciplines,
  .coffee-mug,
  .open-notebook-lined {
    display: none;
  }
}

/* =========================================================
   SUBPAGES SHARED LAYOUT & COMPONENTS
   ========================================================= */
.nav-links a[aria-current="page"],
.footer-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}

.page-hero {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 44% 56%;
  border-bottom: 1px solid var(--hairline);
}

.page-hero-copy {
  padding: 52px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background: var(--bg-white);
}

.page-hero-copy.bg-limestone { background: var(--bg-limestone); }
.page-hero-copy.bg-blush { background: var(--bg-blush); }

.page-hero-title {
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 3.8vw, 3.35rem);
  line-height: 1.05;
  color: var(--ink);
}

.page-hero-sub {
  margin: 0 0 26px;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 440px;
}

.page-hero-media {
  position: relative;
  height: 440px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-limestone);
}

.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.band {
  max-width: 1440px;
  margin: 0 auto;
  padding: 68px 48px;
}

.band-white { background: var(--bg-white); }
.band-ivory { background: var(--bg-ivory); }
.band-limestone { background: var(--bg-limestone); }
.band-rose { background: var(--bg-rose); }
.band-blush { background: var(--bg-blush); }
.band-forest { background: var(--brand-primary); color: #faf7f0; }

.band-forest .section-title,
.band-forest .section-copy {
  color: #faf7f0;
}

.band-header {
  max-width: 640px;
  margin-bottom: 36px;
}

.two-col-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
  align-items: start;
}

.three-col-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.four-col-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.editorial-card {
  background: var(--bg-white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.editorial-card.bg-limestone { background: var(--bg-limestone); }
.editorial-card.bg-ivory { background: var(--bg-ivory); }
.editorial-card.bg-rose { background: var(--bg-rose); }

.editorial-card h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 500;
  line-height: 1.15;
}

.editorial-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-muted);
}

.step-index {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--brand-accent);
  line-height: 1;
}

/* Filter bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-btn {
  padding: 8px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(37, 41, 35, 0.24);
  background: var(--bg-white);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 500;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.filter-btn.is-active,
.filter-btn:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.course-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.course-catalog-card {
  background: var(--bg-white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 200px 1fr;
}

.course-catalog-card img {
  width: 100%;
  height: 100%;
  min-height: 185px;
  object-fit: cover;
}

.course-catalog-body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.course-meta-line {
  font-size: 12.5px;
  color: var(--ink-soft);
}

/* Accordion FAQ */
.faq-list {
  max-width: 820px;
  border-top: 1px solid var(--hairline);
}

.faq-item {
  border-bottom: 1px solid var(--hairline);
}

.faq-trigger {
  width: 100%;
  background: transparent;
  border: none;
  padding: 20px 4px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
}

.faq-panel {
  padding: 0 4px 20px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-muted);
}

/* Library & Auth */
.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 520px;
}

.inline-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 12px 14px;
  border: 1px solid rgba(37, 41, 35, 0.28);
  border-radius: var(--radius);
  font-size: 14.5px;
  background: #fff;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 10px;
}

.tab-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 14px;
  margin-bottom: 28px;
}

@media (max-width: 980px) {
  .page-hero,
  .two-col-grid,
  .three-col-grid,
  .four-col-grid,
  .course-card-grid,
  .course-catalog-card {
    grid-template-columns: 1fr;
  }

  .band,
  .page-hero-copy {
    padding: 44px 24px;
  }
}

/* =========================================================
   UI POLISH: FOCUS RINGS, BILLING SWITCH, PROGRESS & EXCERPT
   ========================================================= */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

.billing-switch {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 4px;
  gap: 4px;
  margin: 10px 0 22px;
}

.billing-switch button {
  border: none;
  background: transparent;
  padding: 7px 14px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
}

.billing-switch button.is-active {
  background: var(--ink);
  color: #fff;
}

.faq-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 820px;
  margin-bottom: 18px;
}

.faq-toggle-all {
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 6px 12px;
  font-size: 13px;
  color: var(--ink-muted);
}

.faq-toggle-all:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.syllabus-step {
  width: 100%;
  text-align: left;
  background: var(--bg-ivory);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--ink);
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.syllabus-step:hover,
.syllabus-step.is-active {
  border-color: var(--ink);
  background: #fff;
}

.excerpt-box {
  background: var(--bg-ivory);
  border-left: 3px solid var(--brand-accent);
  padding: 28px 30px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink);
}

.excerpt-citation {
  margin-top: 14px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--ink-soft);
}

.lib-search-row {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  max-width: 480px;
}

.lib-search-row input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid rgba(37, 41, 35, 0.25);
  border-radius: var(--radius);
  font-size: 14px;
  background: #fff;
}

.milestone-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  padding: 6px 0;
  color: var(--ink-muted);
}

.empty-state-card {
  padding: 32px 24px;
  text-align: center;
  background: var(--bg-ivory);
  border: 1px dashed rgba(37, 41, 35, 0.25);
  border-radius: var(--radius);
  grid-column: 1 / -1;
}

.footer-legal-links {
  display: inline-flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* =========================================================
   OPEN-BOOK POPUP MODAL (LARGE MULTI-PAPER 3D BOOK)
   ========================================================= */
.modal-dialog.is-open-book {
  width: 96vw;
  max-width: 980px;
  padding: 18px 20px 22px;
  background: linear-gradient(145deg, #3d2b20 0%, #241812 55%, #1a110c 100%);
  border-radius: 10px;
  box-shadow:
    0 34px 80px rgba(8, 4, 2, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -3px 8px rgba(0, 0, 0, 0.45);
  perspective: 1800px;
  transform-style: preserve-3d;
  animation: bookCoverSettle 0.48s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: visible;
}

.modal-dialog.is-open-book .modal-close {
  top: 22px;
  right: 28px;
  z-index: 30;
  color: var(--ink);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(250, 246, 237, 0.88);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@keyframes bookCoverSettle {
  0% {
    opacity: 0;
    transform: perspective(1800px) scale(0.86) rotateX(12deg) translateY(22px);
  }
  100% {
    opacity: 1;
    transform: perspective(1800px) scale(1) rotateX(0deg) translateY(0);
  }
}

@keyframes pageFlipForward {
  0% {
    transform: rotateY(0deg) skewY(0deg);
    box-shadow: -2px 0 12px rgba(20, 12, 5, 0.14);
  }
  28% {
    transform: rotateY(-48deg) skewY(-1.8deg);
    box-shadow: -14px 8px 28px rgba(20, 12, 5, 0.28);
  }
  50% {
    transform: rotateY(-90deg) skewY(-2.4deg);
    box-shadow: -20px 12px 34px rgba(20, 12, 5, 0.34);
  }
  75% {
    transform: rotateY(-138deg) skewY(-1.4deg);
    box-shadow: 12px 8px 26px rgba(20, 12, 5, 0.24);
  }
  100% {
    transform: rotateY(-180deg) skewY(0deg);
    box-shadow: 2px 0 10px rgba(20, 12, 5, 0.1);
  }
}

@keyframes pageFlipBackward {
  0% {
    transform: rotateY(-180deg) skewY(0deg);
    box-shadow: 2px 0 10px rgba(20, 12, 5, 0.1);
  }
  28% {
    transform: rotateY(-136deg) skewY(1.6deg);
    box-shadow: 14px 8px 28px rgba(20, 12, 5, 0.28);
  }
  50% {
    transform: rotateY(-90deg) skewY(2.4deg);
    box-shadow: 20px 12px 34px rgba(20, 12, 5, 0.34);
  }
  75% {
    transform: rotateY(-42deg) skewY(1.2deg);
    box-shadow: -12px 8px 24px rgba(20, 12, 5, 0.24);
  }
  100% {
    transform: rotateY(0deg) skewY(0deg);
    box-shadow: -2px 0 12px rgba(20, 12, 5, 0.14);
  }
}

/* Multi-paper outer stack shell */
.book-paper-stack {
  position: relative;
  border-radius: 5px;
  background: #ede4d3;
  box-shadow:
    /* Left multi-paper stepped edges */
    -4px 0 0 #f5efe3,
    -5px 0 0 #d5cbb8,
    -8px 0 0 #efe7d8,
    -9px 0 0 #cfc4b0,
    -12px 0 0 #e8dfd0,
    /* Right multi-paper stepped edges */
    4px 0 0 #f5efe3,
    5px 0 0 #d5cbb8,
    8px 0 0 #efe7d8,
    9px 0 0 #cfc4b0,
    12px 0 0 #e8dfd0,
    /* Bottom page-block thickness */
    0 6px 0 #e4dac8,
    0 7px 0 #c9bea9,
    0 11px 22px rgba(0, 0, 0, 0.42);
}

/* Woven terracotta ribbon bookmark */
.book-ribbon-bookmark {
  position: absolute;
  left: 50%;
  top: -8px;
  width: 14px;
  height: 68px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #8e3d28 0%, #a14932 50%, #7d3320 100%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
  z-index: 20;
  pointer-events: none;
}

.book-popup-spread {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 20px 1fr;
  background: #faf6ed;
  border-radius: 4px;
  overflow: hidden;
  min-height: 520px;
  transform-style: preserve-3d;
}

/* True two-sided 3D turning paper sheet */
.book-turning-sheet {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 50%;
  transform-origin: left center;
  transform-style: preserve-3d;
  pointer-events: none;
  z-index: 16;
}

.book-turning-sheet.is-forward {
  animation: pageFlipForward 0.86s cubic-bezier(0.32, 0.08, 0.24, 1) forwards;
}

.book-turning-sheet.is-backward {
  animation: pageFlipBackward 0.86s cubic-bezier(0.32, 0.08, 0.24, 1) forwards;
}

.sheet-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  padding: 46px 44px 36px;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  overflow: hidden;
}

.sheet-face-front {
  background:
    radial-gradient(circle at 82% 20%, rgba(255, 255, 255, 0.5), transparent 60%),
    linear-gradient(90deg, #e2d9c8 0%, #faf6ed 16%, #faf6ed 90%, #efe8da 100%);
}

.sheet-face-back {
  transform: rotateY(180deg);
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.5), transparent 60%),
    linear-gradient(90deg, #efe8da 0%, #faf6ed 10%, #faf6ed 84%, #e2d9c8 100%);
}

.book-popup-page {
  padding: 46px 44px 36px;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  position: relative;
}

.book-popup-left {
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.5), transparent 60%),
    linear-gradient(90deg, #efe8da 0%, #faf6ed 10%, #faf6ed 84%, #e2d9c8 100%);
}

.book-popup-right {
  background:
    radial-gradient(circle at 82% 20%, rgba(255, 255, 255, 0.5), transparent 60%),
    linear-gradient(90deg, #e2d9c8 0%, #faf6ed 16%, #faf6ed 90%, #efe8da 100%);
}

/* Subtle bottom-right page curl */
.book-popup-right::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, transparent 48%, rgba(196, 185, 165, 0.45) 50%, #f5efe3 56%);
  pointer-events: none;
}

.book-popup-crease {
  background: linear-gradient(90deg, #d4cab7 0%, #9c907b 50%, #d8cebc 100%);
  box-shadow: inset 0 0 12px rgba(20, 12, 5, 0.25);
}

.book-popup-kicker {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-accent);
  margin-bottom: 14px;
  font-weight: 600;
}

.book-popup-title {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: 40px;
  line-height: 1.06;
  font-weight: 500;
}

.book-popup-author {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 21px;
  color: var(--ink-muted);
  margin-bottom: 24px;
}

.book-popup-body {
  font-size: 15.5px;
  line-height: 1.68;
  color: var(--ink-muted);
  margin: 0 0 16px;
}

.book-popup-heading {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 12px;
}

.book-popup-quote {
  margin: 0 0 24px;
  padding-left: 16px;
  border-left: 2px solid var(--brand-primary);
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink);
}

.book-popup-actions {
  margin-top: auto;
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.book-popup-folio {
  margin-top: auto;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-serif);
  font-size: 13.5px;
  color: var(--ink-soft);
}

.book-page-turn-btn {
  margin-left: auto;
  background: transparent;
  border: none;
  font-family: var(--font-serif);
  font-size: 15px;
  font-style: italic;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 4px 6px;
}

@media (max-width: 820px) {
  .modal-dialog.is-open-book {
    padding: 10px;
  }
  .book-popup-spread {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .book-turning-sheet,
  .book-ribbon-bookmark {
    display: none;
  }
  .book-popup-crease {
    height: 12px;
  }
  .book-popup-page {
    padding: 28px 24px;
  }
  .book-popup-title {
    font-size: 30px;
  }
}
