/* Scripture Life — site styles */
:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --surface-2: #f2ede4;
  --ink: #1f2430;
  --muted: #5e6572;
  --line: #e4ddd1;
  --accent: #9b2c2c;
  --accent-ink: #ffffff;
  --gold: #a87a2f;
  --shadow: 0 1px 2px rgba(31, 36, 48, .06), 0 8px 24px rgba(31, 36, 48, .06);
  --radius: 14px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --read: "Source Serif 4", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14161b; --surface: #1c1f26; --surface-2: #232730; --ink: #ece7de; --muted: #a3a8b3;
    --line: #2e333d; --accent: #e08a7d; --accent-ink: #1a1214; --gold: #d9ab5f;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #14161b; --surface: #1c1f26; --surface-2: #232730; --ink: #ece7de; --muted: #a3a8b3;
  --line: #2e333d; --accent: #e08a7d; --accent-ink: #1a1214; --gold: #d9ab5f;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1rem/1.6 var(--sans); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; text-wrap: balance; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 32px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 16px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.icon { width: 20px; height: 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 1.2rem var(--serif); }
.brand-mark { width: 30px; height: 30px; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--muted); padding: 8px 12px; border-radius: 999px; }
.site-nav a:hover { color: var(--ink); background: var(--surface-2); }
.site-nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.theme-btn { margin-left: 6px; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; cursor: pointer; }
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .moon, [data-theme="dark"] .theme-btn .sun { display: none; }
[data-theme="dark"] .theme-btn .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { display: none; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: block; }
}
.menu-btn { display: none; }

@media (max-width: 760px) {
  .menu-btn { display: grid; gap: 5px; width: 42px; height: 42px; place-content: center; background: none; border: 0; cursor: pointer; color: var(--ink); }
  .menu-btn span { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s; }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .site-nav { position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px 16px 20px; background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 14px; font-size: 1.05rem; }
  .theme-btn { margin: 8px 0 0 8px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font: 600 .95rem var(--sans);
  text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.4); backdrop-filter: blur(6px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--surface-2); }

