/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Warm palette */
  --cream:       #FDF8F0;
  --cream-dark:  #F5EDE3;
  --sand:        #EDE4D8;
  --gold-light:  #FFF0C8;
  --gold:        #E8C872;
  --gold-muted:  #D4B96A;
  --brown-light: #8B7355;
  --brown:       #5C4A32;
  --brown-dark:  #3D2B1F;
  --ink:         #2C1D12;
  --rose:        #C4887A;
  --rose-light:  #F2DDD8;
  --dotted:      #C4A97D;

  /* Typography scale */
  --font-display: 'Cormorant Garamond', serif;
  --font-body:    'Source Serif 4', serif;
  --font-sans:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
}

html {
  font-size: 17px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--brown-dark);
  background: var(--cream);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* === Landing Page === */
.landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 2rem 4rem;
  text-align: center;
  background: var(--cream);
}

.landing-illustration {
  max-width: 220px;
  height: auto;
  margin-bottom: 1rem;
}

.landing h1 {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 500;
  color: var(--brown-dark);
  line-height: 1.15;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.landing h1 em {
  font-style: italic;
  color: var(--gold-muted);
}

.landing-sub-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--brown);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.landing .subtitle {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--brown-light);
  margin-bottom: 1.5rem;
  max-width: 32rem;
}

.landing .divider {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto 1.5rem;
}

.chapter-list {
  list-style: none;
  max-width: 36rem;
  width: 100%;
  text-align: left;
}

.chapter-list li {
  border-bottom: 1px solid var(--sand);
}

.chapter-list a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0.5rem;
  text-decoration: none;
  color: var(--brown-dark);
  transition: background 0.15s, padding-left 0.15s;
  border-radius: 4px;
}

.chapter-list a:hover {
  background: var(--cream-dark);
  padding-left: 1rem;
}

.ch-icon {
  display: inline-block;
  vertical-align: -2px;
  opacity: 0.6;
  margin-right: 2px;
}

.chapter-list .ch-num {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brown-light);
  min-width: 1.8rem;
  text-align: right;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.chapter-list .ch-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
}

.chapter-list .ch-themes {
  display: none;
}

/* === Chapter Page: Header === */
.chapter-header {
  text-align: center;
  padding: 4.5rem 2rem 1.25rem;
  background: var(--cream);
}

.chapter-header .ch-number {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.ch-nav-arrow {
  font-size: 0.85rem;
  color: var(--brown-light);
  text-decoration: none;
  min-width: 1.5rem;
  text-align: center;
  transition: color 0.15s;
  letter-spacing: 0;
}

a.ch-nav-arrow:hover {
  color: var(--brown-dark);
}

.chapter-header h1 {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 400;
  color: var(--brown-dark);
  margin-bottom: 1rem;
}

.chapter-header .themes {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--brown-light);
  max-width: 60rem;
  margin: 0 auto;
  line-height: 1.6;
  padding-bottom: 0.75rem;
}

.chapter-header .themes span {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  margin: 0.2rem;
  background: var(--cream-dark);
  border-radius: 100px;
}

/* === Chapter Page: Split Layout === */
.chapter-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 84rem;
  margin: 0 auto;
  min-height: 60vh;
}

.pane-left {
  background: var(--cream);
  padding: 1.5rem 3rem 6rem 4rem;
  border-right: 1px solid var(--sand);
  position: relative;
}

.pane-right {
  background: var(--cream-dark);
  padding: 1.5rem 4rem 6rem 3rem;
  position: relative;
}

/* Chapter illustration — floated in first paragraph */
img.chapter-vignette {
  float: left;
  width: 240px;
  height: auto;
  border-radius: 8px;
  margin: 0.1rem 1rem 0.5rem 0;
}

/* Drop cap on first paragraph */
.original-text p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 3.8rem;
  float: left;
  line-height: 0.8;
  padding-right: 0.12em;
  margin-top: 0.05em;
  color: var(--brown-dark);
  font-weight: 600;
}

/* Original text */
.original-text {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--brown-dark);
  max-width: 36rem;
  margin-left: auto;
}

.original-text p {
  margin-bottom: 1.4rem;
}

