/* ==========================================================================
   Right Start Ministries — style.css
   Right Start Radio with Pastor Jim Custer

   A warm "dawn over night" theme (deep navy → sunrise gold/orange), tied to the
   morning radio broadcast. Slab-serif headings for scholarly warmth; generous,
   high-contrast type for an older, traditional audience.

   Conventions followed (see PROJECT-CONTEXT.md):
     - Design tokens in :root  - overflow-x: clip backstop  - page fade-in
     - --notif-h offset for sticky header + alert bar
     - .reveal / .reveal-scale / .stagger scroll animations (paired with script.js)
     - Mobile breakpoints at 900 / 768 / 480; prefers-reduced-motion honored
     - Admin styles live in the separate admin.css; this file only adds the
       sticky-header admin-mode offset and defines the CSS vars admin.css reads.
   Section index:
     1 Reset & base      6 Hero              11 Subscribe / stations
     2 Design tokens     7 Sections/cards    12 Contact form
     3 Typography        8 Split / bio       13 Footer
     4 Buttons/util      9 Episodes/audio    14 Reveal animations
     5 Header / nav     10 CTA / donate      15 Mobile
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  /* Backstop against horizontal scroll. `clip` (not `hidden`) so it doesn't
     break position: sticky on the header. */
  overflow-x: clip;
  scroll-padding-top: 96px; /* so #anchor jumps clear the sticky header */
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--body);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  opacity: 0;
  transition: opacity 0.5s ease;
  max-width: 100%;
  overflow-x: clip;
}
body.page-visible { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body { opacity: 1; transition: none; }
}

img { max-width: 100%; display: block; }
a { color: var(--sunrise-700); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }
address { font-style: normal; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

:focus { outline: none; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; border-radius: 3px; }
a, button { -webkit-tap-highlight-color: transparent; }

/* -----------------------------------------------
   2. Design Tokens
----------------------------------------------- */
:root {
  /* Night → dawn palette */
  --navy-950: #0c1322;
  --navy-900: #101a2e;
  --navy-800: #1a2740;   /* primary brand navy */
  --navy-700: #26374f;
  --navy-600: #35496552;

  /* Accent = the logo's sunrise orange (#f08030). -500 is the true logo hue for
     decorative use (icons, gradients, glows, underline); -600/-700 are deepened
     for interactive backgrounds and text so they keep readable contrast. */
  --sunrise-700: #a94f0c;  /* deep — text on light (links, eyebrows): ~5.5:1 */
  --sunrise-600: #cf6415;  /* interactive background (buttons) */
  --sunrise-500: #f08030;  /* the logo orange — icons, gradients, accents */
  --sunrise-400: #f79a4e;
  --gold-500:   #e3a133;   /* warm sunrise gold (logo highlight) */
  --gold-400:   #eeb54f;
  --gold-300:   #f3ca7d;

  /* Neutrals (warm) */
  --ink:    #1b2436;   /* headings / dark text */
  --body:   #3f4a5c;   /* body text */
  --muted:  #6c7686;   /* secondary text */
  --cream:  #faf6ef;   /* warm off-white alt background */
  --cream-200: #f3ebe0;
  --line:   #e8ddce;   /* warm hairline border */

  /* Admin.css reads these (with its own fallbacks) — keep them defined */
  --primary:    var(--sunrise-600);
  --border:     #e5e7eb;
  --bg-page:    #f7f4ee;
  --text-dark:  #1b2436;
  --text-muted: #6c7686;

  /* Shadows / radii */
  --shadow-sm: 0 1px 3px rgba(20,30,50,0.07);
  --shadow-md: 0 6px 24px rgba(20,30,50,0.10);
  --shadow-lg: 0 18px 50px rgba(20,30,50,0.16);
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-full: 9999px;

  --ease: 0.2s ease;
  --maxw: 1160px;
  --notif-h: 0px;      /* set by JS; offsets sticky header */
  --header-h: 76px;
}

/* -----------------------------------------------
   3. Typography
----------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: 'Bitter', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.18;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.35rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
h4 { font-size: 1.1rem; }

.section-label,
.eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sunrise-700);
  margin-bottom: 0.9rem;
}
.section-title { margin-bottom: 0.6rem; }
.section-intro { font-size: 1.12rem; color: var(--muted); max-width: 60ch; }
.lead { font-size: 1.18rem; color: var(--ink); }
.highlight { color: var(--sunrise-700); }

/* -----------------------------------------------
   4. Buttons & Utilities
----------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 0.85rem 1.7rem;
  border-radius: var(--r-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--ease), background var(--ease), color var(--ease), box-shadow var(--ease), border-color var(--ease);
  text-align: center;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.1em; height: 1.1em; flex-shrink: 0; }

.btn-primary {
  background: var(--sunrise-600);
  color: #fff;
  box-shadow: 0 6px 18px rgba(207,100,21,0.30);
}
.btn-primary:hover { background: var(--sunrise-700); color: #fff; }

.btn-secondary {
  background: var(--navy-800);
  color: #fff;
}
.btn-secondary:hover { background: var(--navy-700); color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--navy-800);
  border-color: var(--navy-800);
}
.btn-outline:hover { background: var(--navy-800); color: #fff; }

.btn-white {
  background: #fff;
  color: var(--navy-800);
  box-shadow: var(--shadow-md);
}
.btn-white:hover { background: var(--gold-300); color: var(--navy-900); }

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.55);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.12); color: #fff; border-color: #fff; }

.btn-gold { background: var(--gold-500); color: var(--navy-900); }
.btn-gold:hover { background: var(--gold-400); color: var(--navy-900); }

.btn-lg { font-size: 1.08rem; padding: 1rem 2.1rem; }
.btn-block { width: 100%; }

/* Mobile: let long labels wrap instead of overflowing */
.btn { }
@media (max-width: 768px) { .btn { white-space: normal; max-width: 100%; } }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; }
.text-center { text-align: center; }
.mt-sm { margin-top: 0.75rem; }
.mt-md { margin-top: 1.5rem; }
.mt-lg { margin-top: 2.5rem; }

