/* God's Message Daily — gold on warm ivory, with deep navy ink. */
:root {
  --bg: #fdf9ee;
  --bg-soft: #f9efd3;
  --surface: #ffffff;
  --ink: #1b2140;
  --muted: #646a82;
  --line: #eadfbf;
  --primary: #d4a425;
  --primary-ink: #1b2140;
  --primary-soft: #f9ecc2;
  --accent: #9a6400;
  --accent-soft: #fbf1d3;
  --band: #1b2140;
  --band-ink: #fdf6e0;
  --ok: #1f7a55;
  --err: #b3402f;
  --shadow: 0 1px 2px rgba(20, 33, 61, .05), 0 8px 24px rgba(20, 33, 61, .06);
  --radius: 18px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111429; --bg-soft: #171b36; --surface: #1c2142; --ink: #f4eeda; --muted: #a9abc2;
    --line: #2d3359; --primary: #e6b84a; --primary-ink: #111429; --primary-soft: #353016;
    --accent: #f0c96a; --accent-soft: #2e2a17; --band: #232a55; --band-ink: #f4eeda; --ok: #6fd3a6; --err: #f19483;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}
:root[data-theme="dark"] {
  --bg: #111429; --bg-soft: #171b36; --surface: #1c2142; --ink: #f4eeda; --muted: #a9abc2;
    --line: #2d3359; --primary: #e6b84a; --primary-ink: #111429; --primary-soft: #353016;
    --accent: #f0c96a; --accent-soft: #2e2a17; --band: #232a55; --band-ink: #f4eeda; --ok: #6fd3a6; --err: #f19483;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.center { text-align: center; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 18px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.05rem; white-space: nowrap; }
.brand svg { width: 28px; height: 28px; flex: none; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { padding: 8px 13px; border-radius: 999px; font-size: .93rem; font-weight: 500; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.nav a.active { background: var(--primary-soft); color: var(--accent); }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); display: grid; place-items: center; cursor: pointer; flex: none;
}
.icon-btn svg { width: 18px; height: 18px; }
.menu-btn { display: none; }
@media (max-width: 860px) {
  .menu-btn { display: grid; margin-left: auto; }
  .nav {
    display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 14px 14px; margin: 0;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 10px; border-radius: 10px; font-size: 1rem; }
}

/* Buttons, chips, forms */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  background: var(--primary); color: var(--primary-ink); font: 600 .95rem var(--sans);
  transition: transform .15s, filter .15s;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: default; transform: none; }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn.small { padding: 8px 16px; font-size: .86rem; }
.eyebrow {
  display: inline-block; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--muted); font: 500 .86rem var(--sans); cursor: pointer;
}
.chip.active { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.tag {
  display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--primary-soft);
  color: var(--accent); font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
label { display: block; font-size: .86rem; font-weight: 600; margin-bottom: 6px; }
input, textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font: 400 1rem var(--sans);
}
input:focus, textarea:focus, .chip:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--primary); outline-offset: 2px;
}
textarea { min-height: 130px; resize: vertical; }
.field { margin-bottom: 16px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.status { margin-top: 12px; font-size: .92rem; min-height: 1.4em; }
.status.ok { color: var(--ok); }
.status.err { color: var(--err); }
.hint { font-size: .82rem; color: var(--muted); }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); }

/* Sections & cards */
section { padding: 56px 0; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
a.card { display: block; transition: transform .18s, border-color .18s; }
a.card:hover { transform: translateY(-2px); border-color: var(--primary); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 860px) { .grid2 { grid-template-columns: 1fr; } .grid4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .grid4 { grid-template-columns: 1fr; } }
.link-arrow { color: var(--accent); font-weight: 600; font-size: .93rem; }

/* Hero */
.hero {
  text-align: center; padding: 72px 0 64px;
  background: radial-gradient(60% 55% at 50% 0%, color-mix(in srgb, var(--primary) 26%, transparent), transparent 70%);
}
.hero .sun { width: 132px; height: 84px; margin: 6px auto 22px; display: block; }
.hero h1 { max-width: 14ch; margin: 0 auto 18px; }
.hero .lede { font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--muted); max-width: 34ch; margin: 0 auto 30px; line-height: 1.4; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.page-head { padding: 44px 0 8px; }
.page-head.center .lede { margin-left: auto; margin-right: auto; }
.page-head .lede { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--muted); max-width: 46ch; margin-top: 14px; line-height: 1.4; }
.crumbs { font-size: .84rem; color: var(--muted); margin-bottom: 26px; }
.crumbs a:hover { color: var(--ink); }
.crumbs span { margin: 0 6px; }

/* Scripture */
.scripture { font-family: var(--serif); font-size: clamp(1.45rem, 3.4vw, 1.95rem); line-height: 1.35; font-weight: 500; margin: 0 0 14px; }
.scripture::before { content: "\201C"; }
.scripture::after { content: "\201D"; }
.ref { font-weight: 600; color: var(--accent); font-size: .92rem; letter-spacing: .04em; }
.verse-feature { border-left: 4px solid var(--accent); }

/* Lists */
.vlist { display: grid; gap: 10px; }
.vrow {
  display: flex; align-items: center; gap: 14px; padding: 16px 20px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px;
}
.vrow:hover { border-color: var(--primary); }
.vrow b { font-weight: 600; white-space: nowrap; }
.vrow .t { color: var(--muted); flex: 1; min-width: 0; }
@media (max-width: 600px) { .vrow { flex-wrap: wrap; gap: 4px 12px; } .vrow .t { flex-basis: 100%; order: 3; } }
.mcard h3 { margin: 8px 0 10px; }
.mcard .meta, .meta { font-size: .84rem; color: var(--muted); }
.mcard .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.stack { display: grid; gap: 18px; }