.original-text p + p::before {
  content: '✦';
  display: block;
  text-align: center;
  font-size: 0.55rem;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

/* Highlighted quote in original text */
.highlight-quote {
  background: linear-gradient(180deg, transparent 60%, var(--gold-light) 60%);
  padding: 0 2px;
  cursor: default;
  transition: background 0.2s;
  border-radius: 2px;
}

.highlight-quote:hover {
  background: linear-gradient(180deg, transparent 40%, var(--gold-light) 40%);
}

.highlight-quote[data-parallel] {
  position: relative;
  cursor: pointer;
}

/* Connector dots are drawn via SVG in connect.js */
.connector-dot { display: none; }

/* Parallels hint when cards are pushed down */
.parallels-hint {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--brown-light);
  text-align: center;
  padding: 2rem 1.5rem;
  cursor: pointer;
  transition: color 0.15s;
  line-height: 1.5;
}

.parallels-hint:hover {
  color: var(--brown-dark);
}

.parallels-hint-arrow {
  font-style: normal;
  font-size: 1.1rem;
  margin-top: 0.5rem;
  animation: gentle-bounce 2s ease-in-out infinite;
  color: var(--brown-light);
}

@keyframes gentle-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(6px); opacity: 1; }
}

/* === Right Pane: Insights === */
.insight-cards {
  max-width: 36rem;
}

.insight-card {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--sand);
  position: relative;
}

.insight-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.insight-card .card-marker {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 0.75rem;
}

/* Takeaway one-liner */
.takeaway {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brown-dark);
  line-height: 1.45;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--sand);
}

/* Guest attribution */
.guest-attribution {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.guest-photo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.guest-initials {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sand);
  color: var(--brown);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.guest-info {
  display: flex;
  flex-direction: column;
}

.guest-name {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brown-dark);
}

.guest-name a {
  color: var(--brown-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--sand);
  transition: border-color 0.15s;
}

.guest-name a:hover {
  border-color: var(--gold);
}

.guest-role {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: var(--brown-light);
  line-height: 1.3;
}

.insight-card .lenny-quote {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--brown-dark);
  padding: 1rem 1.5rem 1rem 3.25rem;
  background: var(--cream);
  border-left: 3px solid var(--gold);
  border-radius: 0 6px 6px 0;
  margin-bottom: 1rem;
  position: relative;
}

.insight-card .lenny-quote::before {
  content: '\201C';
  position: absolute;
  left: 0.75rem;
  top: 0.4rem;
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.45;
}

.insight-card .lenny-source {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--brown-light);
  margin-bottom: 1rem;
  padding-left: 0.25rem;
}

.insight-card .lenny-source a {
  color: var(--brown-light);
  text-decoration: none;
  border-bottom: 1px dotted var(--sand);
  transition: color 0.15s, border-color 0.15s;
}

.insight-card .lenny-source a:hover {
  color: var(--brown-dark);
  border-color: var(--gold);
}

.insight-card .connection-label {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 0.4rem;
}

.insight-card .connection {
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--brown);
  font-style: italic;
}

/* Connector bridges are drawn via SVG in connect.js */
.connector-bridge { display: none; }

/* === Chapter Closing Reflection === */
.chapter-reflection {
  background: var(--cream);
  padding: 3.5rem 2rem;
  text-align: center;
  border-top: 1px solid var(--sand);
}

.reflection-inner {
  max-width: 38rem;
  margin: 0 auto;
}

.reflection-inner p {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  color: var(--brown-dark);
}

.chapter-reflection::before {
  content: '✦';
  display: block;
  text-align: center;
  font-size: 0.7rem;
  color: var(--gold);
  margin-bottom: 2rem;
}

/* === Chapter Navigation Footer === */
.chapter-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 84rem;
  margin: 0 auto;
  padding: 2rem 4rem;
  border-top: 1px solid var(--sand);
  background: var(--cream);
}

.chapter-nav a {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--brown-light);
  text-decoration: none;
  transition: color 0.15s;
}

.chapter-nav a:hover {
  color: var(--brown-dark);
}

/* === Site Nav === */
.site-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
}

.nav-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--brown-dark);
}

.nav-logo-img {
  width: 40px;
  height: auto;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brown-dark);
  line-height: 1.2;
}