.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--alt { background: var(--cream); }
.section--dark { background: var(--navy-800); color: #e9edf4; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .section-label { color: var(--gold-400); }
.section-header { max-width: 680px; margin: 0 auto 2.75rem; }
.section-header.text-center { margin-left: auto; margin-right: auto; }

/* -----------------------------------------------
   5. Header / Nav
----------------------------------------------- */
.site-header {
  position: sticky;
  top: var(--notif-h);
  z-index: 200;
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--ease), background var(--ease), border-color var(--ease);
}
.site-header.scrolled {
  background: rgba(255,255,255,0.98);
  border-bottom-color: transparent;
  box-shadow: var(--shadow-md);
}
.admin-mode .site-header { top: calc(34px + var(--notif-h)); }

/* Signature: a thin band of first light across the top edge of the bar — the
   "Right Start" dawn, echoed from the logo's sunrise. */
.header-dawn {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    var(--navy-800) 0%, var(--sunrise-600) 38%,
    var(--sunrise-500) 60%, var(--gold-400) 100%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}
.logo { display: inline-flex; align-items: center; }
.logo:hover { text-decoration: none; }
.logo-img {
  height: 46px; width: auto;
  transition: height var(--ease);
}
.site-header.scrolled .logo-img { height: 42px; }

.main-nav ul { display: flex; align-items: center; gap: 0.1rem; }
.main-nav a {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0.95rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--navy-800);
  border-radius: var(--r-sm);
  transition: color var(--ease);
}
.main-nav a:not(.btn-nav):hover { color: var(--sunrise-700); text-decoration: none; }
.main-nav a.active:not(.btn-nav) { color: var(--ink); }
/* Underline "first light" — a warm sunrise-to-gold rule that grows from the
   center on hover and stays lit on the active page. Absolute so it never
   nudges the link's height in the flex row. */
.main-nav a:not(.btn-nav)::after {
  content: ''; position: absolute; left: 0.95rem; right: 0.95rem; bottom: 4px;
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--sunrise-500), var(--gold-500));
  transform: scaleX(0); transform-origin: center;
  opacity: 0;
  transition: transform var(--ease), opacity var(--ease);
}
.main-nav a:not(.btn-nav):hover::after,
.main-nav a.active:not(.btn-nav)::after { transform: scaleX(1); opacity: 1; }
.main-nav a:focus-visible { outline: 2px solid var(--sunrise-600); outline-offset: 2px; border-radius: var(--r-sm); }

/* Give — the one loud element: a warm pill, set apart from the text links by a
   hairline divider so it reads as an action, not another destination. */
