/**
 * Grounded — global editorial typography
 * Primary serif: regular. Selective italic via em / .editorial-em only.
 */

:root {
  --editorial-serif: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --editorial-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --editorial-size-kicker: 10.5px;
  --editorial-size-body: clamp(15px, 3.8vw, 17px);
  --editorial-size-lead: clamp(16px, 4vw, 18px);
  --editorial-size-anchor: clamp(17px, 4.2vw, 20px);
  --editorial-size-closing: clamp(14px, 3.6vw, 16px);
  --editorial-lh-body: 1.72;
  --editorial-lh-anchor: 1.58;
}

/* ─── Base: serif blocks stay upright unless marked ─── */
.editorial-prose,
.editorial-prose.display-font,
.editorial-serif,
.word-vod-card .wv-text.display-font,
.study-verse-card .sv-text.display-font,
.home-response--minimal .hr-scripture.display-font,
#reflectContent .sv-text.display-font,
.scripture-pairing .scripture-text.display-font,
.pgp-verse.display-font,
.verse-card .wv-text.display-font,
.verse-card .sv-text.display-font,
#homeTodayVerseCard .wv-snippet.display-font,
.home-weekly-scripture-text,
.home-theme-intro-anchor-text,
.gm-ritual-verse-text,
.gm-ritual-arrival,
.gm-ritual-cue,
.gm-ritual-arrival,
.gm-ritual-carry-line,
.guided-moment-screen .gm-anchor-text,
.guided-moment-screen .moment-body,
.guided-moment-screen .moment-dive-text,
.prayer-result-card .prayer-body,
.prayer-text,
.prayer-close,
.prayer-verse-context .pvc-text.display-font,
.grounded-guidance-flow__response-text--prayer.display-font,
.grounded-guidance-flow__response-text--prayer .grounded-guidance-flow__thought,
.grounded-guidance-flow__response-text--hero.display-font,
.grounded-guidance-flow__response-text--hero .grounded-guidance-flow__thought,
.grounded-guidance-flow__perspective-body.display-font,
.grounded-guidance-flow__response-question.display-font,
.grounded-guidance-flow__response-text--prose.display-font,
.grounded-guidance-flow__submitted-text.display-font,
.gg-prayer-guidance-card__body,
.walk-with-god .walk-truths-line,
.wj-deeper__scripture,
.wj-begin-state__close,
.daily-arrival-verse-text,
.daily-arrival-reflect-prompt {
  font-style: normal;
}

/* ─── Selective emphasis ─── */
.editorial-prose em,
.editorial-em,
em.editorial-em,
.share-verse-em,
.editorial-anchor,
.grounded-guidance-flow__perspective-anchor.display-font,
.grounded-guidance-flow__perspective-anchor .editorial-em {
  font-style: italic;
  font-weight: inherit;
  letter-spacing: -0.012em;
}

/* ─── Semantic roles ─── */
.editorial-kicker,
.editorial-prose .editorial-kicker {
  font-family: var(--editorial-sans);
  font-size: var(--editorial-size-kicker);
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong, #a86b62);
  margin: 0 0 0.75em;
  opacity: 0.9;
}

.editorial-body,
.editorial-prose p.editorial-body,
.editorial-prose .editorial-body {
  font-family: var(--editorial-serif);
  font-size: var(--editorial-size-body);
  font-style: normal;
  font-weight: 400;
  line-height: var(--editorial-lh-body);
  color: var(--text);
  margin: 0 0 1em;
  letter-spacing: -0.01em;
}

.editorial-lead {
  font-family: var(--editorial-serif);
  font-size: var(--editorial-size-lead);
  font-style: normal;
  line-height: 1.65;
  color: var(--text);
  margin: 0 0 1.1em;
}

.editorial-anchor,
.grounded-guidance-flow__perspective-anchor {
  font-family: var(--editorial-serif);
  font-size: var(--editorial-size-anchor);
  font-style: italic;
  line-height: var(--editorial-lh-anchor);
  color: var(--text);
  margin: 0.35em 0;
  letter-spacing: -0.015em;
}