/* Article */
.article h1 { font-size: clamp(2rem, 5vw, 2.9rem); margin-bottom: 14px; }
.article h2 { font-size: 1.7rem; margin: 38px 0 14px; }
.article p { font-size: 1.06rem; }
.article .card { margin: 28px 0; }
.takeaway { background: var(--accent-soft); border-radius: 14px; padding: 18px 22px; margin-top: 26px; }
.share { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 34px 0; padding-top: 24px; border-top: 1px solid var(--line); }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pn a { padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.pn a:hover { border-color: var(--primary); }
.pn small { display: block; font-size: .7rem; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
.pn .next { text-align: right; }
.prose h2 { font-size: 1.5rem; margin: 34px 0 10px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--accent); text-decoration: underline; }

/* Prayer wall */
.prayer p.msg { font-family: var(--serif); font-size: 1.3rem; line-height: 1.4; margin-bottom: 12px; }
.prayer .foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pray-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 600 .86rem var(--sans); cursor: pointer;
}
.pray-btn.done { background: var(--accent-soft); border-color: transparent; color: var(--accent); cursor: default; }
.empty { text-align: center; color: var(--muted); padding: 34px 20px; border: 1px dashed var(--line); border-radius: var(--radius); }

/* Give */
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .reasons { grid-template-columns: 1fr; } }
.reasons .card { padding: 22px; }
.reasons b { display: block; margin-bottom: 4px; }
.reasons p { margin: 0; color: var(--muted); font-size: .93rem; }
.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.amount {
  padding: 16px 0; border-radius: 14px; border: 1px solid var(--line); background: var(--bg);
  color: var(--ink); font: 600 1.15rem var(--sans); cursor: pointer;
}
.amount.active { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.money { position: relative; }
.money span { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.money input { padding-left: 30px; }
.give-total { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; margin: 22px 0 14px; text-align: center; }
#paypal-buttons { min-height: 50px; }
.supporter b { display: block; }
.supporter .amt { color: var(--accent); font-weight: 600; font-size: 1.1rem; }
.supporter q { display: block; color: var(--muted); font-size: .92rem; margin-top: 8px; }
.cta-band { background: var(--band); color: var(--band-ink); border-radius: 26px; padding: 48px 28px; text-align: center; }
.cta-band .eyebrow { color: inherit; opacity: .8; }
.cta-band p { max-width: 52ch; margin: 14px auto 24px; opacity: .9; }
.cta-band .btn { background: var(--primary); color: var(--primary-ink); }

/* Footer */
.newsletter { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 48px 0; text-align: center; }
.newsletter form { display: flex; gap: 10px; max-width: 460px; margin: 20px auto 0; }
@media (max-width: 480px) { .newsletter form { flex-direction: column; } }
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 30px; font-size: .92rem; }
.fgrid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .fgrid { grid-template-columns: 1fr 1fr; } .fgrid > div:first-child { grid-column: 1 / -1; } }
.fgrid h4 { font: 600 .72rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.fgrid a { display: block; padding: 4px 0; color: var(--muted); }
.fgrid a:hover { color: var(--ink); }
.social { display: flex; gap: 10px; margin-top: 14px; }
.social a { padding: 0; }
.copy { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; text-align: center; }

/* Message images */
.mcard { overflow: hidden; }
.mcard img { display: block; width: calc(100% + 56px); max-width: none; margin: -28px -28px 20px; aspect-ratio: 16 / 9; object-fit: cover; }
.article img.cover { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); margin-top: 24px; }

/* Entrance animation (classes are added by app.js) */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* Slow light rays falling from the top of every page */
body::before, body::after {
  content: ""; position: fixed; left: -30%; right: -30%; top: -12vh; height: 125vh; z-index: -1; pointer-events: none;
  transform-origin: 50% 0;
  -webkit-mask-image: radial-gradient(ellipse 58% 78% at 50% 0%, #000 0%, transparent 72%);
          mask-image: radial-gradient(ellipse 58% 78% at 50% 0%, #000 0%, transparent 72%);
}
body::before {
  background: repeating-conic-gradient(from 90deg at 50% 0%, transparent 0deg 8deg,
    color-mix(in srgb, var(--primary) 20%, transparent) 10.5deg 12deg, transparent 14.5deg 22deg);
  animation: rays 24s ease-in-out infinite alternate;
}
body::after {
  background: repeating-conic-gradient(from 97deg at 50% 0%, transparent 0deg 13deg,
    color-mix(in srgb, var(--primary) 13%, transparent) 16deg 19deg, transparent 22deg 31deg);
  animation: rays 37s ease-in-out infinite alternate-reverse;
}
@keyframes rays {
  from { transform: rotate(-7deg); opacity: .45; }
  to   { transform: rotate(7deg);  opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { body::before, body::after { animation: none; } }

/* Home: prayers drifting sideways, one per card */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee-track { display: flex; gap: 20px; width: max-content; padding: 8px 0 10px; animation: marquee var(--dur, 90s) linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 10px)); } }
.pcard {
  position: relative; flex: none; width: 300px; padding: 24px 22px 18px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.pcard p {
  font-family: var(--serif); font-size: 1.15rem; line-height: 1.4; margin: 0 0 12px;
}
.pcard small { color: var(--muted); font-size: .84rem; }
@media (prefers-reduced-motion: reduce) { .marquee { overflow-x: auto; } .marquee-track { animation: none; } }