.nav-cta-item {
  margin-left: 0.65rem;
  padding-left: 0.9rem;
  border-left: 1px solid var(--line);
}
.main-nav a.btn-nav,
.btn-nav {
  background: var(--sunrise-600);
  color: #fff !important;
  padding: 0.58rem 1.4rem;
  border-radius: var(--r-full);
  box-shadow: 0 4px 14px rgba(207,100,21,0.28);
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
}
.btn-nav:hover {
  background: var(--sunrise-700); color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(169,79,12,0.34);
}
.btn-nav:active { transform: translateY(0); }
.btn-nav.active::after { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 10px;
  background: none; border: none; cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2.5px; width: 100%;
  background: var(--navy-800); border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* -----------------------------------------------
   6. Hero (home)
----------------------------------------------- */
.hero {
  position: relative;
  color: #eef2f8;
  background:
    radial-gradient(120% 120% at 80% -10%, rgba(227,161,51,0.28), transparent 55%),
    radial-gradient(130% 110% at -10% 120%, rgba(240,128,48,0.30), transparent 55%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  overflow: hidden;
}
.hero::after {
  /* soft "sunrise" glow along the bottom */
  content: ''; position: absolute; left: 0; right: 0; bottom: -40%;
  height: 80%; pointer-events: none;
  background: radial-gradient(60% 100% at 50% 100%, rgba(243,202,125,0.20), transparent 70%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3.5rem, 8vw, 6rem);
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--gold-300); margin-bottom: 1.4rem;
}
.hero-eyebrow-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--sunrise-400); }
.hero-title { color: #fff; margin-bottom: 1.4rem; }
.hero-desc { font-size: 1.2rem; color: #d3dbe8; max-width: 42ch; }
/* margin-top (not the desc's margin-bottom) sets this gap — the desc is the last
   <p> in its group, so `p:last-child { margin-bottom: 0 }` would zero it. */
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.25rem; }
.hero-meta {
  margin-top: 2.5rem; padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.14);
  display: flex; gap: 2.75rem; flex-wrap: wrap;
}
.hero-meta .stat strong { display: block; font-family: 'Bitter', serif; font-size: 1.55rem; line-height: 1.1; color: var(--gold-400); margin-bottom: 0.15rem; }
.hero-meta .stat span { font-size: 0.85rem; color: #b7c1d2; }

.hero-art { display: flex; justify-content: center; }
.hero-art-frame {
  position: relative;
  width: min(340px, 78vw);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.45);
  border: 6px solid rgba(255,255,255,0.10);
  rotate: 2deg;
}
.hero-art-frame img { width: 100%; display: block; }

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  color: #eef2f8;
  background:
    radial-gradient(120% 140% at 90% -20%, rgba(227,161,51,0.25), transparent 55%),
    linear-gradient(160deg, var(--navy-900), var(--navy-800));
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.5rem, 6vw, 4rem);
  text-align: center;
}
.page-hero-eyebrow {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-300); display: block; margin-bottom: 0.8rem;
}
.page-hero-title { color: #fff; margin: 0 auto; max-width: 18ch; }
.page-hero-sub { color: #d3dbe8; font-size: 1.15rem; max-width: 60ch; margin: 1rem auto 0; }

/* -----------------------------------------------
   7. Sections & cards
----------------------------------------------- */
/* Home: Meet Pastor Jim — landscape portrait beside a short teaser to /about */
.jim-feature-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.jim-feature-media img {
  width: 100%; height: auto; display: block;
  aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}
.jim-feature-body .section-title { margin-bottom: 0.75rem; }
.jim-feature-body p { color: var(--body); font-size: 1.1rem; margin-bottom: 1.75rem; }
@media (max-width: 860px) {
  .jim-feature-inner { grid-template-columns: 1fr; }
  .jim-feature-media { max-width: 560px; margin: 0 auto; }
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--ease), box-shadow var(--ease);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(150deg, var(--gold-400), var(--sunrise-500));
  color: #fff; margin-bottom: 1.1rem;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 { margin-bottom: 0.5rem; }
.feature-card p { color: var(--muted); margin: 0; }

/* Mission / three-fold aim numbered list */
.aims { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
.aim { display: flex; gap: 1rem; align-items: flex-start; }
.aim-num {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy-800); color: var(--gold-400);
  font-family: 'Bitter', serif; font-weight: 800;
}
.aim p { margin: 0; }

/* -----------------------------------------------
   8. Split (photo + text) & bio
----------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split--reverse .split-media { order: 2; }
.split-media img {
  width: 100%; border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}
.split-body h2 { margin-bottom: 0.75rem; }

/* Pastor bio */
.bio { display: grid; grid-template-columns: 300px 1fr; gap: clamp(1.75rem, 4vw, 3rem); align-items: start; }
.bio-photo {
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  border: 5px solid #fff; outline: 1px solid var(--line);
}
.bio-photo img { width: 100%; display: block; }
.bio-body :is(p) { margin-bottom: 1rem; }

/* Beliefs summary */
.beliefs-list { display: grid; gap: 0.9rem; margin: 1.25rem 0; }
.beliefs-list li {
  position: relative; padding-left: 1.9rem; color: var(--body);
}
.beliefs-list li::before {
  content: ''; position: absolute; left: 0; top: 0.55em;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--sunrise-500);
}

/* Prose block for legacy rich content (Beliefs full, etc.) */
.prose h2 { margin: 2rem 0 0.75rem; }
.prose h3 { margin: 1.5rem 0 0.5rem; }
.prose p { margin-bottom: 1rem; }
.prose a { color: var(--sunrise-700); text-decoration: underline; }
.prose ul, .prose ol { margin: 0 0 1rem 1.4rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.4rem; }

/* -----------------------------------------------
   9. Episodes & audio player
----------------------------------------------- */
/* Home: latest episode feature */
.latest {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.75rem;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
}
.latest-art { border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.latest-art img { width: 100%; display: block; aspect-ratio: 1/1; object-fit: cover; }
.latest-badge {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--sunrise-700); margin-bottom: 0.5rem;
}
.latest-title { font-size: 1.4rem; margin-bottom: 0.35rem; }
.latest-meta { font-size: 0.9rem; color: var(--muted); margin-bottom: 0.75rem; }
.latest-desc { color: var(--body); margin-bottom: 1.1rem; }

/* Listen: episode list */
.episodes-status { color: var(--muted); padding: 1.5rem 0; }
.episodes-status.error { color: var(--sunrise-700); }
.episode-list { display: grid; gap: 1rem; margin-top: 1.5rem; }
.episode {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--ease);
}
.episode:hover { box-shadow: var(--shadow-md); }
.episode-title { font-size: 1.2rem; margin-bottom: 0.3rem; }
.episode-meta {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1rem;
  font-size: 0.85rem; color: var(--muted); margin-bottom: 0.7rem;
}
.episode-meta .dot { color: var(--line); }
.episode-desc { color: var(--body); margin-bottom: 1rem; }
.episode-play {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: 'Inter', sans-serif; font-weight: 700; font-size: 0.95rem;
  color: #fff; background: var(--navy-800);
  border: none; border-radius: var(--r-full);
  padding: 0.6rem 1.25rem; cursor: pointer;
  transition: background var(--ease);
}
.episode-play:hover { background: var(--sunrise-600); }
.episode-play svg { width: 16px; height: 16px; }
.episode-audio { margin-top: 1rem; width: 100%; }
.episode-audio audio { width: 100%; display: block; }
.load-more-wrap { text-align: center; margin-top: 2rem; }

