/* ============================================================
   JCMOM one-pager — house style, no build step.
   Doctrine: FAITH_WEB_DESIGN_PLAYBOOK.md ("Dawn Light" palette,
   "Cathedral" pairing) + MODERN_WEB_CRAFT_PLAYBOOK.md techniques.
   ============================================================ */

/* ---------- Self-hosted fonts (latin subsets, gwfh) ---------- */
@font-face{
  font-family:'Cormorant Garamond';font-style:normal;font-weight:500;
  font-display:swap;src:url('fonts/cormorant-garamond-v21-latin-500.woff2') format('woff2');
}
@font-face{
  font-family:'Cormorant Garamond';font-style:italic;font-weight:500;
  font-display:swap;src:url('fonts/cormorant-garamond-v21-latin-500italic.woff2') format('woff2');
}
@font-face{
  font-family:'Cormorant Garamond';font-style:normal;font-weight:600;
  font-display:swap;src:url('fonts/cormorant-garamond-v21-latin-600.woff2') format('woff2');
}
@font-face{
  font-family:'Source Sans 3';font-style:normal;font-weight:400;
  font-display:swap;src:url('fonts/source-sans-3-v19-latin-regular.woff2') format('woff2');
}
@font-face{
  font-family:'Source Sans 3';font-style:normal;font-weight:600;
  font-display:swap;src:url('fonts/source-sans-3-v19-latin-600.woff2') format('woff2');
}

/* ---------- Tokens — "Dawn Light" ---------- */
:root{
  --bg:#FBF6EC; --surface:#F3E9D7;
  --text:#2E2419; --muted:#6B5B45;
  --accent:#8A4B2C; --gold:#C19A49;
  /* fixed deep-warm tones for the capture "altar" + footer (same in both schemes) */
  --deep-bg:#1C1712; --deep-surface:#2A221A;
  --deep-text:#F1E7D6; --deep-muted:#C9B693; --deep-gold:#D4AF6A; --deep-accent:#D98E5F;
  --terracotta:#C4722A; /* COTJ bridge borrow */
  --line:#E4D8C2;
  --font-display:'Cormorant Garamond',Georgia,serif;
  --font-body:'Source Sans 3',system-ui,sans-serif;
  /* fluid type scale (craft playbook §1.1) — body floor 18px */
  --text-body:clamp(1.125rem,1rem + .4vw,1.25rem);
  --text-verse:clamp(1.5rem,1.2rem + 1.5vw,2.1rem);
  --step--1:clamp(.94rem,.9rem + .2vw,1.02rem);
  --step-1:clamp(1.25rem,1.15rem + .5vw,1.5rem);
  --step-2:clamp(1.6rem,1.4rem + 1vw,2.1rem);
  --step-3:clamp(1.9rem,1.6rem + 1.5vw,2.6rem);
  --step-hero:clamp(2.2rem,1.7rem + 2.6vw,4rem);
  --space-m:clamp(1.5rem,1.39rem + .55vw,1.88rem);
  --space-l:clamp(2rem,1.85rem + .74vw,2.5rem);
  --space-xl:clamp(3rem,2.78rem + 1.1vw,3.75rem);
  --space-2xl:clamp(4rem,3.4rem + 3vw,6rem);
  --radius:14px; --maxw:1060px;
  accent-color:var(--accent);
}
@media (prefers-color-scheme:dark){
  :root{
    --bg:#1C1712; --surface:#2A221A;
    --text:#F1E7D6; --muted:#C9B693;
    --accent:#D98E5F; --gold:#D4AF6A;
    --line:#3A3024;
  }
}

/* ---------- Reset / base ---------- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  background:var(--bg);color:var(--text);
  font-family:var(--font-body);font-size:var(--text-body);line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
img,svg{max-width:100%;height:auto;display:block}
h1,h2,h3,blockquote{font-family:var(--font-display);font-weight:600;
  line-height:1.2;text-wrap:balance}
p{text-wrap:pretty}
h2{font-size:var(--step-3);margin-bottom:.5rem}
a{color:var(--accent)}
a:focus-visible,button:focus-visible,input:focus-visible{
  outline:3px solid var(--gold);outline-offset:2px;border-radius:4px}
::selection{background:var(--gold);color:#1C1712}
[id]{scroll-margin-top:84px}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 22px}
section{padding-block:var(--space-2xl)}
.center{text-align:center}
.eyebrow{display:block;font-size:var(--step--1);font-weight:600;
  letter-spacing:.18em;text-transform:uppercase;color:var(--gold);margin-bottom:.7rem}
.lead{color:var(--muted);max-width:62ch;margin:.4rem auto var(--space-l)}
.verse-ref{font-variant:small-caps;letter-spacing:.14em;font-size:.8em;
  font-family:var(--font-body);font-weight:600}

/* ---------- Motion kill-switch — house law ---------- */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition:none!important}
}