.editorial-closing,
.editorial-prose .editorial-closing {
  font-family: var(--editorial-serif);
  font-size: var(--editorial-size-closing);
  font-style: italic;
  line-height: 1.6;
  color: var(--text-light, rgba(90, 74, 66, 0.82));
  display: inline;
}

/* ─── Rhythm: body vs anchor in guidance perspective ─── */
.grounded-guidance-flow__perspective-prose .grounded-guidance-flow__perspective-body {
  margin-bottom: 0.5em;
}

.grounded-guidance-flow__perspective-prose .grounded-guidance-flow__perspective-anchor {
  margin-top: 0.65em;
  margin-bottom: 0.15em;
}

.grounded-guidance-flow__thought + .grounded-guidance-flow__thought {
  margin-top: 1.05em;
}

/* ─── Today: weekly theme & verse ─── */
.home-weekly-scripture-text {
  font-size: clamp(15px, 3.9vw, 17px);
  line-height: 1.58;
  margin: 0 auto 10px;
}

.home-weekly-meaning-text,
.hr-affirmation.body-font,
.hr-meaning.body-font {
  font-style: normal;
}

/* ─── Ritual ─── */
.gm-ritual-verse-text {
  font-family: 'Cormorant Garamond', var(--editorial-serif);
  font-size: clamp(1.32rem, 4.8vw, 1.68rem);
  line-height: 1.56;
  font-style: normal;
}

.gm-ritual-verse-text em,
.gm-ritual-arrival em,
.gm-ritual-cue em {
  font-style: italic;
}

.gm-ritual-carry-line {
  font-style: normal;
}

.gm-ritual-carry-line .editorial-closing,
.gm-ritual-carry-line em {
  font-style: italic;
}

/* ─── Reflect ─── */
.reflect-lead {
  font-style: normal;
  font-size: var(--editorial-size-lead);
  line-height: 1.68;
}

.reflect-lead em {
  font-style: italic;
}

.reflect-lead-line {
  display: block;
}

.reflect-lead-line + .reflect-lead-line {
  margin-top: 0.65em;
}

.reflect-lead-line .editorial-closing {
  font-style: italic;
  color: var(--text-light, rgba(90, 74, 66, 0.82));
}

/* ─── Prayer hub (non-flow) ─── */
.prayer-result-card .prayer-body,
.prayer-text {
  font-size: var(--editorial-size-body);
  line-height: var(--editorial-lh-body);
  font-style: normal;
}

.prayer-result-card .prayer-body em,
.prayer-text em {
  font-style: italic;
}

/* ─── Journey / weekly sheets — intros stay Inter; scripture serif normal ─── */
.wj-hero__hook {
  font-style: normal;
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  line-height: 1.45;
}

.wj-deeper__scripture {
  font-style: normal;
}

.wj-deeper__scripture em {
  font-style: italic;
}

.wj-begin-state__transition {
  font-style: normal;
}

.wj-begin-state__close {
  font-style: normal;
}

.wj-begin-state__close em,
.wj-begin-state__close .editorial-closing {
  font-style: italic;
}

/* ─── Affirmation & line to carry ─── */
.walk-with-god .walk-truths-line {
  font-style: normal;
}

.walk-with-god .walk-truths-line em,
.walk-with-god .walk-truths-line .editorial-em {
  font-style: italic;
}

/* ─── Subtitles: keep light italic for page chrome only ─── */
.page-subtitle,
.section-subtitle {
  font-style: italic;
  opacity: 0.72;
}

/* ─── Daily arrival ─── */
.daily-arrival-verse-card .daily-arrival-verse-text,
.daily-arrival-guided-verse-soft,
.daily-arrival-reflection-editorial .daily-arrival-guided-micro {
  font-style: normal;
}

.daily-arrival-verse-card .daily-arrival-verse-text em,
.daily-arrival-guided-verse-soft em,
.daily-arrival-reflection-editorial .daily-arrival-guided-micro em {
  font-style: italic;
}

