/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  --cream:        #F8F4EF;
  --cream-alt:    #EFEBE4;
  --cream-dark:   #E5DFD7;
  --slate:        #5B7A8E;
  --slate-dark:   #3D5A6A;
  --gold:         #8B7355;
  --charcoal:     #2A2727;
  --mid:          #5A5555;
  --font-serif:   Georgia, 'Times New Roman', serif;
  --font-sans:    -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w:        720px;
  --radius:       6px;
}

/* ── Reset / Base ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  line-height: 1.78;
}

img { display: block; max-width: 100%; height: auto; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--slate-dark);
}

.hero-art {
  display: block;
  width: 100%;
  object-fit: cover;
  object-position: center top; /* anchor to top so face is never cropped */
  opacity: .92;
}

/* Wide: float as a centered portrait — never fills the full bleed */
@media (min-width: 700px) {
  .hero-art {
    max-width: 580px;
    height: 370px;
    margin: 0 auto;
  }
}

/* Narrow: full-width banner; gets taller as the screen gets narrower */
@media (max-width: 699px) {
  .hero-art {
    height: min(75vw, 380px);
  }
}

.hero-card {
  width: 100%;
  max-width: var(--max-w);
  text-align: center;
  padding: 2.8rem 1.5rem 3.2rem;
  color: #F0ECE5;
}

.hero-prelude {
  font-family: var(--font-sans);
  font-size: .8125rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #B8AFA4;
  margin-bottom: .75rem;
}

.hero-name {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 400;
  letter-spacing: .01em;
  color: #EDE8E0;
  margin-bottom: .5rem;
}

.hero-dates {
  font-family: var(--font-sans);
  font-size: .9375rem;
  color: #A8A09A;
  margin-bottom: 1.6rem;
}

.divider {
  width: 48px;
  height: 1px;
  background: #6B8CA4;
  margin: 0 auto 1.6rem;
}

.hero-verse {
  font-size: 1.0625rem;
  font-style: italic;
  color: #D4CFC8;
  line-height: 1.65;
  margin-bottom: .5rem;
}

.hero-ref {
  font-size: .875rem;
  color: #8A8480;
}

/* ── Site Nav ───────────────────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  gap: 0;
  background: var(--slate-dark);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.site-nav a {
  display: block;
  padding: .75rem 1.5rem;
  font-family: var(--font-sans);
  font-size: .8125rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #B0C4CF;
  text-decoration: none;
  transition: color .2s, background .2s;
}

.site-nav a:hover {
  color: #fff;
  background: rgba(255,255,255,.06);
}

/* ── Sections ───────────────────────────────────────────────────────────── */
.section {
  padding: 4rem 1.5rem;
}

.section-alt {
  background: var(--cream-alt);
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 400;
  color: var(--slate-dark);
  text-align: center;
  margin-bottom: .5rem;
}

.section-rule {
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin: .5rem auto 1.75rem;
}

.section-intro {
  text-align: center;
  color: var(--mid);
  font-family: var(--font-sans);
  font-size: .9375rem;
  line-height: 1.65;
  margin-bottom: 2rem;
}

/* ── Audio Player ───────────────────────────────────────────────────────── */
.audio-wrap {
  background: var(--cream-alt);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  text-align: center;
}

.audio-label {
  font-family: var(--font-sans);
  font-size: .8125rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 1.1rem;
}

.audio-player {
  width: 100%;
  max-width: 560px;
  accent-color: var(--slate);
  margin-bottom: 1.25rem;
}

/* ── Download Links ─────────────────────────────────────────────────────── */
.download-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin-top: .25rem;
}

.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem 1rem;
  border: 1px solid var(--slate);
  border-radius: 20px;
  font-family: var(--font-sans);
  font-size: .8125rem;
  color: var(--slate-dark);
  text-decoration: none;
  transition: background .2s, color .2s;
}

.dl-btn:hover {
  background: var(--slate);
  color: #fff;
}

/* ── Prose ──────────────────────────────────────────────────────────────── */
.prose p {
  margin-bottom: 1.4rem;
  color: var(--charcoal);
}

.prose p:last-child {
  margin-bottom: 0;
}

.pull-quote {
  border-left: 3px solid var(--gold);
  margin: 2rem 0 2rem 1.25rem;
  padding: .75rem 1.25rem;
  font-size: 1.125rem;
  font-style: italic;
  color: var(--gold);
  line-height: 1.6;
}

.scripture {
  border-left: 3px solid var(--slate);
  margin: 2rem 0;
  padding: .75rem 1.25rem;
  font-style: italic;
  color: var(--slate-dark);
}

.scripture p {
  margin-bottom: .5rem !important;
  color: var(--slate-dark);
}

.scripture cite {
  display: block;
  font-style: normal;
  font-size: .875rem;
  font-family: var(--font-sans);
  color: var(--slate);
}

.declaration {
  font-size: 1.125rem;
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
  text-align: center;
  margin: 2rem 0 !important;
  line-height: 1.6;
}

/* ── Sermon ─────────────────────────────────────────────────────────────── */
.sermon-prelude {
  font-family: var(--font-sans);
  font-size: .8125rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mid);
  text-align: center;
  margin-bottom: .5rem;
}

.sermon-heading {
  font-size: 1.1875rem;
  font-weight: 400;
  font-style: italic;
  color: var(--slate-dark);
  margin: 2.5rem 0 1rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid var(--cream-dark);
}

.sermon-close {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--cream-dark);
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--slate-dark);
  color: #8A9EA8;
  text-align: center;
  padding: 3rem 1.5rem;
  font-family: var(--font-sans);
}

.footer-divider {
  width: 40px;
  height: 1px;
  background: #5B7A8E;
  margin: 0 auto 1.5rem;
}

.footer-church {
  font-size: .875rem;
  margin-bottom: .35rem;
  color: #8A9EA8;
}

.footer-tagline {
  font-size: .8125rem;
  color: #6A8090;
  margin-bottom: 1.25rem;
}

.footer-dates {
  font-size: .8125rem;
  color: #556A74;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 500px) {
  .site-nav a {
    padding: .65rem .9rem;
    font-size: .75rem;
    letter-spacing: .06em;
  }

  .audio-wrap {
    padding: 1.25rem 1rem;
  }

  .pull-quote,
  .scripture {
    margin-left: 0;
  }
}