.nav-logo-sub {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--brown-light);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--brown-light);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--brown-dark);
}

/* Hamburger button — hidden on desktop */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--brown-dark);
}

.nav-hamburger svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
}

/* Mobile menu overlay */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(44, 29, 18, 0.3);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 300px;
  max-width: 85vw;
  background: var(--cream);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  padding: 1.5rem;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
}

.mobile-menu-overlay.open .mobile-menu-panel {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.mobile-menu-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--brown-light);
  cursor: pointer;
  line-height: 1;
}

.mobile-menu-links {
  list-style: none;
  margin-bottom: 1.5rem;
}

.mobile-menu-links a {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--brown-dark);
  text-decoration: none;
  padding: 0.7rem 0.25rem;
  border-bottom: 1px solid var(--sand);
}

.mobile-menu-links a:hover {
  color: var(--gold-muted);
}

.mobile-menu-divider {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brown-light);
  margin: 1.25rem 0 0.5rem 0.25rem;
}

@media (min-width: 901px) {
  .mobile-menu-overlay { display: none; }
}

.nav-links .nav-primary {
  font-weight: 600;
  color: var(--brown-dark);
  background: var(--cream-dark);
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  cursor: pointer;
}

.nav-links .nav-primary:hover {
  background: var(--sand);
}

/* === Chapters Slide Panel === */
.chapters-overlay {
  position: fixed;
  inset: 0;
  background: rgba(44, 29, 18, 0.3);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.chapters-overlay.open {
  opacity: 1;
  visibility: visible;
}

.chapters-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 380px;
  max-width: 90vw;
  background: var(--cream);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  padding: 2.5rem 2rem;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
}

.chapters-overlay.open .chapters-panel {
  transform: translateX(0);
}

.chapters-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.chapters-panel-header h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--brown-dark);
}

.chapters-panel-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--brown-light);
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
}

.chapters-panel-close:hover {
  color: var(--brown-dark);
}

.chapters-panel-intro {
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  color: var(--brown-light);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.chapters-panel .chapter-list {
  max-width: none;
}

.chapters-panel .chapter-list .ch-title {
  font-size: 1.1rem;
}

.chapter-list a.ch-current {
  background: var(--gold-light);
  padding-left: 1rem;
}

.chapter-list a.ch-current .ch-num {
  color: var(--brown-dark);
}

.chapter-list a.ch-current .ch-title {
  font-weight: 600;
}

/* === Site Footer === */
.site-footer {
  border-top: 1px solid var(--sand);
  padding: 1.5rem 2rem;
  background: var(--cream);
}

.footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-left, .footer-right {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--brown-light);
}

.footer-left a,
.footer-right a {
  color: var(--brown-light);
  text-decoration: none;
  border-bottom: 1px dotted var(--sand);
}

.footer-left a:hover,
.footer-right a:hover {
  color: var(--brown-dark);
  border-color: var(--gold);
}

/* === Static Pages (About, Manifesto, Give Back) === */
.page-content {
  padding-top: 5rem;
}

.page-hero {
  text-align: center;
  padding: 3rem 2rem 2rem;
}

.page-hero-img {
  margin-bottom: 1.5rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 500;
  color: var(--brown-dark);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.page-subtitle {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--brown-light);
  max-width: 30rem;
  margin: 0 auto;
}

.page-body {
  max-width: 38rem;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
}

.content-section {
  margin-bottom: 2.5rem;
}

.content-section h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--brown-dark);
  margin-bottom: 1rem;
}

.content-section h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--brown-dark);
  margin-bottom: 0.5rem;
}

.content-section p {
  margin-bottom: 1rem;
  color: var(--brown);
}

.content-section a:not(.giveback-button):not(.thankyou-button):not(.builder-link) {
  color: var(--brown-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
}

.content-section a:not(.giveback-button):not(.thankyou-button):not(.builder-link):hover {
  border-color: var(--brown-dark);
}

.pullquote {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--brown-dark);
  text-align: center;
  padding: 2rem 1.5rem;
  margin: 2rem 0;
  border-top: 1px solid var(--sand);
  border-bottom: 1px solid var(--sand);
  line-height: 1.5;
}

