/* Learning Christ Ministries. Colors are taken from the badge: the night navy of
   its field, the gold of the lettering, and the dawn behind the mountains. */

:root {
  --night: #0e1821;
  --night-2: #16242f;
  --slate: #2b3d4b;
  --mist: #9fb3c1;
  --gold: #c9a15a;
  --gold-hi: #e9cc8f;
  --gold-ink: #8a6424;      /* gold dark enough for text on cream (AA) */
  --dawn: #f3d9a4;
  --cream: #f7f1e6;
  --paper: #fffdf8;
  --ink: #1b2530;
  --ink-soft: #4a5866;
  --line: #e3d9c6;
  --header-h: 76px;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --caps: 'Cinzel', 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 400 17px/1.7 var(--sans); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0; }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.1rem); }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 32px); }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: var(--night); padding: .5rem 1rem; }
.skip:focus { left: 8px; }

.kicker {
  font: 600 .78rem/1.2 var(--caps); letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold-ink); margin: 0 0 1rem; text-wrap: balance;
}
.lede { font-size: 1.12rem; color: var(--ink-soft); margin: 1rem 0 0; }
.head { text-align: center; max-width: 680px; margin: 0 auto 3rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.btn-row.center { justify-content: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.6rem; border-radius: 999px; border: 1px solid var(--gold);
  background: var(--gold); color: var(--night); font: 600 .95rem/1 var(--sans);
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--gold-hi); border-color: var(--gold-hi); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--cream); border-color: rgba(247,241,230,.45); }
.btn.ghost:hover { background: rgba(247,241,230,.1); border-color: var(--cream); }
.btn.ghost-dark { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost-dark:hover { background: var(--ink); color: var(--cream); }
.btn.big { padding: 1.05rem 2.2rem; font-size: 1.05rem; }
.btn.is-soon { background: transparent; color: var(--gold-hi); border-style: dashed; cursor: default; transform: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------------------------------------------------------------- header */
/* Clear over the dark hero, then an opaque bar once the page moves. */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background .3s, box-shadow .3s;
}
.site-header.stuck { background: rgba(14,24,33,.97); box-shadow: 0 1px 0 rgba(201,161,90,.25); }
.bar { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--cream); }
.brand-mark { width: 48px; height: 48px; }
.brand-name { font: 600 1.02rem/1.05 var(--caps); letter-spacing: .06em; }
.brand-name small { display: block; font-size: .64rem; letter-spacing: .38em; color: var(--mist); margin-top: .25rem; }
#nav { display: flex; align-items: center; gap: 1.8rem; }
#nav a { color: var(--cream); text-decoration: none; font-size: .93rem; font-weight: 500; opacity: .88; }
#nav a:hover { opacity: 1; color: var(--gold-hi); }
#nav a.nav-give { opacity: 1; border: 1px solid var(--gold); color: var(--gold-hi); padding: .5rem 1.15rem; border-radius: 999px; }
#nav a.nav-give:hover { background: var(--gold); color: var(--night); }
.nav-toggle { display: none; }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative; overflow: hidden; color: var(--cream);
  min-height: min(100vh, 900px); display: flex; align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 11rem;
  background: linear-gradient(180deg, #0b141c 0%, #16293a 45%, #3c4f5c 72%, #8e7d62 100%);
}
.sky { position: absolute; inset: 0; pointer-events: none; }
.sun {
  position: absolute; left: 50%; bottom: 60px; width: 900px; height: 900px; transform: translate(-50%, 50%);
  background: radial-gradient(circle, rgba(255,226,160,.85) 0, rgba(243,190,110,.45) 14%, rgba(201,161,90,.16) 34%, transparent 62%);
}
.ridges { position: absolute; left: 0; right: 0; bottom: -3px; width: 100%; height: 240px; }
.ridges .r1 { fill: #33475a; opacity: .75; }
.ridges .r2 { fill: #1c2c39; }
.ridges .r3 { fill: var(--night); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero .kicker { color: var(--gold-hi); }
.hero h1 { font-size: clamp(2.8rem, 6.4vw, 5.2rem); font-weight: 500; }
.hero h1 em { color: var(--gold-hi); }
.nw { white-space: nowrap; }
.hero-lede { font-size: 1.2rem; color: #d9dee2; max-width: 34rem; margin: 1.5rem 0 0; }
.hero-badge { display: flex; justify-content: center; }
.badge {
  width: min(420px, 100%); height: auto; border-radius: 50%;
  box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 0 1px rgba(233,204,143,.15);
}

/* ---------------------------------------------------------------- about */
/* Overlaps the hero by 2px: at fractional display scaling the layered ridges
   leave a pale hairline along the hero's clipped bottom edge. */
.about { position: relative; margin-top: -2px; background: var(--night); color: var(--cream); padding: 5rem 0 6rem; }
.about .kicker { color: var(--gold-hi); }
.mission-lead { font: 500 clamp(1.7rem, 3.4vw, 2.4rem)/1.25 var(--serif); text-align: center; margin: 0 0 3rem; }
.contrasts { list-style: none; padding: 0; margin: 0 0 3rem; border-top: 1px solid rgba(201,161,90,.3); }
.contrasts li {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: baseline;
  padding: 1.35rem 0; border-bottom: 1px solid rgba(201,161,90,.3);
  font: 500 clamp(1.25rem, 2.4vw, 1.6rem)/1.3 var(--serif);
}
.contrasts span { color: var(--mist); text-align: right; }
.contrasts strong { color: var(--gold-hi); font-weight: 600; }
.mission-close { font: italic 500 1.35rem/1.55 var(--serif); text-align: center; color: #e4e0d6; margin: 0; }

.letter-band { background: var(--paper); padding: 6rem 0; border-bottom: 1px solid var(--line); }
.letter-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 4rem; align-items: start; }
.letter-side h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.verse {
  margin: 2rem 0 0; padding-left: 1.25rem; border-left: 2px solid var(--gold);
  font: italic 500 1.2rem/1.5 var(--serif); color: var(--ink-soft);
}
.verse cite, .quote figcaption {
  display: block; margin-top: .6rem; font: 600 .72rem/1.2 var(--caps); letter-spacing: .2em;
  text-transform: uppercase; font-style: normal; color: var(--gold-ink);
}
.letter p { font: 500 1.32rem/1.65 var(--serif); margin: 0 0 1.3rem; }
.letter p:first-child::first-letter {
  float: left; font: 600 4.2rem/.8 var(--caps); color: var(--gold-ink); margin: .45rem .6rem 0 0;
}
.letter .sign { font: italic 600 1.7rem/1 var(--serif); color: var(--gold-ink); margin-top: 2rem; }

/* ---------------------------------------------------------------- podcast */
.podcast { padding: 6rem 0; }
.episodes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.episode { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  box-shadow: 0 10px 30px rgba(14,24,33,.06); display: flex; flex-direction: column; }
.player { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0;
  background: var(--night); cursor: pointer; overflow: hidden; }
.player img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s, opacity .3s; }
.player:hover img { transform: scale(1.03); opacity: .9; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play {
  position: absolute; left: 12px; bottom: 12px; width: 52px; height: 52px;
  border-radius: 50%; background: rgba(14,24,33,.78); border: 1px solid var(--gold); transition: background .2s;
}
.play::after {
  content: ''; position: absolute; left: 20px; top: 16px;
  border-left: 16px solid var(--gold-hi); border-top: 10px solid transparent; border-bottom: 10px solid transparent;
}
.player:hover .play { background: var(--night); }
.len { position: absolute; right: 10px; bottom: 10px; background: rgba(14,24,33,.85); color: var(--cream);
  font: 500 .75rem/1 var(--sans); padding: .35rem .5rem; border-radius: 4px; }
.episode-body { padding: 1.3rem 1.4rem 1.6rem; }
.ep-tag { font: 600 .68rem/1 var(--caps); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); margin: 0 0 .7rem; }
.episode h3 { font-size: 1.45rem; }
.episode h3 a { text-decoration: none; }
.episode h3 a:hover { color: var(--gold-ink); }
.podcast .btn-row { margin-top: 3rem; }

/* ---------------------------------------------------------------- quotes */
.quotes { background: var(--night-2); color: var(--cream); padding: 6rem 0; }
.quotes .kicker { color: var(--gold-hi); }
.quote-grid { columns: 3 280px; column-gap: 1.5rem; }
.quote {
  break-inside: avoid; margin: 0 0 1.5rem; padding: 2rem 1.8rem 1.6rem; border-radius: 14px;
  background: var(--night); border: 1px solid rgba(201,161,90,.22); position: relative;
}
.quote::before {
  content: '“'; position: absolute; top: .4rem; left: 1.2rem; font: 600 4rem/1 var(--serif); color: var(--gold); opacity: .45;
}
.quote blockquote { margin: 1rem 0 0; font: 500 1.45rem/1.4 var(--serif); }
.quote.scripture blockquote { font-style: italic; font-size: 1.28rem; color: #dfe3e6; }
.quote figcaption { color: var(--gold-hi); margin-top: 1.1rem; }

/* ---------------------------------------------------------------- give */
.give {
  padding: 6.5rem 0; color: var(--cream); text-align: center;
  background: radial-gradient(ellipse at 50% 120%, rgba(243,190,110,.4), transparent 60%), var(--night);
}
.give .kicker { color: var(--gold-hi); }
.give h2 { font-size: clamp(2.3rem, 4.8vw, 3.4rem); }
.give .lede { color: #d4d9dd; }
.give-note { font-size: .88rem; color: var(--mist); margin: 1.4rem 0 0; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: #091017; color: var(--mist); padding: 3rem 0 1.5rem; }
.foot { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.foot-mark { width: 72px; height: 72px; }
.foot-name { font: 600 1rem/1.2 var(--caps); letter-spacing: .06em; color: var(--cream); margin: 0; }
.foot-sub { margin: .3rem 0 0; font-size: .9rem; }
.foot-links { margin-left: auto; display: flex; gap: 1.4rem; flex-wrap: wrap; }
.foot-links a { text-decoration: none; font-size: .92rem; }
.foot-links a:hover { color: var(--gold-hi); }
.copy { font-size: .8rem; margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid rgba(159,179,193,.15); }

/* ---------------------------------------------------------------- 404 */
.oops { min-height: 100vh; display: grid; place-items: center; text-align: center; background: var(--night); color: var(--cream); padding: 2rem 16px; }
.oops-mark { width: 180px; margin: 0 auto 2rem; }
.oops h1 { font-size: 2.6rem; }
.oops p { color: var(--mist); }

/* ---------------------------------------------------------------- motion */
/* Only hidden once site.js is known to be running, so a failed script never blanks the page. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------------------------------------------------------------- narrow */
@media (max-width: 900px) {
  .hero-grid, .letter-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero { padding-bottom: 9rem; text-align: center; }
  .hero .btn-row { justify-content: center; }
  .hero-lede { margin-inline: auto; }
  .hero-badge { order: -1; }
  .badge { width: min(240px, 60vw); }
  .episodes { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
}
@media (max-width: 760px) {
  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: 10px; cursor: pointer;
  }
  .nav-toggle span { width: 24px; height: 2px; background: var(--cream); transition: transform .25s, opacity .25s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  #nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--night); padding: .5rem 16px 1.5rem; border-bottom: 1px solid rgba(201,161,90,.25);
    display: none;
  }
  #nav.open { display: flex; }
  #nav a { width: 100%; padding: .9rem 0; border-bottom: 1px solid rgba(159,179,193,.12); }
  #nav a.nav-give { margin-top: 1rem; text-align: center; border: 1px solid var(--gold); }
  .contrasts li { grid-template-columns: 1fr; gap: .2rem; text-align: center; }
  .contrasts span { text-align: center; }
  .foot { flex-direction: column; text-align: center; }
  .foot-links { margin: 0; justify-content: center; }
}
