/* ============================================================
   ETERNIA OVERRIDES — 2026-09-20. Loaded last, after Joel's stylesheets.
   Every fix we add lives here so his files stay pristine.
   ============================================================ */

/* Nav "Shop" button: .nav-links a { padding: 4px 0 } was beating .nav-cta { padding: 10px 22px } */
nav.site-nav .nav-links a.nav-cta { padding: 9px 20px 9px 22px !important; }
@media (max-width: 900px) { nav.site-nav .nav-links a.nav-cta { padding: 14px 22px !important; } }

/* Home book cards: breathing room under the "Ages" line (matches the scripture → ages gap) */
.book-card .cap { padding-bottom: 8px; }

/* Home hero: release date sits under the buttons, bigger, unmissable */
.hero-release {
  margin: 22px 0 0;
  font-family: 'Belda', serif;
  font-size: clamp(15px, 1.5vw, 21px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-gold, #d4a83f);
  text-shadow: 0 2px 16px rgba(0,0,0,0.65);
  opacity: 0;
  transform: translateY(20px);
  animation: hero-rise 1.6s var(--ease-sacred, ease) forwards;
  animation-delay: 2.3s;
}

/* Curriculum strip: inline notify forms (churches / families) */
.curric-notify { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.curric-notify input[type="email"] {
  flex: 1 1 170px; min-width: 0; padding: 12px 14px; border-radius: 6px;
  border: 1px solid rgba(37,76,95,0.28); background: #fff; color: var(--ink, #353434);
  font-family: 'Belda', serif; font-size: 15px;
}
.curric-notify input[type="email"]:focus { outline: none; border-color: var(--brand-gold, #d4a83f); box-shadow: 0 0 0 3px rgba(212,168,63,0.22); }
.curric-notify .btn { white-space: nowrap; }

/* Book pages — "Up Next": Joel's inline padding-top:0 and, on four books, no background at all
   (white text on the cream page). Even padding, centred content, a dark stage. */
body[data-book] #next { padding-top: clamp(64px, 7vw, 96px) !important; padding-bottom: clamp(64px, 7vw, 96px) !important; }
#next.on-dark:not(.adam-up-next) { background: linear-gradient(180deg, #2a2933 0%, #0b0d14 100%); }

/* Book pages — "Did you know?" cards: a warmer front and a tease on hover */
.fact-flip__front {
  background: linear-gradient(160deg, rgba(232,196,140,0.22) 0%, rgba(26,39,54,0.62) 100%);
  box-shadow: inset 0 0 0 1px rgba(232,196,140,0.18);
}
.fact-flip:not(.is-flipped):hover .fact-flip__inner { animation: ictw-tease 0.75s ease-in-out; }
@keyframes ictw-tease {
  0%, 100% { transform: rotateY(0deg) rotate(0deg); }
  20%  { transform: rotateY(-16deg) rotate(-1.2deg); }
  50%  { transform: rotateY(14deg) rotate(1deg); }
  75%  { transform: rotateY(-7deg) rotate(-0.5deg); }
}
@media (prefers-reduced-motion: reduce) { .fact-flip:not(.is-flipped):hover .fact-flip__inner { animation: none; } }

/* Book pages — handwritten underlines drawn as one absolutely-positioned overlay only covered the
   first line of a wrapped phrase. Real text-decoration follows every line. */
body[data-book] span[class*="-squiggled"] {
  display: inline; text-decoration-line: underline; text-decoration-style: wavy;
  text-decoration-color: currentColor; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-skip-ink: none;
}
body[data-book] span[class*="-doubled"] {
  display: inline; text-decoration-line: underline; text-decoration-style: double;
  text-decoration-color: currentColor; text-decoration-thickness: 1.5px; text-underline-offset: 4px; text-decoration-skip-ink: none;
}
body[data-book] span[class*="-squiggled"]::after, body[data-book] span[class*="-doubled"]::after { content: none !important; }

/* Book pages — "Lines worth sharing" rotator: fade between quotes */
.bqr-stage .bqr-quote, .bqr-stage .bqr-cite { transition: opacity 0.38s ease, transform 0.38s ease; }
.bqr-stage.is-fading .bqr-quote, .bqr-stage.is-fading .bqr-cite { opacity: 0; transform: translateY(6px); }

/* Flip cards: make sure the hidden face really is hidden (WebKit needs the prefixed property too) */
.fact-flip__face { -webkit-backface-visibility: hidden; backface-visibility: hidden; }

/* Book pages: chapter tracker + discussion questions hidden for launch (J 9/21) */
#chapters[hidden], #discuss[hidden] { display: none !important; }

#curriculum-strip[hidden] { display: none !important; }

/* Adam lost its page styles with its <head>; the other books restore these two eyebrow colours in their own <style>. */
body[data-book="adam"] .book-buy-cta .label, body[data-book="adam"] #next .label { color: var(--brand-gold) !important; }

/* Obfuscated email links (Eternia component): the bulk-pricing note keeps its gold; every instance behaves like a link */
.pkg-note-link { color: var(--brand-gold); }
.ews-em-ob { cursor: pointer; }

/* ---- J 9/24 ---- */
/* Nav "Shop": stay brand-red once scrolled (site.css swapped it to bronze; the flip had no purpose) */
nav.site-nav.scrolled .nav-cta { background: var(--brand-red, #c9493f) !important; color: var(--page, #e0deda) !important; }

/* David's story section: the cream parchment scheme met the dark hero in a hard band right under the label.
   Use the dark stage the other five books already use; the parchment-only decorations (olive swash, Hebrew
   watermark, plum pill) go with it. */
body[data-book="david"] .hero-story { background: linear-gradient(180deg, #050505 0%, #173a4a 100%) !important; }
body[data-book="david"] .hero-story::before, body[data-book="david"] .hero-story::after { display: none !important; }
body[data-book="david"] .hero-story .section-head .label { background: none !important; border: 0 !important; padding: 0 !important; color: var(--d-saffron-glow, #e8a93a) !important; }
body[data-book="david"] .hero-story .section-head h2, body[data-book="david"] .hero-story .story-p { color: #e0deda !important; }
body[data-book="david"] .hero-story .section-head h2 em, body[data-book="david"] .hero-story .story-p em { color: var(--brand-gold, #d4a83f) !important; }
body[data-book="david"] .hero-story .story-p--first::first-letter { color: var(--d-saffron-glow, #e8a93a) !important; }

/* Curriculum cards: "Coming Soon" badge, Sign up inline with the field, the promise underneath */
.curric-card { position: relative; }
.curric-card-badge { position: absolute; top: 14px; right: 14px; font-family: 'Belda', serif; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: #fff; background: var(--brand-red, #c9493f); padding: 5px 10px; border-radius: 999px; }
.curric-notify { flex-wrap: nowrap; }
.curric-notify .btn { padding-left: 18px; padding-right: 18px; }
.curric-notify-note { margin: 10px 0 0; font-family: 'Belda', serif; font-size: 13px; line-height: 1.45; color: rgba(53, 52, 52, 0.72); }
@media (max-width: 480px) { .curric-notify { flex-wrap: wrap; } .curric-card-badge { position: static; display: inline-block; margin-bottom: 10px; } }
/* David's hero scrim ended plum-navy at 92%, so the photo never dissolved into the dark story section the way the other
   five do (their scrim ends near-black at 95%). Same scrim as the rest of the series. */
/* (shared scrim for all six books lives further down — Tricia 9/25: the heroes were too dark) */

/* ---- Tricia 9/25 ---- */
/* Book heroes were too dark (Benaiah, Zechariah especially): lighter over the picture, still black at the seam */
body[data-book] .portal-hero .scrim { background: linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.08) 45%, rgba(0, 0, 0, 0.95) 100%) !important; }
/* One story-section format for all six books (David's typography on the shared dark stage): gold label, drop cap, gold italic titles with the hand-drawn underline */
body[data-book] .hero-story .section-head .label { color: var(--brand-gold, #d4a83f) !important; background: none !important; border: 0 !important; padding: 0 !important; }
body[data-book] .hero-story .section-head h2 { color: #e0deda !important; }
body[data-book] .hero-story .story-p { color: #e0deda !important; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.78; }
body[data-book] .hero-story .story-p--first::first-letter { font-family: 'Belda', serif; font-weight: 900; font-size: 4.2em; float: left; line-height: 0.85; padding: 0.05em 0.15em 0 0; margin-right: 6px; color: var(--brand-gold, #d4a83f); background: none; -webkit-text-fill-color: var(--brand-gold, #d4a83f); text-shadow: none; }
body[data-book] .hero-story .story-p em { font-weight: 600; font-style: italic; color: var(--brand-gold, #d4a83f) !important; position: relative; display: inline-block; }
body[data-book] .hero-story .story-p em::after { content: ""; position: absolute; left: -3%; right: -3%; bottom: -6px; height: 8px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 8' preserveAspectRatio='none'><path d='M2 5 Q 50 1, 100 4 T 198 3' fill='none' stroke='%23d4a83f' stroke-width='2.4' stroke-linecap='round' opacity='0.7'/></svg>"); background-repeat: no-repeat; background-size: 100% 100%; pointer-events: none; }
/* Home packages: buttons on one line, the Circle title on one line */
.pkg-card .pkg-cta { margin-top: auto; }
.pkg-card .pkg-name { white-space: nowrap; }
@media (max-width: 1180px) and (min-width: 901px) { .pkg-card .pkg-name { font-size: 24px; } }
/* Reviews: no decorative opening quote on the cards */
.review-card::before { display: none !important; }
/* Stranger page */
.stranger-creed .label { color: #0F5530 !important; background: rgba(31, 138, 76, 0.16) !important; }
.stranger-creed h2 { color: #1f2a25 !important; }
.creed-card h3 { color: #0F5530 !important; }
.creed-card p { color: #2b2a26 !important; }
.stranger-sightings .label { color: rgba(224, 222, 218, 0.92) !important; }
.stranger-book-head-quote { text-align: center !important; }
.stranger-reveal { background: linear-gradient(180deg, #0d3421 0%, #0a2718 100%) !important; }
.stranger-reveal-cite { display: inline-block; margin-top: 10px; font-size: 0.92em; opacity: 0.85; }
body[data-book="stranger"] .stranger-creed h2 em { color: #B8442E !important; -webkit-text-fill-color: #B8442E !important; text-shadow: none !important; background: none !important; }   /* outranks strangers.css's sand-coloured em */
/* "Where He Walks" label: an id outranks Joel's :not() chain, whatever colour token it resolves to */
#sightings .section-head .label { color: #f7c86a !important; }
.stranger-book-head-quote { margin-left: auto !important; margin-right: auto !important; }

/* ---- J 10/1 ---- */
/* Book titles: Adam's text title on all six, in gold (the gold title-art PNGs are retired); the hook is the same colour on all six */
.portal-hero .book-title { color: var(--brand-gold, #d4a83f); font-size: clamp(56px, 9vw, 120px); line-height: 1; margin: 0 0 18px; letter-spacing: 0.04em; text-transform: uppercase; }
body[data-book] .portal-hero .hook { color: #e0deda !important; }
/* Stranger "You will know who He is": the Stay Connected treatment from the home page instead of the green */
.stranger-reveal { background: radial-gradient(ellipse at center, rgba(194, 158, 70, 0.22) 0%, transparent 70%) #e0deda !important; }
.stranger-reveal .label { color: #946f1a !important; }
.stranger-reveal h2 { color: #254c5f !important; text-shadow: none !important; }
.stranger-reveal p, .stranger-reveal .stranger-reveal-cite { color: rgba(53, 52, 52, 0.82) !important; text-shadow: none !important; }
