/* ==========================================================================
   The Talk Shop — Website Stylesheet (v3.1 — 3D Animated Book Entrance + Strict Mobile Viewport)
   ========================================================================== */

:root {
  --ink: #352317;
  --ink-soft: #593e2b;
  --brown: #68462f;
  --muted: #7c6148;
  --gold: #c69a58;
  --paper: #f6ecd9;
  --paper-light: #fcf7ed;
  --line: #ccb089;
  --line-soft: rgba(152, 114, 71, 0.25);
  --shadow: rgba(45, 27, 15, 0.2);
  --book-open-ease: cubic-bezier(0.32, 0.08, 0.24, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #e7d7bc;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
button { font: inherit; }

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

/* ==========================================================================
   Reading Progress & Sticky Top Navigation (Document Pages)
   ========================================================================== */

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #9d6d3b, #d2a45e);
  z-index: 100;
  transition: width 0.08s linear;
}

.doc-nav-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(235, 220, 194, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(155, 120, 78, 0.28);
}

.doc-nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 13px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font: 600 14px/1.2 "Source Sans 3", sans-serif;
  color: #543823;
}

.doc-nav a {
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.doc-nav a:hover {
  border-color: currentColor;
  color: var(--ink);
}

.nav-brand {
  font: 600 12px/1 "Source Sans 3", sans-serif;
  letter-spacing: 0.2em;
  color: #7c5c3e;
}

/* ==========================================================================
   Page 0 — 3D Animated Leather Book Entrance
   ========================================================================== */

.entrance-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(ellipse at 50% 42%, #f4e8d2 0%, #d4b992 68%, #bfa077 100%);
  overflow-x: hidden;
}

.entrance-shell {
  flex: 1 0 auto;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 40px) clamp(16px, 3vw, 36px) 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.book-stage {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: clamp(500px, 74vh, 680px);
  perspective: 2200px;
  perspective-origin: 50% 48%;
}

/* The 3D Book container: sized to the full OPEN two-page spread (2 × single cover width) */
.book-3d {
  --page-w: clamp(350px, 43vw, 490px);
  --page-h: clamp(410px, 46vw, 520px);
  --spine-w: clamp(56px, 6.8vw, 82px);

  position: relative;
  width: calc(var(--page-w) * 2);
  height: var(--page-h);
  transform-style: preserve-3d;
  /* Centered visually when closed (book sits in the right half, so shift left by ~24%) */
  transform: translateX(-23%) rotateX(2.5deg) rotateY(-5deg);
  transition: transform 1.15s var(--book-open-ease);
}

.book-3d.is-open {
  transform: translateX(0%) rotateX(0deg) rotateY(0deg);
}

/* Grounded soft shadow beneath the book */
.book-3d::after {
  content: "";
  position: absolute;
  left: calc(50% - var(--spine-w) + 6px);
  right: -14px;
  bottom: -24px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(40, 21, 9, 0.42) 0%, rgba(40, 21, 9, 0) 72%);
  transform: translateZ(-20px);
  transition: left 1.15s var(--book-open-ease), right 1.15s var(--book-open-ease), opacity 0.8s ease;
  pointer-events: none;
}

.book-3d.is-open::after {
  left: 2%;
  right: 2%;
  opacity: 0.78;
}

/* Stitched Leather Outer Spine (attached to the left edge of the closed cover) */
.book-outer-spine {
  position: absolute;
  top: 0;
  left: calc(50% - var(--spine-w) + 2px);
  width: var(--spine-w);
  height: 100%;
  border-radius: 14px 2px 2px 14px;
  overflow: hidden;
  box-shadow: -8px 14px 28px rgba(38, 19, 8, 0.34);
  transform-origin: right center;
  transform: translateZ(2px);
  transition: opacity 0.45s ease 0.12s, transform 0.9s var(--book-open-ease);
  pointer-events: none;
  z-index: 4;
}

.book-outer-spine img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-3d.is-open .book-outer-spine {
  opacity: 0;
  transform: translateZ(-4px) scaleX(0.3);
}