.pullquote-attr {
  display: block;
  font-size: 0.85rem;
  font-style: normal;
  color: var(--brown-light);
  margin-top: 0.5rem;
  font-family: var(--font-sans);
}

/* Builder card */
.builder-card {
  background: var(--cream-dark);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.builder-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.builder-info h3 {
  margin-bottom: 0.5rem;
}

.builder-link {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  display: inline-block;
  margin-top: 0.25rem;
  color: var(--brown-dark) !important;
  border-bottom: 1px solid var(--gold) !important;
  text-decoration: none !important;
}

.builder-link:hover {
  border-color: var(--brown-dark) !important;
}

/* Manifesto principles */
.principles-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.principle {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.principle-num {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--cream);
  background: var(--gold-muted);
  min-width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.15rem;
}

.principle strong {
  display: block;
  font-family: var(--font-body);
  color: var(--brown-dark);
  margin-bottom: 0.15rem;
}

.principle p {
  font-size: 0.9rem;
  color: var(--brown);
  margin: 0;
}

/* Give Back page */
.giveback-hero-img {
  width: 100%;
  max-width: 38rem;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.giveback-cta-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--brown-dark);
  margin-bottom: 1.5rem;
}

.giveback-button {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: #FFFFFF;
  background: var(--brown-dark);
  padding: 0.75rem 1.75rem;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.15s;
}

.giveback-button:hover {
  background: var(--brown);
}

.giveback-org {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.giveback-logo {
  width: 80px;
  height: auto;
  border-radius: 8px;
}

.giveback-numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: center;
}

.giveback-stat {
  padding: 1rem 0.5rem;
  background: var(--cream-dark);
  border-radius: 8px;
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brown-dark);
}

.stat-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  color: var(--brown-light);
}

/* About story image */
.about-story-img {
  width: 180px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  display: block;
}

.landing-section .about-story-img {
  margin: 0 auto 1.5rem;
}

.about-story-centered {
  display: block;
  margin: 0 auto 1.5rem;
}

.page-body .content-section h2 {
  text-align: center;
}

/* === Landing: About & Thank You Sections === */
.landing-section {
  width: 100%;
  max-width: 36rem;
  text-align: left;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--sand);
}

.landing-section h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--brown-dark);
  margin-bottom: 1rem;
  text-align: center;
}

.landing-section p {
  font-size: 0.95rem;
  color: var(--brown);
  margin-bottom: 0.75rem;
}

.landing-section .section-link {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--brown-light);
  text-decoration: none;
  border-bottom: 1px dotted var(--sand);
}

.landing-section .section-link:hover {
  color: var(--brown-dark);
  border-color: var(--gold);
}

/* Thank You Lenny */
.thankyou-lenny {
  text-align: center;
}

.thankyou-lenny img {
  width: 80px;
  height: auto;
  margin-bottom: 1rem;
}

.thankyou-lenny p {
  text-align: center;
}

.thankyou-button {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--brown-light);
  border: 1px solid var(--sand);
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  text-decoration: none;
  margin-top: 0.75rem;
  transition: border-color 0.15s, color 0.15s;
}

.thankyou-button:hover {
  border-color: var(--gold);
  color: var(--brown-dark);
}

/* === Responsive === */
@media (max-width: 900px) {
  .chapter-body {
    grid-template-columns: 1fr;
  }

  .pane-left {
    border-right: none;
    border-bottom: 1px solid var(--sand);
    padding: 2rem;
  }

  .pane-right {
    padding: 2rem;
  }

  .connector-dot, .connector-line, .connector-bridge, .connector-bridge::before {
    display: none;
  }

  .original-text {
    margin-left: 0;
  }

  /* Hide right pane on mobile — parallels shown via slide panel */
  .pane-right {
    display: none;
  }

  .chapter-body {
    grid-template-columns: 1fr;
  }

  .pane-left {
    border-right: none;
    border-bottom: none;
  }

  /* Make highlights look tappable */
  .highlight-quote[data-parallel] {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .highlight-quote[data-parallel]::after {
    content: ' ↗';
    font-size: 0.65em;
    color: var(--gold-muted);
    vertical-align: super;
  }

  .landing h1 { font-size: 2.5rem; }
  .chapter-header h1 { font-size: 2.2rem; }

  /* Mobile nav: show logo text, hide links, show hamburger */
  .nav-links { display: none; }
  .nav-hamburger { display: block; }

  .nav-logo-text {
    font-size: 0.95rem;
  }

  .page-hero h1 { font-size: 2rem; }

  /* Compact theme tags on mobile */
  .chapter-header .themes {
    display: none;
  }

  .giveback-numbers { grid-template-columns: 1fr; }
  .giveback-org { flex-direction: column; }

  img.chapter-vignette {
    width: 140px;
  }
}

/* === Mobile Parallel Panel === */
.parallel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(44, 29, 18, 0.3);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.parallel-overlay.open {
  opacity: 1;
  visibility: visible;
}

.parallel-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 85vw;
  max-width: 400px;
  background: var(--cream-dark);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  padding: 1.5rem;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
}