/* ---------- Buttons (44px+ targets) ---------- */
.btn{display:inline-block;font-family:var(--font-body);font-weight:600;
  font-size:1.05rem;text-decoration:none;text-align:center;cursor:pointer;
  padding:.85rem 1.7rem;min-height:48px;border-radius:12px;border:2px solid transparent;
  transition:background .15s,color .15s,border-color .15s,translate .1s}
.btn:active{translate:0 1px}
.btn-gold{background:var(--deep-gold);color:#1C1712;border-color:var(--deep-gold)}
.btn-gold:hover{background:#E4C283;border-color:#E4C283}
.btn-accent{background:var(--accent);color:#FBF6EC}
.btn-accent:hover{filter:brightness(1.08)}

/* ---------- Sticky nav (snippets #1, adapted for a dark hero) ---------- */
.site-header{position:sticky;top:0;z-index:60;
  background:transparent;border-bottom:1px solid transparent;
  transition:background .25s,border-color .25s}
.site-header .bar{display:flex;align-items:center;justify-content:space-between;
  gap:1rem;min-height:64px;max-width:var(--maxw);margin:0 auto;padding:.4rem 22px}
.wordmark{font-family:var(--font-display);font-weight:600;font-size:1.25rem;
  letter-spacing:.02em;text-decoration:none;color:#F1E7D6;
  display:flex;align-items:center;gap:.55rem;min-height:44px}
.wordmark .cross{color:var(--deep-gold);font-family:var(--font-body)}
.header-nav{display:flex;gap:1.4rem;align-items:center}
.header-nav a.navlink{font-size:1rem;font-weight:600;text-decoration:none;
  color:#F1E7D6;padding:.6rem 0;min-height:44px;display:inline-flex;align-items:center;
  transition:opacity .15s}
.header-nav:has(a:hover) a.navlink:not(:hover){opacity:.6}
.site-header.scrolled{background:color-mix(in srgb,var(--bg) 92%,transparent);
  backdrop-filter:blur(8px);border-bottom-color:var(--line)}
.site-header.scrolled .wordmark,
.site-header.scrolled .header-nav a.navlink{color:var(--text)}
.site-header.scrolled .wordmark .cross{color:var(--gold)}
@media (max-width:720px){.header-nav a.navlink{display:none}}

/* ---------- Hero — "a still frame from the reels" ---------- */
.hero{position:relative;min-height:100svh;margin-top:-80px; /* image runs under the transparent header */
  display:flex;align-items:flex-end;justify-content:center;
  padding:0;overflow:clip}
.hero-img{position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;object-position:50% 58%;
  /* masked fade — the painting dissolves into the page (craft §2.6) */
  -webkit-mask-image:linear-gradient(to bottom,black 88%,transparent);
          mask-image:linear-gradient(to bottom,black 88%,transparent)}
.hero::after{content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(to top,rgba(28,23,18,.85),rgba(28,23,18,.25) 55%,rgba(28,23,18,.15))}
.hero-content{position:relative;z-index:1;text-align:center;
  padding:0 22px var(--space-2xl);max-width:820px}
.hero-content .eyebrow{color:var(--deep-gold)}
.hero h1{font-size:var(--step-hero);font-weight:500;font-style:italic;
  color:#FBF6EC;text-shadow:0 2px 24px rgba(28,23,18,.55);margin-bottom:.6rem}
.hero .hero-ref{display:block;color:var(--deep-muted);margin-bottom:var(--space-l)}
.hero .verse-ref{font-size:.95rem}

/* ---------- Mission strip ---------- */
.mission p{max-width:62ch;margin-inline:auto}
.mission .ai-note{margin-top:1.1rem;color:var(--muted);font-size:var(--step--1);
  max-width:56ch;margin-inline:auto}
.pillars{display:flex;gap:.6rem 2.2rem;justify-content:center;flex-wrap:wrap;
  margin-top:var(--space-l);color:var(--muted)}
.pillars span{font-size:var(--step--1);font-weight:600;letter-spacing:.1em;
  text-transform:uppercase;display:inline-flex;align-items:center;gap:.5rem}
.pillars .g{color:var(--gold)}

/* ---------- Scripture gallery ---------- */
.gallery{background:var(--surface);border-block:1px solid var(--line)}
.verse-grid{display:grid;gap:var(--space-l);grid-template-columns:1fr;
  max-width:920px;margin:0 auto}
@media (min-width:720px){.verse-grid{grid-template-columns:1fr 1fr}}
.verse-card{background:var(--bg);border:1px solid var(--line);
  border-radius:var(--radius);overflow:hidden;
  box-shadow:0 10px 28px rgba(46,36,25,.08);
  transition:translate .15s,box-shadow .15s}
.verse-card:hover{translate:0 -3px;box-shadow:0 16px 34px rgba(46,36,25,.12)}
.verse-card img{aspect-ratio:4/5;width:100%;object-fit:cover}
.verse-card figcaption{padding:var(--space-m);border-top:2px solid var(--gold)}
.verse-card blockquote{font-size:var(--text-verse);font-weight:500;font-style:italic;
  line-height:1.3;margin-bottom:.7rem}
.verse-card .verse-ref{color:var(--muted)}
.follow-line{text-align:center;margin-top:var(--space-l);color:var(--muted)}
.follow-line a{display:inline-flex;align-items:center;min-height:44px;font-weight:600}

/* ---------- Email capture — the "altar" band ---------- */
.capture{background:var(--deep-bg);color:var(--deep-text);
  border-block:1px solid #3A3024}
.capture .eyebrow{color:var(--deep-gold)}
.capture h2{color:var(--deep-text)}
.capture .lead{color:var(--deep-muted)}
.capture-form{max-width:560px;margin:0 auto;text-align:left}
.capture-form .field{margin-bottom:1rem}
.capture-form label{display:block;font-size:1.05rem;font-weight:600;
  margin-bottom:.35rem;color:var(--deep-text)}
.capture-form label .opt{font-weight:400;color:var(--deep-muted)}
.capture-form input[type=text],.capture-form input[type=email]{
  width:100%;min-height:52px;padding:.8rem 1rem;font-size:1.1rem;
  font-family:var(--font-body);color:var(--deep-text);
  background:var(--deep-surface);border:1.5px solid #4A3D2C;border-radius:10px}
.capture-form input::placeholder{color:#8A7A5F}
.capture-form:has(input[type=email]:user-valid) input[type=email]{border-color:#7A9B6E}
.capture-form:has(input[type=email]:user-invalid) input[type=email]{border-color:#C46A5A}
.capture-form .btn{width:100%;margin-top:.4rem}
.capture .fineprint{margin-top:1rem;font-size:var(--step--1);
  color:var(--deep-muted);text-align:center;font-style:italic}

/* ---------- COTJ bridge — the register shifts to real ---------- */
.bridge{border-bottom:1px solid var(--line)}
.bridge-grid{display:grid;gap:var(--space-xl);align-items:center;grid-template-columns:1fr}
@media (min-width:820px){.bridge-grid{grid-template-columns:5fr 6fr}}
.bridge-photo{border-radius:var(--radius);overflow:hidden;
  border:1px solid var(--line);box-shadow:0 14px 34px rgba(46,36,25,.14)}
.bridge-photo img{width:100%;object-fit:cover;aspect-ratio:4/5}
.bridge-photo figcaption{font-size:var(--step--1);color:var(--muted);
  padding:.6rem .9rem;background:var(--surface)}
.bridge .eyebrow{color:var(--terracotta)}
.bridge h2{margin-bottom:1rem}
.bridge p{margin-bottom:1rem;max-width:56ch}
.bridge .cta-row{display:flex;gap:1rem 1.6rem;align-items:center;flex-wrap:wrap;margin-top:var(--space-m)}
.bridge .btn-terra{background:var(--terracotta);color:#FDFAF4}
.bridge .btn-terra:hover{filter:brightness(1.07)}
.bridge .shop-link{display:inline-flex;align-items:center;min-height:44px;font-weight:600}

/* ---------- Footer ---------- */
.site-footer{background:var(--deep-bg);color:var(--deep-muted);
  padding-block:var(--space-2xl) var(--space-m);font-size:var(--step--1)}
.footer-form{max-width:520px;margin:0 auto var(--space-xl);text-align:center}
.footer-form h2{font-size:var(--step-2);color:var(--deep-text);margin-bottom:.3rem}
.footer-form p{color:var(--deep-muted);margin-bottom:1rem}
.footer-form form{display:flex;gap:.6rem;flex-wrap:wrap;justify-content:center}
.footer-form input[type=email]{flex:1 1 240px;min-height:48px;padding:.7rem 1rem;
  font-size:1.05rem;font-family:var(--font-body);color:var(--deep-text);
  background:var(--deep-surface);border:1.5px solid #4A3D2C;border-radius:10px}
.footer-form input::placeholder{color:#8A7A5F}
.footer-form .fineprint{margin-top:.8rem;font-style:italic}
.footer-links{display:flex;gap:.4rem 2rem;justify-content:center;flex-wrap:wrap;
  margin-bottom:var(--space-l)}
.footer-links a{color:var(--deep-text);text-decoration:none;font-weight:600;
  display:inline-flex;align-items:center;min-height:44px}
.footer-links a:hover{color:#fff;text-decoration:underline;text-underline-offset:3px}
.signoff{text-align:center;font-family:var(--font-display);font-style:italic;
  font-size:var(--step-2);color:var(--deep-gold);margin-bottom:var(--space-l)}
.signoff .verse-ref{color:var(--deep-muted);font-style:normal;font-size:.55em}
.legal{border-top:1px solid rgba(241,231,214,.14);padding-top:var(--space-m);
  text-align:center;display:grid;gap:.45rem}
.legal a{color:var(--deep-muted)}

/* ---------- Reveal-on-scroll (craft §2.1) — JS-gated, no-JS safe ---------- */
html.js .reveal{opacity:0;translate:0 22px;
  transition:opacity .6s ease var(--d,0s),translate .6s ease var(--d,0s)}
html.js .reveal.in{opacity:1;translate:0 0}
@media (prefers-reduced-motion:reduce){
  html.js .reveal{opacity:1;translate:none}
}