/* Archive: compact, searchable/filterable list of older episodes */
.archive-controls {
  display: flex; align-items: flex-end; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.archive-controls .archive-search { flex: 1 1 260px; margin: 0; }
.archive-filters { display: flex; gap: 0.75rem; }
.archive-field { display: flex; flex-direction: column; gap: 0.35rem; }
.archive-field-label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}
.archive-select {
  font-family: inherit; font-size: 0.95rem; color: var(--ink);
  padding: 0.7rem 2.2rem 0.7rem 0.9rem;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236c7686' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.75rem center;
  -webkit-appearance: none; appearance: none; cursor: pointer; outline: none;
  max-width: 220px;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.archive-select:focus { border-color: var(--sunrise-500); box-shadow: 0 0 0 3px rgba(240,128,48,0.16); }
@media (max-width: 600px) {
  .archive-filters { width: 100%; }
  .archive-field { flex: 1; }
  .archive-select { max-width: none; width: 100%; }
}
.archive-search { position: relative; margin: 0 0 1rem; }
.archive-search-icon {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--muted); pointer-events: none;
}
.archive-search-input {
  width: 100%; box-sizing: border-box;
  font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: 0.8rem 1.1rem 0.8rem 2.9rem;
  border: 1.5px solid var(--line); border-radius: var(--r-full);
  background: #fff; outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.archive-search-input:focus {
  border-color: var(--sunrise-500);
  box-shadow: 0 0 0 3px rgba(240,128,48,0.16);
}
.archive-list { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.archive-list:empty { display: none; }
.archive-item + .archive-item { border-top: 1px solid var(--line); }
.archive-row { display: flex; align-items: center; gap: 0.9rem; padding: 0.7rem 1rem; }
.archive-play {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: none; border-radius: 50%;
  background: var(--cream); color: var(--sunrise-700); cursor: pointer;
  transition: background var(--ease), color var(--ease);
}
.archive-play:hover { background: var(--sunrise-500); color: #fff; }
.archive-play svg { width: 16px; height: 16px; }
.archive-main { display: flex; flex-direction: column; min-width: 0; }
.archive-title { font-family: 'Bitter', serif; font-weight: 600; color: var(--ink); font-size: 1.02rem; line-height: 1.3; }
.archive-date { font-size: 0.82rem; color: var(--muted); }
.archive-audio:not(:empty) { padding: 0 1rem 0.9rem 3.9rem; }
.archive-audio audio { width: 100%; display: block; }

/* -----------------------------------------------
   10. CTA banner & donate
----------------------------------------------- */
.cta {
  background:
    radial-gradient(110% 130% at 85% -10%, rgba(227,161,51,0.30), transparent 55%),
    linear-gradient(150deg, var(--navy-900), var(--navy-800));
  color: #fff;
}
.cta-inner { text-align: center; max-width: 720px; margin: 0 auto; }
.cta-title { color: #fff; }
.cta-text { color: #d3dbe8; font-size: 1.15rem; margin: 0.75rem 0 1.75rem; }
.cta .btn-outline-white { color:#fff; }

/* Donate */
.give-lead {
  max-width: 62ch; margin: 0 auto 2.5rem; text-align: center;
  font-size: 1.15rem; color: var(--body);
}
.give-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 920px;
  margin: 0 auto;
  align-items: stretch;
}
.give-method {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  padding: clamp(1.75rem, 3vw, 2.5rem);
}
.give-method--primary {
  border-color: var(--sunrise-400);
  box-shadow: var(--shadow-md);
}
/* Quiet round badges instead of gradient chips: the primary method reads as a
   solid sunrise mark, the secondary as a calm cream one — hierarchy without
   the toy-like look. */
.give-method-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: var(--r-full);
  background: var(--cream); border: 1px solid var(--line);
  color: var(--sunrise-700); margin-bottom: 1.25rem;
}
.give-method--primary .give-method-icon {
  background: var(--sunrise-600); border-color: var(--sunrise-600); color: #fff;
}
.give-method-icon svg { width: 22px; height: 22px; }
.give-method h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.give-method-note { color: var(--body); margin-bottom: 1.4rem; }

/* Short reassurance list on the online card — gives it substance so it sits
   level with the mail card instead of trailing empty space above the button. */
.give-points {
  list-style: none; margin: 0 0 1.75rem; padding: 0;
  display: grid; gap: 0.7rem;
}
.give-points li {
  position: relative; padding-left: 1.9rem;
  color: var(--ink); font-size: 1.02rem; line-height: 1.4;
}
.give-points li::before {
  content: ''; position: absolute; left: 0; top: 0.05em;
  width: 1.25rem; height: 1.25rem; border-radius: var(--r-full);
  background: var(--cream);
  /* small sunrise check */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a94f0c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 0.85rem;
  box-shadow: inset 0 0 0 1px var(--line);
}
/* Push the primary CTA to the card bottom so both cards' actions line up */
.give-method .btn-block { margin-top: auto; }
.give-address {
  font-family: 'Bitter', serif; font-size: 1.15rem; line-height: 1.55; color: var(--ink);
  background: var(--cream); border-radius: var(--r-md);
  padding: 1.15rem 1.4rem; margin: 0 0 1.1rem;
  border-left: 3px solid var(--sunrise-500);
}
.give-phone { color: var(--body); margin: 0; }
.give-thanks {
  text-align: center; max-width: 55ch; margin: 2.5rem auto 0;
  font-family: 'Bitter', serif; font-style: italic; font-size: 1.2rem; color: var(--ink);
}

/* -----------------------------------------------
   11. Subscribe & radio stations (Listen page)
----------------------------------------------- */
.subscribe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.subscribe-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 0.9rem;
  aspect-ratio: 1 / 1;                 /* square tiles */
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 1.3rem;
  box-shadow: var(--shadow-sm); color: var(--ink); font-weight: 700;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.subscribe-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); text-decoration: none; border-color: var(--gold-400); }
.subscribe-card svg { width: 54px; height: 54px; flex-shrink: 0; color: var(--sunrise-500); }
.subscribe-card small { display: block; font-weight: 500; color: var(--muted); font-size: 0.82rem; margin-top: 0.15rem; }
/* Show the Spotify placeholder even before its URL is set, but make it
   non-clickable ("do nothing for now"). Once a URL is added in admin, admin.js
   removes .social-btn--empty and the card becomes a normal link. */
.subscribe-card.social-btn--empty { display: flex; pointer-events: none; }
.admin-mode .subscribe-card.social-btn--empty { display: flex; opacity: 0.6; }

.stations { display: grid; gap: 0.75rem; margin-top: 1.25rem; }
.station {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 1rem;
  padding: 1rem 1.25rem; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-md);
}
.station-name { font-family: 'Bitter', serif; font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.station-city { color: var(--body); }
.station-time { margin-left: auto; color: var(--sunrise-700); font-weight: 600; font-size: 0.92rem; }

/* Messages on CD — for listeners who order physical discs by phone or mail. */
.cd-panel {
  display: flex; align-items: flex-start; gap: clamp(1.1rem, 2.5vw, 1.75rem);
  margin-top: 1.25rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
}
.cd-panel-icon {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: var(--r-full);
  background: var(--cream); border: 1px solid var(--line);
  color: var(--sunrise-700);
}
.cd-panel-icon svg { width: 30px; height: 30px; }
.cd-panel-body { min-width: 0; }
.cd-panel-body p { margin: 0 0 0.85rem; color: var(--body); font-size: 1.05rem; }
.cd-panel-body p:last-child { margin-bottom: 0; }
.cd-order { color: var(--muted); }
.cd-order a { font-weight: 600; color: var(--sunrise-700); white-space: nowrap; }

@media (max-width: 560px) {
  .cd-panel { flex-direction: column; gap: 1.1rem; }
}

/* -----------------------------------------------
   12. Contact form
----------------------------------------------- */
.contact-layout { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: clamp(2rem, 4vw, 3rem); align-items: start; }
.contact-form-wrap {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-md);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.contact-form-intro { color: var(--muted); margin-bottom: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.1rem; }
.form-label { display: block; font-weight: 600; font-size: 0.9rem; color: var(--ink); margin-bottom: 0.4rem; }
.form-label .optional { color: var(--muted); font-weight: 400; }
.form-input, .form-textarea {
  width: 100%; box-sizing: border-box;
  font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: 0.75rem 0.95rem;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: #fdfcfa; outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.form-input:focus, .form-textarea:focus {
  border-color: var(--sunrise-500);
  box-shadow: 0 0 0 3px rgba(240,128,48,0.18);
}
.form-textarea { min-height: 150px; resize: vertical; }
.form-footer { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 0.5rem; }
.form-note { font-size: 0.85rem; color: var(--muted); margin: 0; }
.form-error {
  margin-top: 1rem; padding: 0.75rem 1rem;
  background: #fdecea; color: #a8321e;
  border: 1px solid #f3c4bb; border-radius: var(--r-sm);
  font-size: 0.92rem;
}
.form-success { display: none; }
.form-success.is-visible {
  display: block; text-align: center; padding: 2rem 1rem;
}
.form-success__title { font-family: 'Bitter', serif; font-size: 1.5rem; color: var(--ink); margin-bottom: 0.5rem; }
.cf-turnstile { margin: 0.25rem 0 1rem; }

.contact-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--shadow-sm);
  padding: 1.5rem 1.6rem; margin-bottom: 1.25rem;
}
.contact-card__heading { font-family: 'Bitter', serif; font-weight: 700; font-size: 1.15rem; color: var(--ink); margin-bottom: 0.6rem; }
.contact-card address p { margin-bottom: 0.4rem; }
.contact-card a { color: var(--sunrise-700); }