/* Hero */
.hero { position: relative; min-height: min(78vh, 680px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 70%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,12,10,.25) 0%, rgba(14,12,10,.35) 40%, rgba(14,12,10,.82) 100%); }
.hero-content { position: relative; z-index: 1; padding: 120px 0 96px; }
.eyebrow { font: 600 .78rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.hero .eyebrow { color: #f1c98a; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); max-width: 14ch; margin-bottom: 18px; }
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 46ch; color: rgba(255,255,255,.88); margin-bottom: 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Verse of the day */
.votd-wrap { position: relative; z-index: 2; margin-top: -48px; }
.votd { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px 32px; display: grid; grid-template-columns: auto 1fr; gap: 8px 28px; align-items: start; }
.votd-label { font: 600 .78rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); padding-top: 6px; white-space: nowrap; }
.votd blockquote { margin: 0; font: italic 400 clamp(1.1rem, 2.2vw, 1.35rem)/1.55 var(--read); }
.votd cite { display: block; margin-top: 10px; font: 600 .9rem var(--sans); font-style: normal; color: var(--muted); }
.votd cite a { color: inherit; }
@media (max-width: 640px) { .votd { grid-template-columns: 1fr; padding: 22px; } .votd-label { padding-top: 0; } }

/* Sections */
.section { padding: 80px 0; }
.section.alt { background: var(--surface-2); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin: 0; }
.section-head p { color: var(--muted); margin: 6px 0 0; }
.link-arrow { font-weight: 600; color: var(--accent); text-decoration: none; white-space: nowrap; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Post cards */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.post-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.post-card .meta { font-size: .82rem; color: var(--muted); margin-bottom: 10px; }
.post-card h3 { font-size: 1.35rem; margin-bottom: 10px; }
.post-card h3 a { text-decoration: none; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.post-card p:not(.meta) { color: var(--muted); font-size: .97rem; flex: 1; }
.read-more { font-weight: 600; font-size: .9rem; color: var(--accent); text-decoration: none; }
.read-more span { display: inline-block; transition: transform .2s; }
.post-card:hover .read-more span { transform: translateX(4px); }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* Gospel feature */
.gospel { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.gospel h2 { font-size: clamp(2rem, 4vw, 3rem); }
.gospel .verse { font: italic 1.2rem/1.6 var(--read); border-left: 3px solid var(--gold); padding-left: 18px; margin: 0 0 24px; }
.gospel .verse cite { display: block; font: 600 .85rem var(--sans); font-style: normal; color: var(--muted); margin-top: 8px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.steps li::before { content: counter(step); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); font: 600 1.1rem var(--serif); }
.steps strong { display: block; font: 600 1.1rem var(--serif); margin-bottom: 2px; }
.steps span { color: var(--muted); font-size: .95rem; }
@media (max-width: 860px) { .gospel { grid-template-columns: 1fr; gap: 32px; } }

/* Ministry cards */
.cards-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.ministry { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; transition: transform .2s, box-shadow .2s; }
a.ministry:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.ministry img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; }
.ministry img.logo { object-fit: contain; padding: 22px; background: #fff; }
.ministry img.logo.navy { background: #22364b; }
.ministry .body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.ministry h3 { font-size: 1.3rem; margin-bottom: 6px; }
.ministry p { color: var(--muted); font-size: .95rem; flex: 1; }
.ministry .tag { font: 600 .72rem var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--gold); margin-bottom: 8px; }
.ministry.soon { border-style: dashed; background: transparent; align-items: center; justify-content: center; text-align: center; padding: 32px; min-height: 220px; }
.ministry.soon svg { width: 56px; height: 56px; color: var(--muted); margin-bottom: 12px; }

/* About strip */
.about-strip { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: center; }
.about-strip img, .about-page img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; width: 100%; }
.about-strip h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
.about-strip p { color: var(--muted); font-size: 1.05rem; }
@media (max-width: 760px) { .about-strip { grid-template-columns: 1fr; gap: 28px; } .about-strip img { max-width: 320px; } }

/* Page hero (inner pages) */
.page-hero { padding: 72px 0 24px; text-align: center; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.page-hero .lead { color: var(--muted); font-size: 1.15rem; max-width: 56ch; margin-inline: auto; }
.search { display: flex; align-items: center; gap: 10px; margin: 28px auto 0; max-width: 520px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 6px 4px 18px; box-shadow: var(--shadow); }
.search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 1rem var(--sans); padding: 12px 6px; outline: none; }
.search:focus-within { border-color: var(--accent); }

/* About page */
.about-page { display: grid; grid-template-columns: 380px 1fr; gap: 56px; align-items: start; padding-bottom: 80px; }
.about-page .prose { width: auto; }
.contact-card { margin-top: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.contact-card h2 { font-size: 1.3rem; }
.contact-card p { color: var(--muted); }
.social { display: flex; gap: 10px; flex-wrap: wrap; }
.social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--ink); background: var(--surface); transition: background .15s, color .15s; }
.social a:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
@media (max-width: 860px) { .about-page { grid-template-columns: 1fr; gap: 32px; } .about-page img { max-width: 360px; } }

/* Post page */
.post-header { padding: 64px 0 8px; }
.back { display: inline-block; font-weight: 500; font-size: .9rem; color: var(--muted); text-decoration: none; margin-bottom: 28px; }
.back:hover { color: var(--accent); }
.post-header h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); }
.post-header .meta { color: var(--muted); font-size: .95rem; display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.prose { font: 400 1.2rem/1.8 var(--read); padding: 24px 0 8px; }
.prose p { margin-bottom: 1.3em; }
.prose > p:first-child::first-letter { float: left; font: 600 3.6em/.8 var(--serif); padding: .08em .1em 0 0; color: var(--accent); }
.prose h2 { font-size: 1.7rem; margin: 1.6em 0 .6em; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--gold); font-style: italic; font-size: 1.3rem; color: var(--muted); }
.prose strong { font-weight: 600; }
.post-footer { padding: 16px 0 88px; }
.share { padding: 24px 0; border-top: 1px solid var(--line); display: flex; gap: 12px; align-items: center; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-nav a { display: block; text-decoration: none; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font: 600 1.05rem/1.3 var(--serif); transition: border-color .15s; }
.post-nav a:hover { border-color: var(--accent); }
.post-nav span { display: block; font: 500 .82rem var(--sans); color: var(--muted); margin-bottom: 6px; }
.post-nav .next { text-align: right; grid-column: 2; }
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } .post-nav .next { grid-column: 1; } .prose { font-size: 1.1rem; } }

/* Missions page */
.missions-intro { max-width: 60ch; margin: 0 auto; }

/* Footer */
.site-footer { background: var(--surface-2); border-top: 1px solid var(--line); padding: 56px 0 24px; font-size: .95rem; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer-title { font: 600 1.3rem var(--serif); margin-bottom: 8px; }
.footer-brand p:not(.footer-title) { color: var(--muted); max-width: 36ch; }
.footer-email { color: var(--accent); font-weight: 500; }
.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a { text-decoration: none; color: var(--muted); }
.footer-nav a:hover { color: var(--ink); }
.footer-label { font-weight: 600; margin-bottom: 12px; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.footer-base p { margin: 0; }
.to-top { text-decoration: none; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; gap: 28px; } }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: var(--bg);
  padding: 10px 18px; border-radius: 999px; font-weight: 500; font-size: .92rem; transition: opacity .2s, transform .2s; pointer-events: none; z-index: 90; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