.parallel-overlay.open .parallel-panel {
  transform: translateX(0);
}

.parallel-panel-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--brown-light);
  cursor: pointer;
  float: right;
  padding: 0;
  line-height: 1;
}

.parallel-panel-close:hover {
  color: var(--brown-dark);
}

.parallel-panel .insight-card {
  margin-top: 0.5rem;
}

/* Multiple cards in panel — spacing */
.parallel-panel-content .insight-card + .insight-card {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--sand);
}

/* Only show on mobile */
@media (min-width: 901px) {
  .parallel-overlay { display: none; }
  .mobile-parallels-hint { display: none; }
}

/* === Mobile Parallels Discovery Hint === */
.mobile-parallels-hint {
  display: none;
}

@media (max-width: 900px) {
  .mobile-parallels-hint {
    display: block;
    font-family: var(--font-display);
    font-size: 1rem;
    font-style: italic;
    color: var(--brown-light);
    text-align: center;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    background: var(--cream-dark);
    border-radius: 8px;
    cursor: pointer;
    line-height: 1.5;
    border: 1px solid var(--sand);
    transition: background 0.15s;
  }

  .mobile-parallels-hint:active {
    background: var(--sand);
  }

  .mobile-parallels-hint .highlight-quote {
    cursor: inherit;
  }

  /* === Fix #1: Nav conflicts with content on mobile === */
  .chapter-header {
    padding-top: 5rem;
  }

  .landing {
    padding-top: 5rem;
  }

  .page-content {
    padding-top: 5rem;
  }

  /* === Fix #3: Side panel fills vertical space on mobile === */
  .parallel-overlay {
    background: none;
  }

  .parallel-panel {
    width: 100%;
    max-width: 100%;
    top: 0;
    bottom: 0;
    background: var(--cream);
    padding: 2rem 1.5rem;
    padding-top: calc(env(safe-area-inset-top, 0px) + 1.5rem);
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 2rem);
  }

  .parallel-panel-close {
    display: block;
    float: none;
    font-size: 1.8rem;
    padding: 0.25rem;
    margin-bottom: 1rem;
    color: var(--brown);
  }

  .parallel-panel-content {
    clear: both;
  }

  .parallel-panel .insight-card {
    margin-top: 0;
    padding-bottom: 1.5rem;
    border-bottom: none;
  }

  .parallel-panel .insight-card .lenny-quote {
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    font-size: 0.9rem;
  }

  .parallel-panel .insight-card .lenny-quote::before {
    left: 0.5rem;
    font-size: 2.5rem;
  }

  /* === Fix #5: Assorted mobile polish === */

  /* Readable font sizes */
  html {
    font-size: 16px;
  }

  .original-text {
    font-size: 1.05rem;
    line-height: 1.8;
  }

  /* Chapter nav (prev/next) stacks vertically on mobile */
  .chapter-nav {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem 2rem;
    text-align: center;
  }

  .chapter-nav a {
    display: block;
  }

  /* Drop cap slightly smaller on mobile */
  .original-text p:first-of-type::first-letter {
    font-size: 3.2rem;
  }

  /* Paragraph divider stars visible on mobile */
  .original-text p + p::before {
    font-size: 0.5rem;
    margin-bottom: 1rem;
  }

  /* Reflection section responsive */
  .reflection-inner p {
    font-size: 1.35rem;
  }

  /* Footer stacks on mobile */
  .footer-inner {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}
