:root {
  --navy: #07111f;
  --navy-mid: #0c1a2e;
  --gold: #d4a017;
  --gold-soft: #e8c14a;
  --ink: #1a1612;
  --muted: #8b97a8;
  --paper: #f7f4ee;
  --white: #ffffff;
  --pill: #111111;
  --radius: 999px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.site-header {
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 4vw;
  gap: 1rem;
  flex-wrap: nowrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
}

.logo-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
}

.logo-bars span {
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, #f0b429, #c48412);
}

.logo-bars span:nth-child(1) { height: 10px; }
.logo-bars span:nth-child(2) { height: 16px; }
.logo-bars span:nth-child(3) { height: 22px; }
.logo-bars span:nth-child(4) { height: 14px; }

.logo-name {
  font-weight: 700;
  color: #1c1408;
}

.logo-name em {
  font-style: normal;
  color: var(--gold);
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #2b241c;
  flex-shrink: 0;
}

.nav a:hover {
  color: var(--gold);
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 500px at 50% -10%, #163150 0%, transparent 60%),
    linear-gradient(180deg, #0a1830 0%, var(--navy) 70%);
  color: var(--white);
  text-align: center;
  padding: 5.5rem 1.5rem 4.5rem;
  min-height: auto;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  height: 180px;
  border-radius: 50%;
  border: 1px solid rgba(180, 210, 240, 0.18);
  pointer-events: none;
}

.hero::before { bottom: 18%; transform: rotate(-4deg); }
.hero::after { bottom: 8%; transform: rotate(3deg); border-color: rgba(180, 210, 240, 0.1); }

.hero h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.12;
  max-width: 16ch;
  margin: 0 auto 1.4rem;
}

.hero h1 span {
  display: block;
  color: var(--gold-soft);
}

.hero p {
  color: #c5cedb;
  font-size: 1.15rem;
  line-height: 1.6;
  max-width: 38rem;
  margin: 0 auto 1.4rem;
}

.hero .scripture {
  position: relative;
  z-index: 1;
  max-width: 42rem;
  margin: 0 auto 2.4rem;
  padding: 0 0.5rem;
  background: none;
  border: 0;
  text-align: center;
}

.hero .scripture p {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: #e8eef6;
  margin: 0 auto 0.55rem;
}

.hero .scripture cite {
  display: block;
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.platform-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  max-width: 46rem;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.platform-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #101010;
  color: var(--white);
  border: 1px solid #2a2a2a;
  padding: 0.75rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
}

.platform-btn:hover {
  background: #1d1d1d;
  border-color: var(--gold);
}

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 6rem;
}

.page-wide {
  max-width: 980px;
}

.page h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.75rem;
}

.kicker {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 0.7rem;
}

.lede {
  color: #5c564c;
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.page p,
.page li {
  color: #3f3a33;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.stats-form {
  display: grid;
  gap: 0.6rem;
  max-width: 28rem;
  margin-bottom: 2rem;
}

.stats-form input {
  font: inherit;
  padding: 0.7rem 0.8rem;
  border: 1px solid #d9d1c5;
  background: var(--white);
}

.stats-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.stats-form button {
  font: inherit;
  font-weight: 700;
  color: var(--white);
  background: var(--navy);
  border: 0;
  padding: 0.7rem 1rem;
  cursor: pointer;
}

.page a {
  color: #8a5a08;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.home-extra {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.home-card {
  display: block;
  background: var(--white);
  border-radius: 14px;
  padding: 1.4rem 1.5rem;
  border: 1px solid #e4dccb;
  color: inherit;
  text-decoration: none;
}

.home-card:hover {
  border-color: var(--gold);
}

.home-card h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.45rem;
  margin-bottom: 0.4rem;
}

.home-card p {
  color: #3f3a33;
  line-height: 1.55;
}

.episode {
  background: var(--white);
  border: 1px solid #e4dccb;
  border-radius: 12px;
  padding: 1.25rem 1.35rem 1.4rem;
  margin: 0 0 1.25rem;
}

.page h2,
.episode h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.45rem;
  line-height: 1.25;
  margin: 1.4rem 0 0.45rem;
}

.episode-date {
  color: #8a5a08;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.episode audio {
  width: 100%;
  margin: 0.75rem 0 0.35rem;
}

.episode-status {
  color: #5c5348;
  font-style: italic;
}

.spotify-embed {
  background: var(--white);
  border: 1px solid #e4dccb;
  border-radius: 12px;
  padding: 1.25rem 1.35rem 1.4rem;
  margin: 0 0 1.25rem;
}

.spotify-embed iframe {
  display: block;
  width: 100%;
  border: 0;
  margin-top: 0.75rem;
}

.video-frame {
  position: relative;
  padding-top: 56.25%;
  margin: 1rem 0;
  border-radius: 10px;
  overflow: hidden;
  background: #111;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.page .scripture {
  background: #efe6d2;
  border-left: 4px solid var(--gold);
  padding: 1rem 1.1rem;
  margin: 1rem 0 1.25rem;
  margin-left: 0;
  text-align: left;
}

.page .scripture p {
  color: #3a3428;
  font-style: italic;
}