/* -----------------------------------------------
   13. Footer
----------------------------------------------- */
.site-footer { background: var(--navy-900); color: #c3ccda; padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.footer-brand img { margin-bottom: 1.1rem; }
.footer-verse { font-family: 'Bitter', serif; font-style: italic; font-size: 0.98rem; color: #aeb9c9; line-height: 1.6; }
.footer-verse-ref { display: block; font-style: normal; font-size: 0.82rem; color: var(--gold-400); margin-top: 0.5rem; letter-spacing: 0.03em; }
.footer-social { display: flex; gap: 0.6rem; margin-top: 1.25rem; }
.social-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.08); color: #fff;
  transition: background var(--ease), transform var(--ease);
}
.social-btn:hover { background: var(--sunrise-600); transform: translateY(-2px); text-decoration: none; }
.social-btn svg { width: 18px; height: 18px; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer-col ul { display: grid; gap: 0.55rem; }
.footer-col a { color: #c3ccda; font-size: 0.95rem; }
.footer-col a:hover { color: var(--gold-400); text-decoration: none; }
.footer-col address a { color: #c3ccda; }
.footer-col address a:hover { color: var(--gold-400); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; padding-top: 1.5rem;
}
.footer-legal p { font-size: 0.85rem; color: #8b96a8; margin: 0; }
.footer-legal a { color: #aeb9c9; }

/* -----------------------------------------------
   14. Reveal animations (paired with script.js)
----------------------------------------------- */
.reveal {
  --reveal-delay: 0ms;
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.6s ease-out var(--reveal-delay), transform 0.6s ease-out var(--reveal-delay);
}
.reveal.in-view { opacity: 1; transform: none; }
.reveal-scale {
  --reveal-delay: 0ms;
  opacity: 0; transform: scale(0.92);
  transition: opacity 0.6s ease-out var(--reveal-delay),
              transform 0.6s cubic-bezier(0.34,1.56,0.64,1) var(--reveal-delay);
}
.reveal-scale.in-view { opacity: 1; transform: none; }
.stagger > * { --reveal-delay: 0ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-scale { opacity: 1 !important; transform: none !important; transition: none; }
}

/* Address popup (script.js data-addr) — minimal, in case used */
.addr-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.35); z-index: 998; }
.addr-popup {
  position: fixed; z-index: 999; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg); padding: 0.5rem; min-width: 220px;
}
.addr-popup-btn {
  display: flex; align-items: center; gap: 0.6rem; width: 100%;
  padding: 0.7rem 0.9rem; background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 0.95rem; color: var(--ink); border-radius: var(--r-sm);
}
.addr-popup-btn:hover { background: var(--cream); }

/* -----------------------------------------------
   15. Mobile / Responsive
----------------------------------------------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-eyebrow, .hero-actions, .hero-meta { justify-content: center; }
  .hero-art { order: -1; }
  .hero-art-frame { width: min(260px, 62vw); rotate: 0deg; }
  .split, .bio, .contact-layout { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }
  .bio-photo { max-width: 300px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .latest { grid-template-columns: 1fr; text-align: center; }
  .latest-art { max-width: 200px; margin: 0 auto; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: calc(var(--header-h) + var(--notif-h));
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    max-height: calc(100dvh - var(--header-h) - var(--notif-h));
    overflow-y: auto;
  }
  .admin-mode .main-nav { top: calc(var(--header-h) + var(--notif-h) + 34px); }
  .main-nav.open { transform: translateY(0); }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem 1.25rem 1.25rem; }
  .main-nav a:not(.btn-nav) { padding: 0.95rem 0.5rem; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.08rem; }
  .main-nav a:not(.btn-nav)::after { display: none; }
  .nav-cta-item { margin: 1rem 0 0; padding-left: 0; border-left: 0; }
  .main-nav a.btn-nav { display: block; margin: 0; text-align: center; padding: 0.95rem 1.4rem; font-size: 1.08rem; }
  .nav-touching { color: var(--sunrise-700); }
  .form-row { grid-template-columns: 1fr; }
  .station-time { margin-left: 0; width: 100%; }
}

/* Stack multi-button rows on phones so two large buttons never overflow the
   viewport, and read better stacked. */
@media (max-width: 600px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  .cta-inner .btn { width: 100%; }
  .give-address { font-size: 1.1rem; }
  .hero-meta { gap: 1.25rem; }
}