/* ─── Scripture+ / fullscreen verse (editorial layouts keep em) ─── */
.verse-fs-text {
  font-style: normal;
}

.verse-fs-text em,
.verse-fs-text .share-verse-em {
  font-style: italic;
}

/* ─── Line to carry / takeaways ─── */
.prayer-takeaway .pt-text,
.moment-takeaway-text,
.pt-text.body-font {
  font-style: normal;
}

.prayer-takeaway .pt-text em,
.prayer-takeaway .pt-text .editorial-closing,
.moment-takeaway-text em,
.moment-takeaway-text .editorial-closing {
  font-style: italic;
}

/* ─── Journey / history reflective copy ─── */
.reflect-journey-prayer,
.reflect-journey-detail-sub,
.rwa-closing {
  font-style: normal;
}

.reflect-journey-prayer em,
.reflect-journey-prayer .editorial-closing,
.rwa-closing em,
.rwa-closing .editorial-closing {
  font-style: italic;
}

/* ─── Scripture+ passages ─── */
#screen-scriptureplus .spx-pass-verse,
#screen-scriptureplus .spx-week-verse,
.prayer-verse-context .pvc-text.display-font {
  font-style: normal;
}

#screen-scriptureplus .spx-pass-verse em,
#screen-scriptureplus .spx-week-verse em,
.prayer-verse-context .pvc-text.display-font em {
  font-style: italic;
}

/* ─── Premium / moment cards ─── */
.home-theme-intro-anchor-text,
.guided-moment-screen .gm-anchor-text {
  font-style: normal;
}

.home-theme-intro-anchor-text em,
.guided-moment-screen .gm-anchor-text em {
  font-style: italic;
}

/* ─── Override legacy full-block italics (loads after embedded CSS) ─── */
.hr-scripture.display-font,
.home-response--minimal .hr-journal-prompt.body-font,
.wj-hero__hook,
.wj-deeper__scripture,
.wj-begin-state__transition,
.wj-begin-state__close,
.home-theme-intro-anchor-text,
.home-theme-intro-sub,
.twc-encourage,
.prayer-verse-context .pvc-text.display-font,
.word-saved-open .ws-txt,
#screen-scriptureplus .spx-week-verse,
#screen-scriptureplus .spx-pass-verse,
.reflect-journey-detail-sub,
.reflect-theme-context,
.rwa-closing,
.detail-body .verse,
.journal-active-prompt .jap-text,
.guided-moment-screen .gm-theme-intro-para,
.guided-moment-screen .gm-anchor-text,
.prayer-week-theme-sub {
  font-style: normal !important;
}

.hr-scripture.display-font em,
.hr-scripture.display-font .editorial-closing,
.wj-hero__hook em,
.wj-deeper__scripture em,
.wj-begin-state__close em,
.home-theme-intro-anchor-text em,
.prayer-verse-context .pvc-text.display-font em,
#screen-scriptureplus .spx-pass-verse em,
#screen-scriptureplus .spx-week-verse em,
.reflect-journey-detail-sub em,
.rwa-closing em,
.detail-body .verse em,
.guided-moment-screen .gm-anchor-text em,
.editorial-prose .editorial-closing,
.editorial-prose em {
  font-style: italic !important;
}

.grounded-guidance-flow__perspective-anchor,
.grounded-guidance-flow__perspective-anchor.display-font {
  font-style: italic !important;
}

.grounded-guidance-flow__perspective-body,
.grounded-guidance-flow__perspective-body.display-font,
.grounded-guidance-flow__response-text--prayer.display-font,
.grounded-guidance-flow__response-text--prayer .grounded-guidance-flow__thought,
.grounded-guidance-flow__response-question.display-font,
.grounded-guidance-flow__scripture-card .grounded-guidance-flow__response-text.display-font {
  font-style: normal !important;
}

/* ─── Editorial rhythm in prose blocks ─── */
.editorial-prose {
  letter-spacing: -0.012em;
}

.editorial-prose .editorial-closing {
  font-size: 0.97em;
  opacity: 0.92;
}