.page .scripture cite {
  display: block;
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a5a08;
  margin-top: 0.45rem;
}

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

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.25rem 0 2rem;
}

.feature-card {
  background: var(--white);
  border: 1px solid #e4dccb;
  border-radius: 12px;
  padding: 1.15rem 1.2rem;
}

.feature-card h2 {
  margin-top: 0;
}

.action-link {
  display: inline-block;
  background: #1b1713;
  color: var(--white) !important;
  text-decoration: none !important;
  padding: 0.75rem 1.15rem;
  border-radius: var(--radius);
  margin: 0.4rem 0 1rem;
}

.action-link:hover {
  background: var(--gold);
  color: #1b1713 !important;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 0.5rem 0 1.75rem;
}

.contact-card {
  background: var(--white);
  border: 1px solid #e4dccb;
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
}

.contact-label {
  color: #8a5a08;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
}

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

.mail-panel {
  background: var(--navy);
  color: var(--white);
  border-radius: 16px;
  padding: 1.6rem 1.35rem 1.7rem;
}

.mail-panel h2 {
  color: var(--white);
  margin-top: 0;
}

.mail-panel p {
  color: #c5cedb;
}

.mail-panel label {
  display: block;
  color: var(--gold-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.mail-panel input {
  width: 100%;
  margin-bottom: 0.9rem;
  padding: 0.8rem 0.9rem;
  border-radius: 8px;
  border: 1px solid #2a3a52;
  background: var(--navy-mid);
  color: var(--white);
  font: inherit;
}

.mail-panel button {
  background: var(--gold);
  color: #1b1713;
  border: 0;
  font: inherit;
  font-weight: 700;
  padding: 0.75rem 1.2rem;
  border-radius: var(--radius);
  cursor: pointer;
}

.mail-panel button:hover {
  background: var(--gold-soft);
}

.note {
  background: #efe6d2;
  border-left: 4px solid var(--gold);
  padding: 1rem 1.1rem;
  margin: 1.5rem 0 2rem;
  color: #3a3428;
}

.editable-block {
  background: var(--white);
  border: 1px dashed #c9bfa8;
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
  margin-top: 1.5rem;
}

.editable-block h2 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.site-footer {
  background: var(--navy);
  color: #b7c2d0;
  padding: 2rem 6vw;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.site-footer a:hover {
  color: var(--gold);
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (min-width: 720px) {
  .home-extra {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1200px) {
  .home-extra {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}

@media (max-width: 1024px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 6vw 1.4rem;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    z-index: 20;
  }

  .nav.open {
    display: flex;
  }

  .site-header {
    position: relative;
  }

  .hero {
    padding: 4.5rem 1.2rem 3.5rem;
    min-height: auto;
  }
}

@media (min-width: 800px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Phone app (PWA) */
.app-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--paper);
}

.app-header {
  background: var(--white);
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e4dccb;
}

.app-header .logo {
  font-size: 1.15rem;
}

.app-home {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 1.35rem 2.5rem;
  max-width: 420px;
  margin: 0 auto;
  width: 100%;
}

.app-brand {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.85rem, 7vw, 2.35rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 0.35rem;
  text-align: center;
}

.app-host {
  color: #8a5a08;
  font-weight: 700;
  font-size: 1.05rem;
  text-align: center;
  margin-bottom: 2rem;
}

.app-choice {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.45rem;
  min-height: 96px;
  padding: 1.35rem 1.4rem;
  margin-bottom: 1rem;
  background: var(--white);
  border: 2px solid #e4dccb;
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.app-choice:hover,
.app-choice:focus-visible {
  border-color: var(--gold);
  outline: none;
}

.app-choice-accent {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.app-choice-accent:hover,
.app-choice-accent:focus-visible {
  border-color: var(--gold);
}

.app-choice-label {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.2;
}

.app-choice-accent .app-choice-label {
  color: var(--gold-soft);
}

.app-choice-desc {
  font-size: 1rem;
  line-height: 1.45;
  color: #5c564c;
}

.app-choice-accent .app-choice-desc {
  color: #c5cedb;
}

.app-note {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #5c564c;
  margin: 0.75rem 0 0.5rem;
  text-align: center;
}

.app-about {
  text-align: center;
  margin-top: 0.25rem;
}

.app-about a {
  color: #8a5a08;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}

.app-page {
  flex: 1;
  max-width: 560px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 3rem;
  width: 100%;
}

.app-page h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.85rem, 6vw, 2.4rem);
  margin-bottom: 0.5rem;
}

.app-back {
  margin-bottom: 1rem;
}

.app-back a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: #8a5a08;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
}

.app-episode h2 {
  margin-top: 0.15rem;
  font-size: 1.35rem;
}

.app-episode h2 a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.app-episode h2 a:hover {
  color: #8a5a08;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.app-episode p {
  color: #3f3a33;
  line-height: 1.55;
  font-size: 1.02rem;
  margin-top: 0.45rem;
}

.app-footer {
  padding: 1.35rem 1.25rem;
  font-size: 0.88rem;
}

.phone-app-link {
  display: inline-block;
  margin-top: 0.35rem;
  color: #c5cedb;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.phone-app-link:hover {
  color: var(--gold);
}
