/* Page */
body.page-manifesto {
  background: #F5F0EB;
  color: #2C2825;
}

/* Article layout */
.manifesto-header {
  max-width: 680px;
  margin: 0 auto;
  padding: 140px 24px 48px; /* top padding for fixed nav */
  text-align: center;
}
.manifesto-header h1 {
  font-family: 'Lora', serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 400;
  color: #2B3D2F;
  line-height: 1.2;
  margin-bottom: 16px;
}
.read-time {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  color: #A39585;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.manifesto-body {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px 120px; /* bottom for audio player */
}
.manifesto-body h2 {
  font-family: 'Lora', serif;
  font-size: clamp(22px, 3.5vw, 34px);
  font-weight: 400;
  color: #2B3D2F;
  line-height: 1.3;
  margin: 2.5em 0 1em;
}
.manifesto-body p {
  font-family: 'Lora', serif;
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.8;
  color: #2C2825;
  margin-bottom: 1.6em;
  transition: opacity 0.4s ease;
}

/* Word spans */
.word { transition: background-color 0.15s ease, color 0.15s ease; cursor: pointer; }
.word:hover { background: rgba(107,127,94,0.08); }

/* Audio sync highlighting */
.audio-playing .manifesto-body p { opacity: 0.35; }
.audio-playing .manifesto-body p.audio-active { opacity: 1; }
.audio-playing .manifesto-body p.audio-active .word.word-active {
  background: rgba(107,127,94,0.15);
  border-radius: 2px;
}

/* ---- Listen button (inline in header) ---- */
.listen-btn {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 20px; padding: 8px 0; cursor: pointer;
  background: none; border: none;
  font-family: 'DM Sans', sans-serif; font-size: 14px;
  color: rgba(44,40,37,0.55); letter-spacing: 0.02em;
  transition: color 0.3s ease;
}
.listen-btn:hover { color: #2B3D2F; }
.listen-btn svg { width: 18px; height: 18px; }

/* ---- Floating mini player (hidden until playing) ---- */
#audio-player {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 90;
  display: flex; align-items: center; gap: 14px;
  padding: 10px 20px;
  background: rgba(44,40,37,0.92); backdrop-filter: blur(16px);
  border: 1px solid rgba(245,240,235,0.08);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
  max-width: 420px; width: calc(100% - 48px);
}
#audio-player.active {
  opacity: 1; pointer-events: auto;
}
#audio-play-btn {
  background: none; border: none; cursor: pointer; padding: 4px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
#audio-progress-wrap {
  flex: 1; height: 3px; background: rgba(245,240,235,0.15);
  cursor: pointer; position: relative;
}
#audio-progress-bar {
  height: 100%; width: 0%; background: #6B7F5E;
  transition: width 0.1s linear;
}
#audio-time {
  font-family: 'DM Mono', monospace; font-size: 11px;
  color: rgba(245,240,235,0.5); letter-spacing: 0.03em;
  flex-shrink: 0; min-width: 80px; text-align: center;
}
#audio-speed-btn {
  background: none; border: 1px solid rgba(245,240,235,0.15);
  padding: 2px 8px; cursor: pointer;
  font-family: 'DM Mono', monospace; font-size: 10px;
  color: rgba(245,240,235,0.5); letter-spacing: 0.03em;
  flex-shrink: 0; transition: all 0.2s ease;
}
#audio-speed-btn:hover {
  border-color: rgba(245,240,235,0.4);
  color: rgba(245,240,235,0.9);
}

/* Light-page nav color overrides */
body.page-manifesto #nav-logo svg path { fill: #2B3D2F; }
body.page-manifesto .nav-link,
body.page-manifesto .nav-contact { color: #2C2825; }
body.page-manifesto #hamburger-btn svg { stroke: #2C2825; }

/* Footer on light page */
body.page-manifesto .site-footer {
  color: rgba(44,40,37,0.35);
}
body.page-manifesto .site-footer svg { color: rgba(44,40,37,0.2); }

/* ---- CHAPTER NAV (left side) ---- */
#chapter-nav {
  position: fixed; left: 24px; top: 50%; transform: translateY(-50%);
  z-index: 50; display: flex; flex-direction: column; gap: 0;
  padding: 12px 8px;
}
.chap-item {
  padding: 8px 0; cursor: pointer; position: relative;
  display: flex; align-items: center;
  transition: transform 0.08s ease-out;
}
.chap-line {
  height: 2.5px; background: rgba(44,40,37,0.2);
  pointer-events: none;
  transition: width 0.3s ease, background 0.3s ease;
}
.chap-item:nth-child(odd) .chap-line { width: 22px; }
.chap-item:nth-child(even) .chap-line { width: 16px; }
.chap-item.active .chap-line {
  width: 34px;
  background: rgba(43,61,47,0.7);
}
.chap-label {
  position: absolute; left: 52px; top: 50%; transform: translateY(-50%);
  font-family: 'DM Sans', sans-serif; font-size: 11px; color: #2C2825;
  opacity: 0; white-space: nowrap; transition: opacity 0.15s ease;
  pointer-events: none; letter-spacing: 0.05em;
}
.chap-item:hover .chap-label { opacity: 0.7; }

/* Hover proximity sizing (mirrors homepage behavior, driven by JS) */

/* Responsive */
.layout-portrait #chapter-nav { display: none; }
.layout-portrait .manifesto-header { padding-top: 100px; }
