/* ════════════════════════════════════════════════════════════════
   TWEAK OVERRIDES — Mood, Voice, Pulse
   Driven by html[data-mood], html[data-voice], --pulse on :root
═════════════════════════════════════════════════════════════════ */

:root { --pulse: 1; }

/* ── PULSE → Ken Burns pacing ─────────────────────────────────── */
#hero-img {
  animation-duration: calc(16s / max(var(--pulse), 0.15));
}

/* When pulse is near zero, freeze the hero entirely */
:root[data-pulse-still="1"] #hero-img {
  animation: none !important;
  transform: scale(1.06) !important;
}

/* ════════════════════════════════════════════════════════════════
   MOOD: FROST — cool, distant, monochrome breath
═════════════════════════════════════════════════════════════════ */
:root[data-mood="frost"] {
  --orange: oklch(0.70 0.09 235);
  --cream:  oklch(0.94 0.006 240);
  --dark:   oklch(0.17 0.012 245);
  --near-black: oklch(0.10 0.008 245);
  --mid:    oklch(0.56 0.012 240);
}

:root[data-mood="frost"] body {
  background: var(--cream);
}

:root[data-mood="frost"] #hero-img {
  filter: saturate(0.30) hue-rotate(-12deg) brightness(0.92) contrast(1.04);
}

:root[data-mood="frost"] #hero-overlay {
  background: linear-gradient(
    to right,
    rgba(14, 22, 36, 0.78) 0%,
    rgba(14, 22, 36, 0.48) 50%,
    rgba(14, 22, 36, 0.15) 100%
  ) !important;
}

/* Canvas particles rendered amber; rotate hue to cool */
:root[data-mood="frost"] #desc-canvas {
  filter: hue-rotate(180deg) saturate(0.65) brightness(1.06);
}

/* Orange accents (chapter divider star, footer email link, buy-btn text) */
:root[data-mood="frost"] .headline-line .orange-word,
:root[data-mood="frost"] #hero-byline,
:root[data-mood="frost"] #footer-contact-body a {
  color: var(--orange);
}

:root[data-mood="frost"] #author-name span[style*="color: #e45a00"],
:root[data-mood="frost"] #author-name span[style*="rgb(228"] {
  color: var(--orange) !important;
}

:root[data-mood="frost"] #buy-btn { color: var(--orange); }

:root[data-mood="frost"] #book-cover {
  filter: saturate(0.55) hue-rotate(-10deg);
}

/* ════════════════════════════════════════════════════════════════
   MOOD: PAPER — printed page, no atmosphere, ink-on-cream
═════════════════════════════════════════════════════════════════ */
:root[data-mood="paper"] {
  --orange: oklch(0.48 0.14 28);
  --cream:  oklch(0.96 0.020 82);
  --dark:   oklch(0.22 0.025 38);
  --near-black: oklch(0.15 0.018 38);
  --mid:    oklch(0.48 0.025 38);
}

:root[data-mood="paper"] body {
  background: var(--cream);
}

/* No atmosphere — hide canvas entirely */
:root[data-mood="paper"] #desc-canvas { display: none; }

/* Hero treated as halftone print */
:root[data-mood="paper"] #hero-img {
  filter: sepia(0.55) saturate(0.7) contrast(1.08) brightness(0.95);
}

:root[data-mood="paper"] #hero-overlay {
  background: linear-gradient(
    to right,
    rgba(38, 26, 16, 0.74) 0%,
    rgba(38, 26, 16, 0.45) 50%,
    rgba(38, 26, 16, 0.10) 100%
  ) !important;
}

/* Faint ruled-paper texture on the dark interior sections */
:root[data-mood="paper"] #description,
:root[data-mood="paper"] #author,
:root[data-mood="paper"] #footer {
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent 0 32px,
      rgba(255, 255, 255, 0.018) 32px 33px
    );
}

/* Orange ink */
:root[data-mood="paper"] #author-name span[style*="color: #e45a00"],
:root[data-mood="paper"] #author-name span[style*="rgb(228"] {
  color: var(--orange) !important;
}

:root[data-mood="paper"] #buy-btn { color: var(--orange); }

/* Soften the buy-btn shadow ring on paper */
:root[data-mood="paper"] #book-cover {
  filter: sepia(0.18) saturate(0.85);
}

