/* ==========================================================
   Jesus Forever Yours — site-wide brand layer
   Loaded LAST on every page so the whole site matches:
   - one background: white
   - headings in the logo font (Playfair Display)
   - body text in Inter
   - black and white accents, no beige or brown
   - content always visible (no scroll fade-ins)
   ========================================================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700;1,800&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #ffffff;
  --ink: #111111;
  --ink-soft: #444444;
  --ink-muted: #777777;
  --line: #ececec;

  /* Remap the old cream/brown palette onto white and black */
  --cream: #ffffff;
  --cream-light: #ffffff;
  --cream-mid: #f5f5f5;
  --cream-dark: #e6e6e6;
  --accent: #111111;
  --accent-dark: #000000;
  --accent-light: rgba(0, 0, 0, 0.05);
  --white: #ffffff;
  --border: #e6e6e6;
  --border-light: #ececec;
  --card: #ffffff;
  --mute: #666666;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, system-ui, sans-serif;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, system-ui, sans-serif;

  --shadow-sm: none;
  --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.06);
}

/* ---------- One background ---------- */
html, body { background: var(--bg) !important; }
body {
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
body section, body main, body article, body aside, body header, body footer,
body [class*="hero"], body [class*="section"], body [class*="band"], body [class*="wrap"] {
  background-color: var(--bg);
  background-image: none;
}
body footer, body .jf, body .jf-dark {
  background: var(--bg) !important;
  color: var(--ink-muted) !important;
  border-top: 1px solid var(--line) !important;
}
footer a, footer p, footer span, footer li, footer h3, footer h4, footer div,
.jf a, .jf span { color: var(--ink-muted) !important; }
footer a:hover, .jf a:hover { color: var(--ink) !important; }
footer img[src*="logo-text-white"], footer img[src*="white"] { filter: invert(1); }

/* ---------- Type ---------- */
h1, h2, h3,
.section-title, [class*="hero-title"], [class*="-title"] {
  font-family: var(--font-serif) !important;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.015em;
}
h1 *, h2 *, h3 * {
  font-family: inherit !important;
  font-weight: inherit !important;
  color: inherit !important;
  -webkit-text-fill-color: currentColor;
  background: none !important;
}

/* Decorative glows and tinted blobs behind sections */
section::before, section::after,
[class*="hero"]::before, [class*="hero"]::after,
[class*="stage"]::before, [class*="stage"]::after { background-image: none !important; }
p, li, label, input, textarea, select, button, a, small, td, th {
  font-family: var(--font-sans);
}
p { color: var(--ink-soft); }

/* ---------- Header: the text logo, white, consistent ---------- */
.jn, .nav, .nav.scrolled, .hd {
  background: #fff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 1px solid var(--line) !important;
}
.jn-logo img, .nav-logo img { height: 24px !important; width: auto !important; }
.jn a, .nav-links a { font-family: var(--font-sans) !important; color: var(--ink) !important; }
.nav-links a:hover { background: transparent !important; }
.nav-links a.nav-cta, .nav-cta-mobile { color: #fff !important; background: var(--ink) !important; }

/* ---------- Buttons: black, simple ---------- */
.btn, .btn-rose, .btn-primary, .nav-cta, .nav-cta-mobile, .h-btn,
button[type="submit"], .buy-btn, [class*="btn-buy"], [class*="cta-btn"] {
  background: var(--ink) !important;
  color: #fff !important;
  border-color: var(--ink) !important;
  box-shadow: none !important;
}
.btn:hover, .btn-rose:hover, .btn-primary:hover, .nav-cta:hover, .h-btn:hover,
button[type="submit"]:hover { background: #000 !important; }
.btn-outline, .btn-outline-rose, .btn-secondary, [class*="btn-ghost"] {
  background: #fff !important;
  color: var(--ink) !important;
  border: 1px solid var(--ink) !important;
}

/* ---------- Cards: white with a hairline, no heavy shadows ---------- */
[class*="card"], .h-qa, .h-book, .popup, .verse, [class*="panel"] {
  background-color: #fff;
  box-shadow: none !important;
}
.h-card, .h-qa, .h-book { border: 1px solid var(--line); }

/* Accent text that used the old brown */
.eyebrow, [class*="eyebrow"], [class*="kicker"] { color: var(--ink-muted) !important; }

/* Book photos have a light backdrop baked in: blend it into the white page */
.hero-book, .h-book img, img[src*="book-cover"] { mix-blend-mode: multiply; filter: none !important; }

/* Form fields that were styled for the old dark footer */
footer input:not([type="hidden"]), footer textarea {
  background: #fff !important;
  color: var(--ink) !important;
  border: 1px solid #d9d9d9 !important;
}
footer input::placeholder { color: var(--ink-muted) !important; }
footer button { background: var(--ink) !important; color: #fff !important; }
footer h2, footer h3, footer [class*="title"] { color: var(--ink) !important; }

/* ---------- Homepage specifics ---------- */
.hd-logo img { width: auto !important; height: 24px !important; border-radius: 0 !important; box-shadow: none !important; }
.hd nav a { color: var(--ink-muted) !important; }
.hd nav a:hover, .hd nav a[aria-current] { color: var(--ink) !important; }
.h-hero h1 { font-weight: 500; }
.h-sec > h2, .h-end h2 { font-weight: 500; }
.h-ic { background: var(--ink) !important; }
.h-end { background: #fff !important; color: var(--ink) !important; border-top: 1px solid var(--line); }
.h-end h2 { color: var(--ink) !important; }
.h-end .store-badge, .h-end .store-badge:hover { background: #000 !important; color: #fff !important; }
.h-letter form { background: #fff !important; box-shadow: 0 0 0 1px var(--line) !important; }
.h-letter input[type=email] { color: var(--ink) !important; }
.h-letter input::placeholder { color: var(--ink-muted) !important; }
.h-letter button { background: var(--ink) !important; color: #fff !important; }
.email-success { color: var(--ink-soft) !important; }
.iph::before { display: none; }
@media (max-width: 760px) {
  .h-letter input[type=email] { background: #fff !important; border: 1px solid var(--line) !important; }
}

/* ---------- Never hide content behind scroll animations ---------- */
.reveal, .reveal-up, .fade-in, [class*="reveal-delay"] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
[style*="heroFadeIn"], [class*="hero"] > *, .hero * { animation: none !important; opacity: 1; }

/* Download page note band */
.note, .note-inner { background: #fff !important; }
.note { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Book page: no gray glow behind the cover */
.device-glow { display: none !important; }

/* Mobile header: more room between the logo and the menu */
@media (max-width: 760px) {
  .hd-in, .jn-in { gap: 16px !important; padding: 18px 16px 14px !important; height: auto !important; }
  .hd-logo img, .jn-logo img { height: 26px !important; }
  .hd nav, .jn ul { gap: 22px !important; }
  .hd nav a, .jn a { font-size: 14px !important; }
}

/* No lonely last words: balance headings and short centered text, avoid orphans in paragraphs */
h1, h2, h3, .section-title { text-wrap: balance; }
p, li, blockquote { text-wrap: pretty; }
.h-lead, .h-book p, .h-card p, .h-qa-row p, .h-end h2, .section-subtitle,
[style*="text-align:center"] p, [style*="text-align: center"] p, .cta p, .note-txt blockquote { text-wrap: balance; }

/* Quality pass (ui-ux-pro-max): contrast, focus, touch targets, interaction feedback */
:root { --ink-muted: #5f5f5f; --mute: #5a5a5a; --ink-soft: #3f3f3f; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #111 !important; outline-offset: 3px; border-radius: 6px;
}
a, button, [role="button"], .store-badge { cursor: pointer; }
a, button, .store-badge, .h-btn { transition: background-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease, opacity .2s ease; }
.hd nav a, .jn ul a { display: inline-flex; align-items: center; min-height: 44px; }
.store-badge { min-height: 48px; }
@media (max-width: 760px) {
  .hd-in, .jn-in { padding-top: 14px !important; padding-bottom: 4px !important; gap: 6px !important; }
}

/* ===== Verse Library in the app's Deep Study tones =====
   Background #E3E8EC, Key word #E6E9E1, Apply it #F1E6E2, Pray #EFEADF, Cross refs #F5F5F6, ink #272322 */
body.vl { --ds-ink: #272322; --ds-muted: #6b6870; --ds-blue: #E3E8EC; --ds-sage: #E6E9E1; --ds-blush: #F1E6E2; --ds-sand: #EFEADF; --ds-gray: #F5F5F6; }
body.vl .vl-hero { padding-top: 56px; }
body.vl .vl-h1, body.vl .vl-sec-h { color: var(--ds-ink); font-weight: 500; }
body.vl .vl-h1 em, body.vl .vl-sec-h em { color: var(--ds-ink); font-style: italic; font-weight: 500; }
body.vl .vl-lead { color: #46424a; }
body.vl .vl-eyebrow, body.vl .vl-q b, body.vl .vl-ref {
  font-family: var(--font-sans) !important; font-size: 11px !important; font-weight: 600 !important;
  letter-spacing: .16em !important; text-transform: uppercase; color: var(--ds-muted) !important;
}
body.vl .vl-chip { background: #fff; border-color: #e7e5e8; color: var(--ds-ink); }
body.vl a.vl-chip:hover { border-color: var(--ds-ink); color: var(--ds-ink); }

/* verse card: the passage on white, then tinted study blocks */
body.vl .vl-card { background: #fff; border: 1px solid #eeedf0; border-radius: 24px; box-shadow: 0 8px 28px rgba(41,34,29,.06) !important; padding: 36px 32px 32px; }
body.vl .vl-verse { color: var(--ds-ink); font-size: clamp(23px, 3vw, 28px); line-height: 1.45; }
body.vl .vl-ref { margin-top: 18px; }
body.vl .vl-rule { display: none; }
body.vl .vl-refl, body.vl .vl-q { border-radius: 18px; padding: 22px 22px 22px; color: var(--ds-ink); font-size: 16.5px; line-height: 1.75; }
body.vl .vl-refl { background: var(--ds-blue); margin-top: 26px; }
body.vl .vl-refl::before { content: "Background"; display: block; margin-bottom: 10px; font: 600 11px/1.3 var(--font-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ds-muted); }
body.vl .vl-q { background: var(--ds-blush) !important; margin-top: 14px; }
body.vl .vl-q b { margin-bottom: 10px; }

/* going deeper, ways to keep, prayer, newsletter */
body.vl .vl-prose { background: var(--ds-sage); border-radius: 22px; padding: 30px 28px 10px; }
body.vl .vl-prose p { color: var(--ds-ink); font-size: 16.5px; line-height: 1.8; }
body.vl .vl-keep { background: rgba(255,255,255,.62); border: 0; border-radius: 16px; padding: 20px; margin: 6px 0 20px; }
body.vl .vl-keep p { color: var(--ds-ink); }
body.vl .vl-prayer { background: var(--ds-sand) !important; color: var(--ds-ink) !important; border-radius: 24px; padding: 40px 34px 44px; }
body.vl .vl-prayer p { color: var(--ds-ink) !important; font-style: italic; }
body.vl .vl-news { background: var(--ds-gray) !important; }
body.vl .vl-news h2 em { color: var(--ds-ink) !important; font-style: italic !important; }
body.vl .vl-btn { background: var(--ds-ink) !important; }
body.vl .vl-app { border-color: #eeedf0; box-shadow: none !important; }
body.vl .vl-tile:hover { border-color: var(--ds-ink); }
body.vl .vl-tile span { color: var(--ds-muted); }
@media (max-width: 768px) {
  body.vl .vl-hero { padding-top: 36px; }
  body.vl .vl-card { padding: 28px 20px 22px; }
  body.vl .vl-refl, body.vl .vl-q { padding: 18px; font-size: 16px; }
  body.vl .vl-prose { padding: 24px 20px 6px; }
  body.vl .vl-prayer { padding: 32px 24px 34px; }
}