/* Right Half Base (holds See Our Offerings page + leather board + page stack edge) */
.book-right-base {
  position: absolute;
  top: 0;
  left: 50%;
  width: 50%;
  height: 100%;
  padding: 16px 16px 16px 0;
  background: linear-gradient(90deg, #351d11 0%, #4d2c19 18%, #472817 100%);
  border-radius: 0 12px 12px 0;
  box-shadow: 16px 24px 48px rgba(42, 22, 10, 0.34);
  transform-style: preserve-3d;
  z-index: 1;
}

/* Realistic deckle-edged cream page thickness peeking along right edge */
.page-edge-stack {
  position: absolute;
  top: 7px;
  bottom: 7px;
  right: -11px;
  width: 13px;
  border-radius: 0 4px 4px 0;
  background:
    repeating-linear-gradient(
      to right,
      #f2e4c9 0px,
      #f2e4c9 1.5px,
      #d6be96 1.5px,
      #d6be96 3px
    );
  box-shadow: inset 2px 0 4px rgba(80, 48, 22, 0.25), 3px 6px 12px rgba(42, 22, 10, 0.22);
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.book-3d.is-open .page-edge-stack {
  opacity: 0.7;
}

/* Dynamic shadow cast by the cover onto the right page as it lifts */
.right-cover-shadow {
  position: absolute;
  inset: 16px 16px 16px 0;
  background: linear-gradient(90deg, rgba(35, 18, 8, 0.45) 0%, rgba(35, 18, 8, 0.14) 35%, rgba(35, 18, 8, 0) 75%);
  z-index: 3;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.9s ease 0.15s;
}

.book-3d.is-open .right-cover-shadow {
  opacity: 0;
}

/* Intermediate Parchment Flyleaf (adds realistic layered turn right behind cover) */
.book-flyleaf {
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 50%;
  width: calc(50% - 16px);
  background: linear-gradient(90deg, #ead8b8 0%, #f7ecd6 24%, #efe0c3 100%);
  border: 1px solid rgba(182, 148, 104, 0.45);
  border-radius: 2px 6px 6px 2px;
  transform-origin: left center;
  transform: translateZ(1px) rotateY(0deg);
  transition: transform 1.05s var(--book-open-ease) 0.1s, opacity 0.35s ease 0.85s;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

.book-3d.is-open .book-flyleaf {
  opacity: 0;
  transform: translateZ(0px) rotateY(-178deg);
  transition: transform 1.05s var(--book-open-ease) 0.12s, opacity 0.35s ease 0.75s;
}

/* Swinging 3D Front Cover Leaf */
.book-cover-leaf {
  position: absolute;
  top: 0;
  left: 50%;
  width: 50%;
  height: 100%;
  transform-origin: left center;
  transform-style: preserve-3d;
  transform: translateZ(3px) rotateY(0deg);
  transition: transform 1.15s var(--book-open-ease);
  z-index: 5;
}

/* Subtle inviting 3D peek when hovering the closed book */
.book-3d:not(.is-open):hover .book-cover-leaf,
.book-3d:not(.is-open):focus-within .book-cover-leaf {
  transform: translateZ(3px) rotateY(-13deg);
}

.book-3d.is-open .book-cover-leaf {
  transform: translateZ(3px) rotateY(-180deg);
}

/* Front Face of the Swinging Cover: Leather Photograph + Live Gold Subtitle */
.cover-front-face {
  position: absolute;
  inset: 0;
  transform: translateZ(1px);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 2px 12px 12px 2px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: inset 8px 0 18px rgba(18, 7, 2, 0.45), 0 14px 32px rgba(38, 19, 8, 0.28);
}

.cover-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Live approved subtitle sitting directly on the seamless pebbled leather grain */
.cover-live-subtitle {
  position: absolute;
  left: 14%;
  width: 64%;
  top: 56.2%;
  height: 12.2%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #f2d8a4;
  font: italic 500 clamp(13px, 1.5vw, 20px)/1.28 "Crimson Pro", Georgia, serif;
  text-shadow: 0 1px 3px rgba(22, 9, 3, 0.9), 0 0 12px rgba(40, 18, 6, 0.55);
  padding: 0 6px;
  pointer-events: none;
}

/* Subtle lighting sheen across the leather cover as it opens */
.cover-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(255, 240, 210, 0) 25%, rgba(255, 236, 198, 0.14) 50%, rgba(255, 240, 210, 0) 75%);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.book-3d:not(.is-open):hover .cover-sheen {
  opacity: 1;
}

/* Back Face of the Swinging Cover: Becomes the LEFT PAGE when opened to -180deg */
.cover-back-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: rotateY(180deg) translateZ(1px);
  padding: 16px 0 16px 16px;
  background: linear-gradient(270deg, #351d11 0%, #4d2c19 18%, #472817 100%);
  border-radius: 12px 0 0 12px;
  box-shadow: -14px 24px 44px rgba(42, 22, 10, 0.3);
}

/* Central Spine Crease when Open */
.book-center-spine {
  position: absolute;
  left: 50%;
  top: 10px;
  bottom: 10px;
  width: 14px;
  transform: translateX(-50%) translateZ(5px);
  background: linear-gradient(90deg, rgba(42, 22, 11, 0.18), rgba(28, 14, 7, 0.45) 50%, rgba(42, 22, 11, 0.18));
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease 0.55s;
  z-index: 6;
}

.book-3d.is-open .book-center-spine {
  opacity: 1;
}

/* Inside Parchment Pages (Left & Right) */
.book-page {
  width: 100%;
  height: 100%;
  text-decoration: none;
  text-align: center;
  padding: clamp(24px, 3.6vw, 48px) clamp(20px, 3.2vw, 42px);
  background-color: #f6ebd6;
  background-image:
    radial-gradient(rgba(126, 87, 49, 0.11) 0.6px, transparent 0.7px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.55), transparent 45%, rgba(139, 97, 54, 0.08));
  background-size: 6px 6px, 100% 100%;
  border: 1px solid #c5a77c;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background-color 0.25s ease;
  pointer-events: none;
}

.book-3d.is-open .book-page {
  pointer-events: auto;
}

.left-page {
  border-radius: 6px 2px 2px 6px;
  box-shadow: inset -18px 0 26px rgba(88, 55, 27, 0.15);
}

.right-page {
  border-radius: 2px 6px 6px 2px;
  box-shadow: inset 18px 0 26px rgba(88, 55, 27, 0.15);
}

.book-page:hover {
  background-color: #fff9ec;
}

.book-page:hover .page-action {
  background: var(--ink);
  color: #fdf6e9;
  border-color: var(--ink);
}

.page-kicker,
.eyebrow {
  font: 600 11px/1.4 "Source Sans 3", sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7d6045;
  margin: 0;
}

.book-page h1 {
  font: 600 clamp(28px, 3.2vw, 42px)/1.08 "Crimson Pro", Georgia, serif;
  margin: 18px 0 10px;
  color: #3f2616;
}

.page-subtitle {
  font: italic 19px/1.38 "Crimson Pro", Georgia, serif;
  max-width: 390px;
  margin: 0 auto 12px;
  color: #664930;
}

.page-description {
  font: 400 16px/1.55 "Source Sans 3", sans-serif;
  max-width: 360px;
  margin: 0 auto 24px;
  color: #5b422c;
}

.page-action {
  border: 1px solid #866341;
  padding: 11px 22px;
  border-radius: 3px;
  font: 600 12px/1 "Source Sans 3", sans-serif;
  letter-spacing: 0.1em;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

/* Floating Invitation Card positioned beside the closed book */
.cover-invite {
  position: absolute;
  right: max(2%, calc(50% - var(--invite-offset, 470px)));
  top: 50%;
  transform: translateY(-50%);
  width: 195px;
  z-index: 10;
  transition: opacity 0.35s ease, transform 0.4s ease;
}

.entrance-shell.book-is-open .cover-invite {
  opacity: 0;
  transform: translateY(-50%) translateX(24px);
  pointer-events: none;
}

.open-cover {
  width: 100%;
  border: 1px solid rgba(111, 76, 45, 0.38);
  border-radius: 6px;
  background: rgba(252, 247, 236, 0.9);
  color: var(--ink);
  cursor: pointer;
  text-align: center;
  padding: 18px 14px;
  box-shadow: 0 8px 22px rgba(56, 34, 16, 0.14);
  transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.open-cover:hover {
  background: #fffaf0;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(56, 34, 16, 0.18);
}

.open-label {
  display: block;
  font: 600 21px/1.2 "Crimson Pro", Georgia, serif;
  color: #462a18;
}

.open-sub {
  display: block;
  margin-top: 8px;
  font: 400 13px/1.4 "Source Sans 3", sans-serif;
  color: var(--muted);
}

.curved-arrow {
  display: block;
  font-size: 26px;
  transform: rotate(-14deg);
  line-height: 1;
  margin-top: 10px;
  color: var(--brown);
}

/* Close book button below the open spread */
.book-controls {
  margin-top: 26px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.45s ease 0.65s, transform 0.45s ease 0.65s;
}

.entrance-shell.book-is-open .book-controls {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.close-book {
  border: 1px solid rgba(119, 82, 54, 0.55);
  border-radius: 4px;
  background: rgba(248, 239, 223, 0.88);
  color: #4a2e1c;
  padding: 9px 18px;
  font: 600 14px/1 "Source Sans 3", sans-serif;
  cursor: pointer;
  transition: background-color 0.2s;
}

.close-book:hover {
  background: #fff9ec;
}

/* Mobile stacked spread hidden on desktop */
.mobile-spread {
  display: none;
}

/* Tablet positioning tweak for invitation card */
@media (max-width: 1080px) {
  .book-3d {
    transform: translateX(-25%) rotateX(2deg) rotateY(-4deg);
  }
  .cover-invite {
    position: static;
    transform: none;
    width: min(100%, 340px);
    margin-top: 26px;
  }
  .entrance-shell.book-is-open .cover-invite {
    display: none;
  }
  .curved-arrow {
    display: inline-block;
    margin: 0 0 0 8px;
    font-size: 20px;
    transform: rotate(135deg);
    vertical-align: middle;
  }
}

/* Mobile 3D Flip -> Stacked Spread (Strict Viewport Containment) */
@media (max-width: 760px) {
  html,
  body.entrance-page {
    max-width: 100%;
    overflow-x: clip;
  }

  .entrance-shell {
    padding: max(20px, env(safe-area-inset-top)) 16px 20px;
  }

  .book-stage {
    min-height: 0;
    width: 100%;
    padding: 8px 0 18px;
  }

  .book-3d {
    --spine-w: clamp(36px, 10vw, 48px);
    --page-w: min(calc(100vw - 44px - var(--spine-w)), 330px);
    --page-h: var(--page-w);
    width: calc(var(--page-w) + var(--spine-w));
    height: var(--page-h);
    margin: 0 auto;
    transform: none;
    transition: opacity 0.45s ease 0.25s, transform 0.65s ease;
  }

  .book-3d::after {
    left: 4px;
    right: -4px;
  }

  .book-outer-spine {
    left: 0;
    width: var(--spine-w);
  }

  .book-right-base,
  .book-cover-leaf {
    left: var(--spine-w);
    width: var(--page-w);
  }

  .book-flyleaf,
  .book-center-spine {
    display: none;
  }

  .book-3d.is-open .book-cover-leaf {
    transform: translateZ(3px) rotateY(-120deg);
  }

  .entrance-shell.book-is-open .book-3d {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    position: absolute;
    top: 8px;
  }

  .mobile-spread {
    display: none;
    width: 100%;
    max-width: 520px;
  }

  .entrance-shell.book-is-open .mobile-spread {
    display: block;
    animation: mobileReveal 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
  }

  @keyframes mobileReveal {
    from {
      opacity: 0;
      transform: translateY(18px) scale(0.97);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }

  .mobile-open-book {
    padding: 13px;
    background: linear-gradient(180deg, #4b2b19, #2b170d 50%, #4b2b19);
    border: 5px solid #492917;
    border-radius: 12px;
    box-shadow: 0 22px 42px rgba(41, 23, 12, 0.34);
  }

  .mobile-open-book .book-page {
    pointer-events: auto;
    min-height: 270px;
    padding: 28px 18px;
  }

  .mobile-open-book .left-page {
    border-radius: 7px 7px 2px 2px;
  }

  .mobile-open-book .right-page {
    border-radius: 2px 2px 7px 7px;
  }

  .mobile-spine {
    height: 11px;
    background: linear-gradient(180deg, #6d452a, #26140b, #765033);
  }

  .cover-live-subtitle {
    font-size: clamp(11px, 3.1vw, 14px);
  }
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
  .book-3d,
  .book-cover-leaf,
  .book-flyleaf,
  .book-outer-spine,
  .right-cover-shadow,
  .cover-invite,
  .book-controls {
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Shared Editorial Ornaments & Document Base
   ========================================================================== */

.ornament {
  display: flex;
  justify-content: center;
  margin: 18px 0 22px;
  color: #9e7849;
}

.document-page {
  background: #e6d6bb;
}

/* ==========================================================================
   Page 1 — The Roots of Understanding (Parchment Scroll)
   ========================================================================== */

.scroll-wrap {
  max-width: 1020px;
  margin: 0 auto;
  padding: 24px 24px 10px;
}

.scroll-roller {
  height: 36px;
  border-radius: 50px;
  background: linear-gradient(180deg, #a36e3e, #6e4324 30%, #422617 56%, #9b6636 78%, #59331e);
  box-shadow: 0 9px 16px rgba(47, 27, 14, 0.3);
  position: relative;
  z-index: 2;
  margin: 0 -4px;
}

.scroll-roller::before,
.scroll-roller::after {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  width: 18px;
  border-radius: 50%;
  background: linear-gradient(90deg, #3a2114, #b17c48, #4a2a18);
}

.scroll-roller::before { left: 8px; }
.scroll-roller::after { right: 8px; }

.scroll-roller span {
  position: absolute;
  left: 5%;
  right: 5%;
  top: 9px;
  height: 3px;
  background: rgba(231, 190, 132, 0.45);
  border-radius: 100%;
}

.parchment-scroll {
  position: relative;
  margin: -5px 12px;
  background-color: #f8efde;
  background-image:
    radial-gradient(rgba(119, 81, 44, 0.09) 0.55px, transparent 0.7px),
    linear-gradient(90deg, rgba(153, 111, 65, 0.08), transparent 9%, transparent 91%, rgba(153, 111, 65, 0.08));
  background-size: 6px 6px, 100% 100%;
  padding: clamp(32px, 6vw, 76px) clamp(24px, 8vw, 100px);
  box-shadow: 0 10px 28px rgba(64, 40, 20, 0.16);
  border-left: 1px solid #d0b58e;
  border-right: 1px solid #d0b58e;
}

.document-header {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 38px;
}

.document-header h1,
.offer-header h1 {
  font: 600 clamp(38px, 5vw, 58px)/1.05 "Crimson Pro", Georgia, serif;
  margin: 12px 0;
  color: #462a18;
}

.document-subtitle {
  font: italic clamp(19px, 2.3vw, 24px)/1.42 "Crimson Pro", Georgia, serif;
  color: #77583b;
  margin: 0 auto 8px;
  max-width: 680px;
}

.document-intro {
  text-align: left;
  margin-top: 22px;
}

.document-intro p {
  font: 400 19px/1.75 "Crimson Pro", Georgia, serif;
  margin: 0 0 16px;
}

.contents-box {
  max-width: 740px;
  margin: 34px auto 52px;
  padding: 22px 26px;
  border: 1px solid #cbb18a;
  background: rgba(255, 251, 242, 0.58);
  border-radius: 3px;
}

.contents-box h2,
.programme-index h2 {
  font: 600 13px/1.2 "Source Sans 3", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7c5e42;
  margin: 0 0 14px;
}

.contents-grid {
  margin: 0;
  padding-left: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 26px;
}

.contents-grid li {
  font: 500 15.5px/1.4 "Source Sans 3", sans-serif;
  color: #65472e;
}

.contents-grid a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.contents-grid a:hover,
.contents-grid a.is-active {
  color: #362012;
  border-color: #9e7849;
}

.idea-section {
  max-width: 740px;
  margin: 0 auto 48px;
  scroll-margin-top: 72px;
}

.idea-section h2 {
  font: 600 clamp(26px, 3vw, 33px)/1.18 "Crimson Pro", Georgia, serif;
  color: #50311d;
  border-bottom: 1px solid #cbb18a;
  padding-bottom: 9px;
  margin: 0 0 18px;
}

.idea-section p,
.idea-section li {
  font: 400 19px/1.74 "Crimson Pro", Georgia, serif;
}

.idea-section p {
  margin: 0 0 16px;
}

.idea-section a {
  color: #6a4425;
  text-underline-offset: 3px;
}

.idea-section ol,
.idea-section ul {
  padding-left: 24px;
  margin: 12px 0 18px;
}

.idea-section li {
  margin-bottom: 10px;
}

.closing-thought {
  margin-top: 24px !important;
  padding: 14px 20px;
  border-left: 3px solid var(--gold);
  background: rgba(255, 250, 240, 0.55);
  font: italic 500 20px/1.55 "Crimson Pro", Georgia, serif !important;
  color: #4f321e;
}

.document-end {
  text-align: center;
  max-width: 740px;
  margin: 56px auto 0;
  padding-top: 20px;
}

.scroll-closing {
  font: italic 22px/1.52 "Crimson Pro", Georgia, serif;
  color: #462a18;
  margin: 0 0 22px;
}

.scroll-motto {
  display: block;
  letter-spacing: 0.18em;
  font: 600 11px/1 "Source Sans 3", sans-serif;
  margin: 0 0 26px;
  color: #7c5e42;
}

.scroll-end-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font: 600 14.5px "Source Sans 3", sans-serif;
}

.scroll-end-links a {
  text-decoration: none;
  color: #5a3c26;
}

.scroll-end-links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.scroll-end-links .cta-link {
  border: 1px solid #8a6745;
  padding: 9px 18px;
  border-radius: 3px;
  background: rgba(255, 250, 240, 0.65);
  transition: background-color 0.2s, color 0.2s;
}

.scroll-end-links .cta-link:hover {
  text-decoration: none;
  background: var(--ink);
  color: #fdf6e9;
  border-color: var(--ink);
}

.roller-bottom {
  margin-top: -5px;
}

/* ==========================================================================
   Page 2 — See Our Offerings (Stitched Palm-Leaf Manuscripts)
   ========================================================================== */

.offerings-page {
  background: radial-gradient(ellipse at top, #f0e3cc 0%, #d8c29f 100%);
}

.manuscript-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 24px 20px;
}

.offer-header {
  max-width: 920px;
  text-align: center;
  margin: 0 auto 42px;
  padding: clamp(28px, 4.5vw, 48px) clamp(22px, 5vw, 56px);
  background: #f8f0e1;
  border: 1px solid #cbb28f;
  box-shadow: 0 10px 24px rgba(64, 40, 20, 0.12);
  border-radius: 3px;
}

.offer-intro {
  max-width: 760px;
  margin: 20px auto 0;
  text-align: left;
}

.offer-intro p {
  font: 400 18.5px/1.7 "Crimson Pro", Georgia, serif;
  margin: 0 0 14px;
}

.programme-index {
  margin: 28px auto 0;
  padding: 20px 22px;
  border: 1px solid #d0b995;
  background: #fcf7ee;
  text-align: left;
  border-radius: 3px;
}

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

.programme-index a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 3px;
  text-decoration: none;
  transition: background-color 0.2s;
}

.programme-index a:hover {
  background: rgba(198, 154, 88, 0.14);
}

.idx-num {
  font: 600 12px/1.5 "Source Sans 3", sans-serif;
  color: #8b6844;
  letter-spacing: 0.06em;
  flex-shrink: 0;
  padding-top: 2px;
}

.idx-text strong {
  display: block;
  font: 600 16px/1.25 "Crimson Pro", Georgia, serif;
  color: #462a18;
}

.idx-text small {
  display: block;
  font: 400 13.5px/1.35 "Source Sans 3", sans-serif;
  color: #74583f;
  margin-top: 2px;
}

/* Palm leaf stack & continuous cord binding */
.leaf-stack {
  display: flex;
  flex-direction: column;
  gap: 34px;
  position: relative;
  padding-left: 48px;
}

.leaf-stack::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 18px;
  bottom: 18px;
  width: 4px;
  border-radius: 8px;
  background: repeating-linear-gradient(to bottom, #74472a 0 14px, transparent 14px 23px);
  box-shadow: 1px 0 1px rgba(255, 255, 255, 0.6);
}

.palm-leaf {
  position: relative;
  scroll-margin-top: 72px;
  padding: clamp(28px, 4.5vw, 52px) clamp(24px, 5vw, 62px);
  background-color: #f9f2e4;
  background-image:
    radial-gradient(rgba(119, 81, 44, 0.07) 0.55px, transparent 0.7px),
    linear-gradient(90deg, rgba(166, 128, 78, 0.07), transparent 12%, transparent 88%, rgba(166, 128, 78, 0.06));
  background-size: 6px 6px, 100% 100%;
  border: 1px solid #c9b28e;
  box-shadow: 0 9px 22px rgba(63, 40, 21, 0.14);
  clip-path: polygon(0.6% 0, 99.4% 0.4%, 100% 2.5%, 99.7% 97%, 98.8% 100%, 1.2% 99.6%, 0 97.5%, 0.4% 3%);
}

.palm-leaf::after {
  content: "";
  position: absolute;
  inset: 9px 11px;
  border: 1px solid rgba(167, 133, 91, 0.24);
  pointer-events: none;
}

.leaf-binding {
  position: absolute;
  left: -42px;
  top: 28px;
  bottom: 28px;
  width: 35px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  z-index: 2;
}

.leaf-binding span {
  height: 19px;
  width: 19px;
  border: 2px solid #7a4d2e;
  border-radius: 50%;
  background: #e9d8ba;
  box-shadow: inset 0 0 0 4px #c4a17a, 0 1px 2px #795a3d;
}

.leaf-binding::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #815331;
  z-index: -1;
  border-radius: 4px;
}

.leaf-content {
  position: relative;
  z-index: 1;
  max-width: 840px;
  margin: 0 auto;
}

.leaf-header {
  margin-bottom: 22px;
}

.leaf-number {
  font: 600 11px/1 "Source Sans 3", sans-serif;
  letter-spacing: 0.2em;
  color: #8a6b48;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.leaf-content h2 {
  font: 600 clamp(30px, 3.8vw, 42px)/1.08 "Crimson Pro", Georgia, serif;
  color: #462a18;
  margin: 0 0 6px;
}

.leaf-subtitle {
  font: italic 500 clamp(18px, 2.2vw, 22px)/1.35 "Crimson Pro", Georgia, serif;
  color: #775639;
  margin: 0 0 18px;
}

.leaf-quote {
  margin: 0;
  padding: 12px 18px;
  border-left: 3px solid var(--gold);
  background: rgba(255, 251, 243, 0.7);
  font: italic 500 18.5px/1.5 "Crimson Pro", Georgia, serif;
  color: #4f331e;
}

.leaf-content h3 {
  font: 600 13px/1.2 "Source Sans 3", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7c5e42;
  margin: 26px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line-soft);
}

.leaf-content p,
.leaf-content li {
  font: 400 18px/1.68 "Crimson Pro", Georgia, serif;
}

.leaf-content p {
  margin: 0 0 15px;
}

.leaf-content ol {
  padding-left: 22px;
  margin: 10px 0 22px;
}

.leaf-content li {
  margin-bottom: 10px;
}

.leaf-footer {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}

.leaf-ideal {
  flex: 1 1 340px;
}

.meta-label {
  display: block;
  font: 600 11px/1 "Source Sans 3", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #826447;
  margin-bottom: 5px;
}

.leaf-ideal p {
  margin: 0;
  font: 500 15.5px/1.45 "Source Sans 3", sans-serif;
  color: #553b27;
}

.leaf-cta {
  display: inline-block;
  text-decoration: none;
  border: 1px solid #866341;
  padding: 10px 18px;
  border-radius: 3px;
  font: 600 12.5px/1 "Source Sans 3", sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #462a18;
  background: rgba(255, 251, 243, 0.75);
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.leaf-cta:hover {
  background: var(--ink);
  color: #fdf6e9;
  border-color: var(--ink);
}

/* Shared Endmatter */
.shared-endmatter {
  max-width: 920px;
  margin: 46px auto 0;
  padding: clamp(26px, 4.5vw, 44px);
  background: #f7eedd;
  border: 1px solid #c9b18d;
  box-shadow: 0 9px 20px rgba(63, 40, 21, 0.12);
  border-radius: 3px;
}

.endmatter-section {
  margin: 0 0 34px;
}

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

.endmatter-section h2 {
  font: 600 28px/1.2 "Crimson Pro", Georgia, serif;
  color: #462a18;
  border-bottom: 1px solid #cbb18a;
  padding-bottom: 8px;
  margin: 0 0 16px;
}

.endmatter-section p {
  font: 400 18px/1.68 "Crimson Pro", Georgia, serif;
  margin: 0 0 12px;
}

.facilitator-name {
  font: 600 20px/1.3 "Crimson Pro", Georgia, serif !important;
  color: #583821;
  margin-bottom: 8px !important;
}

.contact-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 20px 24px;
  background: #fcf7ee;
  border: 1px solid #d2ba95;
  border-radius: 4px;
}

.contact-details p {
  font: 400 16px/1.55 "Source Sans 3", sans-serif;
  margin: 0 0 6px;
}

.contact-details p:last-child {
  margin-bottom: 0;
}

.contact-org {
  font: 600 19px/1.3 "Crimson Pro", Georgia, serif !important;
  color: #462a18;
  margin-bottom: 8px !important;
}

.contact-details a {
  color: #674325;
  text-underline-offset: 3px;
}

.contact-details .sep {
  margin: 0 6px;
  color: #a58864;
}

.primary-cta {
  display: inline-block;
  text-decoration: none;
  background: #462a18;
  color: #fdf6e9;
  padding: 13px 24px;
  border-radius: 3px;
  font: 600 12.5px/1 "Source Sans 3", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background-color 0.2s, transform 0.2s;
}

.primary-cta:hover {
  background: #613c23;
  transform: translateY(-1px);
}

/* ==========================================================================
   Print Controls, Back to Top, & Shared Site Footer
   ========================================================================== */

.print-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin: 30px auto 10px;
  padding: 0 20px;
  font: 600 14px "Source Sans 3", sans-serif;
  color: #553924;
}

.print-controls button {
  border: 1px solid #866646;
  border-radius: 3px;
  background: #f9f1e2;
  color: #4a2e1c;
  padding: 9px 18px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.print-controls button:hover {
  background: #fff9ec;
}

.print-controls a {
  text-decoration: none;
}

.print-controls a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  text-decoration: none;
  background: rgba(70, 42, 24, 0.9);
  color: #fdf6e9;
  padding: 9px 14px;
  border-radius: 4px;
  font: 600 13px/1 "Source Sans 3", sans-serif;
  box-shadow: 0 6px 16px rgba(42, 23, 10, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s, background-color 0.2s;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #2f1b0f;
}

.site-footer {
  text-align: center;
  padding: 28px 20px 36px;
  margin-top: 24px;
  color: #6b4f37;
  font: 400 13.5px/1.6 "Source Sans 3", sans-serif;
}

.footer-motto {
  font: 600 11px/1 "Source Sans 3", sans-serif;
  letter-spacing: 0.2em;
  color: #7c5e42;
  margin: 0 0 8px;
}

.footer-meta,
.footer-copy {
  margin: 0 0 4px;
}

.footer-copy {
  font-size: 12.5px;
  color: #82674d;
}

.site-footer a {
  text-underline-offset: 3px;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 860px) {


  .programme-index-grid,
  .contents-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-brand {
    display: none;
  }

  .doc-nav {
    padding: 12px 16px;
    font-size: 13px;
  }



  .scroll-wrap {
    padding: 14px 10px 0;
  }

  .parchment-scroll {
    margin: -4px 6px;
    padding: 30px 20px;
  }

  .document-intro p,
  .idea-section p,
  .idea-section li {
    font-size: 17.5px;
  }

  .manuscript-wrap {
    padding: 14px 12px 20px;
  }

  .leaf-stack {
    padding-left: 30px;
    gap: 22px;
  }

  .leaf-stack::before {
    left: 12px;
    width: 3px;
  }

  .palm-leaf {
    padding: 26px 20px;
    clip-path: none;
    border-radius: 3px;
  }

  .leaf-binding {
    left: -27px;
    width: 24px;
  }

  .leaf-binding span {
    width: 15px;
    height: 15px;
  }

  .leaf-binding::before {
    left: 6px;
  }

  .leaf-content p,
  .leaf-content li,
  .endmatter-section p {
    font-size: 17px;
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
  }
}

/* ==========================================================================
   Print Stylesheet (Ink-Friendly PDF Export)
   ========================================================================== */

@media print {
  @page {
    size: A4;
    margin: 16mm 15mm;
  }

  body,
  .document-page,
  .offerings-page {
    background: #fff !important;
    color: #1f160f !important;
    padding: 0 !important;
  }

  .reading-progress,
  .doc-nav-bar,
  .print-controls,
  .back-to-top,
  .leaf-cta,
  .primary-cta,
  .scroll-end-links {
    display: none !important;
  }

  .scroll-wrap,
  .manuscript-wrap {
    max-width: none;
    padding: 0;
  }

  .scroll-roller {
    box-shadow: none;
    border: 1px solid #8a755d;
    height: 10px;
    background: #efe6d8;
    break-after: avoid;
  }

  .parchment-scroll,
  .offer-header,
  .palm-leaf,
  .shared-endmatter,
  .contents-box,
  .programme-index,
  .contact-card,
  .leaf-quote,
  .closing-thought {
    background: #fff !important;
    box-shadow: none !important;
  }

  .parchment-scroll {
    margin: 0;
    padding: 8mm 4mm;
    border: 0;
  }

  .offer-header {
    border: 0;
    padding: 0 0 8mm;
    margin-bottom: 8mm;
  }

  .leaf-stack {
    padding-left: 0;
    gap: 0;
  }

  .leaf-stack::before,
  .leaf-binding,
  .palm-leaf::after {
    display: none !important;
  }

  .palm-leaf {
    clip-path: none;
    border: 1px solid #b5a58d;
    padding: 8mm 9mm;
    margin-bottom: 8mm;
    break-inside: avoid;
  }

  a {
    color: #1f160f;
    text-decoration: none;
  }

  h1, h2, h3 {
    break-after: avoid;
  }

  p, li {
    orphans: 3;
    widows: 3;
  }
}
