:root {
  --bg: #f6f2e9;
  --paper: #fffdf8;
  --ink: #141b27;
  --ink-2: #4b5466;
  --line: #e4dccb;
  --navy: #0f1b2d;
  --navy-2: #1a2b45;
  --navy-3: #243856;
  --brass: #a67a2b;
  --brass-hi: #d4a64e;
  --on-navy: #f3ecdc;
  --red: #b3261e;
  --red-hi: #e0453a;
  --serif-d: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --serif: 'Source Serif 4', Georgia, serif;
  --sans: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b121c; --paper: #111b29; --ink: #ece6d8; --ink-2: #a9b1bf; --line: #23314a;
    --navy: #070d16; --navy-2: #13213a; --navy-3: #1d2f4d; --brass: #d4a64e; --brass-hi: #e8c27a; --red: #ff7b70; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b121c; --paper: #111b29; --ink: #ece6d8; --ink-2: #a9b1bf; --line: #23314a;
  --navy: #070d16; --navy-2: #13213a; --navy-3: #1d2f4d; --brass: #d4a64e; --brass-hi: #e8c27a; --red: #ff7b70; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 18px/1.6 var(--serif); overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--paper); padding: 8px; z-index: 99; }
.eyebrow { font: 800 12px var(--sans); letter-spacing: .16em; color: var(--brass); margin: 0 0 6px; }

/* ---------- masthead ---------- */
.masthead { background: radial-gradient(ellipse at 50% -20%, #22385a, var(--navy) 70%); color: var(--on-navy); text-align: center; padding: 0 16px 14px; }
.topbar { display: flex; justify-content: space-between; gap: 12px; max-width: 1240px; margin: 0 auto; padding: 9px 0; font: 700 11px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #a9a291; border-bottom: 1px solid rgba(255,255,255,.08); }
.toplinks { display: flex; gap: 16px; }
.topbar a { color: var(--brass-hi); text-decoration: none; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--on-navy); }
.masthead .brand { margin-top: 18px; }
.logo { width: 48px; height: 48px; fill: var(--brass-hi); flex: none; }
.logo .win { fill: var(--navy); }
.logo .ray { stroke: var(--brass-hi); stroke-width: 2.6; stroke-linecap: round; fill: none; }
.name { font: 900 clamp(36px, 9.5vw, 68px)/1 var(--serif-d); letter-spacing: -.01em; }
.name b { color: var(--brass-hi); font-weight: 900; }
.tagline { margin: 8px 0 0; font: italic 16px/1.3 var(--serif); color: #d8d0bd; }
.tagline span { color: var(--brass-hi); font: 700 11px var(--sans); letter-spacing: .1em; margin-left: 6px; font-style: normal; }

/* sticky section bar */
.sections { position: sticky; top: 0; z-index: 20; display: flex; gap: 2px; justify-content: center; overflow-x: auto; scrollbar-width: none; background: var(--navy); border-top: 1px solid rgba(255,255,255,.07); border-bottom: 3px solid var(--brass-hi); padding: 0 12px; }
.sections::-webkit-scrollbar { display: none; }
.sections a { flex: none; font: 700 14px/1 var(--sans); text-decoration: none; color: var(--on-navy); padding: 15px 13px; white-space: nowrap; }
.sections a:hover, .sections a:focus-visible { color: var(--brass-hi); }
.sections .home { display: none; padding: 8px 6px 8px 0; }
.sections .home .logo { width: 30px; height: 30px; }
.sections .watchlink { color: var(--brass-hi); }
@media (max-width: 760px) { .sections { justify-content: flex-start; } }

/* ticker */
.ticker { display: flex; align-items: stretch; background: var(--paper); border-bottom: 1px solid var(--line); font: 600 14px/1 var(--sans); overflow: hidden; }
.tlabel { flex: none; background: var(--red); color: #fff; font-weight: 800; letter-spacing: .12em; font-size: 12px; padding: 12px 14px; display: flex; align-items: center; gap: 8px; }
.tlabel::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 1.6s infinite; }
.tview { overflow: hidden; flex: 1; display: flex; align-items: center; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ttrack { display: flex; align-items: center; gap: 18px; white-space: nowrap; padding-left: 18px; animation: tick 70s linear infinite; }
.ttrack a { text-decoration: none; color: var(--ink); }
.ttrack a:hover { color: var(--brass); }
.ttrack i { color: var(--brass); font-style: normal; font-size: 10px; }
.ticker:hover .ttrack { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }
@keyframes pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .ttrack { animation: none; } }

main { max-width: 1240px; margin: 0 auto; padding: 22px 16px 56px; }

/* ---------- kickers & cards ---------- */
.kicker { display: inline-block; font: 800 11.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--brass); margin-bottom: 8px; }
.sec-persecuted { color: var(--red); }
.pic { display: block; overflow: hidden; border-radius: var(--radius); background: var(--navy-2); aspect-ratio: 16 / 10; }
.pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
article:hover .pic img { transform: scale(1.04); }
.card h3 { font: 700 21px/1.2 var(--serif-d); margin: 0 0 6px; }
.card h3 a, .hero h2 a { text-decoration: none; }
.card h3 a:hover, .hero h2 a:hover { text-decoration: underline; text-decoration-color: var(--brass-hi); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.dek { color: var(--ink-2); margin: 0 0 8px; font-size: 16.5px; line-height: 1.5; }
.meta { font: 600 12.5px var(--sans); color: var(--ink-2); margin: 0; letter-spacing: .02em; }
.card-md .ctext { padding-top: 12px; }
.card.opinion h3 { font-style: italic; }

.card-row { display: grid; grid-template-columns: 1fr 112px; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.card-row .pic { grid-column: 2; grid-row: 1; aspect-ratio: 1; border-radius: 10px; }
.card-row .ctext { grid-column: 1; grid-row: 1; }
.card-row h3 { font-size: 18px; }
.card-row.noimg { grid-template-columns: 1fr; }

/* hero */
.hero { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--navy); }
.hero .pic { border-radius: 0; aspect-ratio: 16 / 10; }
.hero .hero-text { padding: 18px 18px 20px; background: var(--navy); color: var(--on-navy); }
.hero h2 { font: 900 clamp(28px, 6.6vw, 48px)/1.08 var(--serif-d); margin: 0 0 10px; }
.hero .dek { color: #d3cbb8; font-size: 18px; }
.hero .meta { color: #a9a291; }
.hero .kicker { color: var(--brass-hi); }
.hero .kicker.sec-persecuted { color: #fff; background: var(--red); padding: 6px 9px; border-radius: 3px; }
@media (min-width: 760px) {
  .hero .pic { aspect-ratio: 16 / 9; }
  .hero .hero-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 120px 32px 28px; background: linear-gradient(transparent, rgba(7,13,22,.75) 35%, rgba(7,13,22,.95)); }
}

/* ---------- front ---------- */
.front { display: grid; gap: 26px; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .front { grid-template-columns: minmax(0, 1fr) 340px; } }
.railhead, .rowhead h2 { font: 800 13px var(--sans); letter-spacing: .14em; text-transform: uppercase; margin: 0; padding-bottom: 10px; border-bottom: 3px solid var(--ink); }
.rowhead { display: flex; justify-content: space-between; align-items: end; border-bottom: 3px solid var(--ink); margin-bottom: 18px; }
.rowhead h2 { border: 0; }
.rowhead h2 a { text-decoration: none; }
.rowhead .all { font: 700 13px var(--sans); color: var(--brass); text-decoration: none; padding-bottom: 10px; }
.topstories .card-row:last-child { border-bottom: 0; }

.grid { display: grid; gap: 26px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.secrow { margin-top: 44px; }

/* watch band */
.watch { margin: 40px -16px 0; background: radial-gradient(ellipse at 80% 0%, #22385a, var(--navy) 65%); color: var(--on-navy); padding: 32px 16px; }
@media (min-width: 1272px) { .watch { border-radius: var(--radius); margin-inline: 0; } }
.watch-in { max-width: 1180px; margin: 0 auto; display: grid; gap: 24px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .watch-in { grid-template-columns: 1.5fr 1fr; gap: 36px; } }
.player { border-radius: 12px; overflow: hidden; background: #000; box-shadow: 0 20px 50px rgba(0,0,0,.45); aspect-ratio: 16 / 9; }
.player video { width: 100%; height: 100%; display: block; }
.watch .eyebrow { color: var(--brass-hi); display: flex; align-items: center; gap: 8px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red-hi); animation: pulse 1.6s infinite; }
.watch h2 { font: 900 clamp(26px, 4vw, 36px)/1.12 var(--serif-d); margin: 0 0 8px; }
.watch .sub { font: 600 14px var(--sans); color: #b9b19f; margin: 0 0 14px; }
.watch ol { margin: 0; padding-left: 1.2em; font: 600 15px/1.45 var(--sans); }
.watch li { margin-bottom: 8px; }
.watch li::marker { color: var(--brass-hi); font-weight: 800; }
.watch li a { text-decoration: none; }
.watch li a:hover { color: var(--brass-hi); }

/* prayer band */
.prayband { margin: 40px 0 0; background: var(--paper); border: 1px solid var(--line); border-top: 5px solid var(--red); border-radius: var(--radius); padding: 24px 20px; }
.prayband h2 { font: 900 28px/1.1 var(--serif-d); margin: 0 0 16px; }
.prays { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .prays { grid-template-columns: repeat(3, 1fr); } }
.prayitem { display: block; text-decoration: none; padding: 14px 16px; border-radius: 10px; background: var(--bg); border-left: 4px solid var(--red); }
.prayitem .pk { font: 800 11px var(--sans); letter-spacing: .12em; color: var(--red); text-transform: uppercase; }
.prayitem p { margin: 6px 0 0; font-size: 16.5px; line-height: 1.5; }
.prayfoot { margin: 16px 0 0; font: 600 14px var(--sans); color: var(--ink-2); }

.midrow { display: grid; gap: 0 36px; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .midrow { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } .midrow .verse { margin-top: 44px; } .midrow .grid { grid-template-columns: 1fr 1fr; } }
.verse { background: var(--navy); color: var(--on-navy); border-radius: var(--radius); padding: 24px; border-left: 6px solid var(--brass-hi); margin-top: 32px; }
.verse h2 { font: 800 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brass-hi); margin: 0 0 10px; }
.verse p { font: italic 21px/1.45 var(--serif); margin: 0 0 10px; }
.verse cite { font: 700 13px var(--sans); color: #c9c1ad; font-style: normal; }

/* ---------- section + static pages ---------- */
.pagehead { margin: 8px 0 24px; }
.pagehead h1 { font: 900 clamp(36px, 8vw, 56px)/1.05 var(--serif-d); margin: 0 0 8px; }
.pagehead p:last-child { color: var(--ink-2); margin: 0; max-width: 680px; }
.pagehead + .hero { margin-bottom: 30px; }
.empty { color: var(--ink-2); font-style: italic; }

/* ---------- story ---------- */
.story { max-width: 760px; margin: 0 auto; }
.story-head h1 { font: 900 clamp(32px, 7.5vw, 52px)/1.06 var(--serif-d); margin: 0 0 14px; letter-spacing: -.01em; }
.story.opinion h1 { font-style: italic; }
.story-head .dek { font-size: 21px; line-height: 1.45; }
.byrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 0; margin: 18px 0 22px; }
.byline { font: 500 14px/1.45 var(--sans); color: var(--ink-2); margin: 0; }
.byline b { color: var(--ink); }
.sharebtn { flex: none; font: 700 14px var(--sans); background: var(--navy); color: var(--on-navy); border: 0; border-radius: 99px; padding: 11px 18px; cursor: pointer; }
.story-fig { margin: 0 -16px 26px; }
@media (min-width: 800px) { .story-fig { margin: 0 -60px 30px; } .story-fig img { border-radius: var(--radius); } }
.story-fig img { width: 100%; max-height: 560px; object-fit: cover; }
.story-fig figcaption { font: 500 13.5px/1.45 var(--sans); color: var(--ink-2); padding: 10px 16px 0; }
@media (min-width: 800px) { .story-fig figcaption { padding-inline: 60px; } }
.story-fig figcaption span { display: block; font-size: 12px; margin-top: 2px; }
.story-fig figcaption a { color: inherit; }
.body { font-size: 19.5px; line-height: 1.68; }
.body p { margin: 0 0 1.15em; }
.dateline-wrap { margin: 0 !important; height: 0; }
.dateline { font: 800 14px var(--sans); letter-spacing: .05em; color: var(--brass); }
.dateline-wrap + p { margin-top: 1.45em; }
.body > p:nth-of-type(2)::first-letter { font: 900 3.4em/0.82 var(--serif-d); float: left; margin: 6px 10px 0 0; color: var(--brass); }
.body h2 { font: 700 26px var(--serif-d); margin: 1.4em 0 .4em; }
.body ul { padding-left: 1.2em; }
.body li { margin-bottom: .5em; }
blockquote.scripture { margin: 1.5em 0; padding: 20px 24px; background: var(--paper); border-left: 5px solid var(--brass-hi); border-radius: 0 12px 12px 0; }
blockquote.scripture p { font-style: italic; font-size: 21px; margin: 0 0 8px; }
blockquote.scripture cite { font: 700 13px var(--sans); font-style: normal; color: var(--brass); }
.praybox { background: var(--navy); color: var(--on-navy); border-radius: var(--radius); padding: 20px 24px; margin: 30px 0; border-left: 6px solid var(--red-hi); }
.praybox h2 { font: 800 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brass-hi); margin: 0 0 8px; }
.praybox p { margin: 0; font-size: 19px; }
.vidpromo { margin: 30px 0; }
.vidpromo h2 { font: 800 13px var(--sans); letter-spacing: .1em; text-transform: uppercase; margin: 0 0 12px; color: var(--brass); }
.sources { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 30px; font-size: 15px; }
.sources h2 { font: 800 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 8px; }
.sources ul { padding-left: 1.1em; margin: 0 0 10px; }
.sources li { margin-bottom: 6px; word-break: break-word; }
.sources a { color: var(--brass); }
.sources .note { color: var(--ink-2); font-size: 14px; }
.related { max-width: 1180px; margin: 50px auto 0; }
.story.static .body > p:nth-of-type(2)::first-letter { all: unset; }

/* ---------- footer ---------- */
.foot { background: var(--navy); color: #b9b19f; padding: 40px 16px calc(36px + env(safe-area-inset-bottom)); border-top: 4px solid var(--brass-hi); }
.foot-top, .foot-cols, .fine { max-width: 1180px; margin: 0 auto; }
.foot-top { display: grid; gap: 18px; padding-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,.08); }
@media (min-width: 900px) { .foot-top { grid-template-columns: auto 1fr; align-items: center; gap: 40px; } }
.foot .name { font-size: 34px; }
.foot .logo { width: 38px; height: 38px; }
.foot-verse p { font: italic 18px/1.5 var(--serif); color: var(--on-navy); margin: 0 0 6px; }
.foot-verse cite { font: 700 12px var(--sans); color: var(--brass-hi); font-style: normal; }
.foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 22px; padding: 26px 0; }
.foot-cols h4 { font: 800 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brass-hi); margin: 0 0 10px; }
.foot-cols a { display: block; font: 600 14.5px/2 var(--sans); color: var(--on-navy); text-decoration: none; }
.foot-cols a:hover { color: var(--brass-hi); }
.fine { font: 13px/1.55 var(--sans); padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); }

/* ---------- install prompt ---------- */
.install { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 10px; background: var(--navy); color: var(--on-navy); border: 1px solid var(--brass-hi); border-radius: 14px; padding: 10px 12px; font: 600 14px var(--sans); box-shadow: 0 8px 30px rgba(0,0,0,.35); max-width: 480px; margin: 0 auto; z-index: 30; }
.install[hidden] { display: none; }
.install span { flex: 1; }
.install button { font: 700 14px var(--sans); border: 0; border-radius: 99px; padding: 8px 14px; cursor: pointer; }
#installBtn { background: var(--brass-hi); color: #1a1205; }
#installX { background: transparent; color: var(--on-navy); padding: 8px; }

@media (max-width: 600px) { .toplinks { display: none; } .topbar { justify-content: center; } }
.player { position: relative; }

/* ---------- YouTube cards (click to load) ---------- */
.yt { margin: 0 0 18px; }
.ytplay { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: pointer; background: #000; aspect-ratio: 16 / 9; }
.ytplay img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .2s; }
.ytplay:hover img { opacity: 1; }
.ytbtn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 68px; height: 48px; border-radius: 12px; background: rgba(179,38,30,.92); color: #fff; font-size: 22px; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.yt iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; display: block; }
.ytcap { padding-top: 8px; font: 500 14px/1.4 var(--sans); }
.ytcap b { display: block; font: 700 15.5px/1.35 var(--serif-d); color: var(--ink); margin-bottom: 2px; }
.ytcap span { color: var(--ink-2); font-size: 12.5px; }
.vidcover { margin: 30px 0; }
.vidcover h2 { font: 800 13px var(--sans); letter-spacing: .1em; text-transform: uppercase; margin: 0 0 4px; color: var(--brass); }
.vnote { font: 500 12.5px var(--sans); color: var(--ink-2); margin: 0 0 14px; }
.storyvid { width: 100%; max-height: 560px; background: #000; display: block; }
@media (min-width: 800px) { .storyvid { border-radius: var(--radius); } }
.rowsub { margin: -8px 0 16px; color: var(--ink-2); font-size: 16px; }
.church { margin: 0 0 40px; }
.churchhead h2 { font: 900 28px/1.15 var(--serif-d); margin: 0 0 6px; }
.churchhead p { margin: 0 0 8px; color: var(--ink-2); }
.churchhead .links { display: flex; gap: 16px; flex-wrap: wrap; font: 700 14px var(--sans); margin-bottom: 18px; }
.churchhead .links a { color: var(--brass); }
.libgroup { max-width: 820px; margin: 0 0 34px; }
.libitem { padding: 14px 0; border-bottom: 1px solid var(--line); }
.libitem h3 { font: 700 21px/1.25 var(--serif-d); margin: 0 0 4px; }
.libitem h3 a { color: var(--ink); text-decoration-color: var(--brass-hi); text-underline-offset: 3px; }
.libitem p { margin: 6px 0 0; font-size: 17px; }
.libitem .meta { margin: 0; }
.libcta { margin: 30px 0 0; font: 700 16px var(--sans); }
.libcta a { color: var(--brass); }