/* ════════════════════════════════════════════════════════════════
   VOICE: MANUSCRIPT — all serif, italic accents, hushed
═════════════════════════════════════════════════════════════════ */
:root[data-voice="manuscript"] .headline-line,
:root[data-voice="manuscript"] #hero-life,
:root[data-voice="manuscript"] #author-name,
:root[data-voice="manuscript"] #author-heading,
:root[data-voice="manuscript"] #footer-thanks-heading,
:root[data-voice="manuscript"] #footer-contact-label,
:root[data-voice="manuscript"] #chapter-title,
:root[data-voice="manuscript"] .nav-logo-mark {
  font-family: 'Lora', Georgia, serif !important;
  font-weight: 600;
  letter-spacing: -0.012em;
  text-transform: none;
  line-height: 1.02;
}

:root[data-voice="manuscript"] .headline-line {
  font-size: 0.74em;
  font-weight: 500;
}

:root[data-voice="manuscript"] .headline-line .orange-word {
  font-style: italic;
  font-weight: 600;
}

:root[data-voice="manuscript"] #author-name {
  font-size: clamp(64px, 9vw, 180px);
  letter-spacing: -0.03em;
  line-height: 1;
}

:root[data-voice="manuscript"] #hero-byline,
:root[data-voice="manuscript"] #hero-tagline,
:root[data-voice="manuscript"] #excerpt-label,
:root[data-voice="manuscript"] #footer-available,
:root[data-voice="manuscript"] #chapter-label {
  font-family: 'Lora', Georgia, serif !important;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
}

:root[data-voice="manuscript"] #hero-byline {
  font-size: 0.8em;
}

:root[data-voice="manuscript"] #desc-body,
:root[data-voice="manuscript"] #author-bio,
:root[data-voice="manuscript"] #footer-thanks-body {
  font-family: 'Lora', Georgia, serif !important;
  font-weight: 400;
  line-height: 1.7;
}

:root[data-voice="manuscript"] .section-number,
:root[data-voice="manuscript"] #excerpt-num,
:root[data-voice="manuscript"] #author-num,
:root[data-voice="manuscript"] #footer-num,
:root[data-voice="manuscript"] #footer-contact-num {
  font-family: 'Lora', Georgia, serif !important;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.04em;
}

/* ════════════════════════════════════════════════════════════════
   VOICE: BROADCAST — all condensed display, all caps, poster volume
═════════════════════════════════════════════════════════════════ */
:root[data-voice="broadcast"] #hero-byline,
:root[data-voice="broadcast"] #hero-life,
:root[data-voice="broadcast"] #hero-tagline,
:root[data-voice="broadcast"] #chapter-label,
:root[data-voice="broadcast"] #chapter-title,
:root[data-voice="broadcast"] #desc-body,
:root[data-voice="broadcast"] #author-bio,
:root[data-voice="broadcast"] #footer-thanks-body,
:root[data-voice="broadcast"] .nav-logo-mark,
:root[data-voice="broadcast"] .nav-buy-link,
:root[data-voice="broadcast"] #excerpt-num,
:root[data-voice="broadcast"] #author-num,
:root[data-voice="broadcast"] #footer-num,
:root[data-voice="broadcast"] #footer-contact-num,
:root[data-voice="broadcast"] .section-number {
  font-family: 'Bebas Neue', Impact, sans-serif !important;
  text-transform: uppercase;
  font-weight: 400;
}

:root[data-voice="broadcast"] #hero-byline {
  font-size: 1.15em;
  letter-spacing: 0.22em;
}

:root[data-voice="broadcast"] #hero-life {
  font-size: 1.05em;
  letter-spacing: 0.01em;
  line-height: 0.92;
}

:root[data-voice="broadcast"] #hero-tagline {
  font-size: 1.45em;
  letter-spacing: 0.06em;
  line-height: 1.05;
  font-weight: 400;
}

:root[data-voice="broadcast"] #desc-body {
  font-size: 1.45em;
  line-height: 1.05;
  letter-spacing: 0.02em;
}

:root[data-voice="broadcast"] #chapter-title {
  font-size: 1.1em;
  letter-spacing: 0.03em;
}

:root[data-voice="broadcast"] #chapter-label {
  letter-spacing: 0.28em;
  font-size: 0.85em;
}

:root[data-voice="broadcast"] #author-bio,
:root[data-voice="broadcast"] #footer-thanks-body {
  font-size: 1.6em;
  line-height: 1.12;
  letter-spacing: 0.025em;
}

:root[data-voice="broadcast"] .headline-line {
  letter-spacing: 0.04em;
}

/* Make the orange accent word a hard color block in broadcast */
:root[data-voice="broadcast"] .headline-line .orange-word {
  background: var(--orange);
  color: var(--dark);
  padding: 0 0.08em 0.04em;
  display: inline-block;
  line-height: 0.92;
}

:root[data-voice="broadcast"] .nav-logo-mark,
:root[data-voice="broadcast"] .nav-buy-link {
  letter-spacing: 0.18em;
  font-size: 14px;
}
