:root {
  --ink: #151311;
  --muted: #6f665b;
  --paper: #f7f1e8;
  --paper-2: #fffaf1;
  --rust: #ad4f32;
  --rust-dark: #73321f;
  --teal: #1e6864;
  --gold: #d9a441;
  --line: rgba(21, 19, 17, 0.14);
  --shadow: 0 18px 42px rgba(38, 28, 20, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.site-header {
  align-items: center;
  background: rgba(247, 241, 232, 0.9);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 0;
  padding: 14px clamp(18px, 5vw, 64px);
  position: fixed;
  right: 0;
  top: 0;
  transition: box-shadow 180ms ease, background 180ms ease;
  z-index: 20;
}

.site-header.is-scrolled {
  background: rgba(255, 250, 241, 0.96);
  box-shadow: 0 10px 30px rgba(42, 32, 24, 0.12);
}

.brand {
  align-items: center;
  display: inline-flex;
  font-weight: 800;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--ink);
  border-radius: 50%;
  color: var(--paper-2);
  display: inline-flex;
  font-family: Lora, serif;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.nav {
  align-items: center;
  display: flex;
  gap: 8px;
}

.nav a {
  border-radius: 999px;
  color: #2c2924;
  font-size: 0.94rem;
  font-weight: 700;
  padding: 8px 13px;
  text-decoration: none;
}

.nav a:hover {
  background: rgba(173, 79, 50, 0.12);
  color: var(--rust-dark);
}

.menu-toggle {
  background: transparent;
  border: 0;
  display: none;
  height: 40px;
  padding: 8px;
  width: 44px;
}

.menu-toggle span {
  background: var(--ink);
  display: block;
  height: 2px;
  margin: 7px 0;
  width: 100%;
}

.hero {
  min-height: 92vh;
  overflow: hidden;
  padding: 150px clamp(20px, 6vw, 72px) 80px;
  position: relative;
}

.hero-image {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
  z-index: 0;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(12, 10, 9, 0.25), rgba(12, 10, 9, 0.76) 48%, rgba(12, 10, 9, 0.88)),
    linear-gradient(0deg, rgba(12, 10, 9, 0.55), rgba(12, 10, 9, 0.03) 52%);
  inset: 0;
  position: absolute;
  z-index: 1;
}

.hero-content {
  color: #fffaf1;
  margin-left: auto;
  max-width: 650px;
  position: relative;
  z-index: 2;
}

.eyebrow {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.05;
  margin: 0;
}

h1,
h2 {
  font-family: Lora, Georgia, serif;
}

h1 {
  font-size: clamp(3rem, 7vw, 6.8rem);
  max-width: 11ch;
}

h2 {
  font-size: clamp(2.2rem, 4vw, 4rem);
}

h3 {
  font-size: 1.25rem;
}

.hero-copy {
  color: rgba(255, 250, 241, 0.86);
  font-size: clamp(1.04rem, 2vw, 1.25rem);
  margin: 24px 0 0;
  max-width: 58ch;
}

.owner {
  color: rgba(255, 250, 241, 0.78);
  font-weight: 800;
  margin: 18px 0 0;
}

.hero-actions,
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 32px;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  text-decoration: none;
}

.button.primary {
  background: var(--rust);
  color: white;
}

.button.primary:hover {
  background: var(--rust-dark);
}

.button.secondary {
  border-color: rgba(255, 250, 241, 0.36);
  color: #fffaf1;
}

.button.secondary:hover {
  background: rgba(255, 250, 241, 0.12);
}

.intro-band {
  background: var(--ink);
  color: var(--paper-2);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric {
  background: rgba(255, 250, 241, 0.04);
  padding: 28px clamp(20px, 5vw, 64px);
}

.metric strong {
  color: var(--gold);
  display: block;
  font-family: Lora, serif;
  font-size: 2.1rem;
}

.metric span {
  color: rgba(255, 250, 241, 0.72);
}

.section,
.newsletter {
  padding: clamp(64px, 8vw, 112px) clamp(20px, 6vw, 72px);
}

.section-heading {
  margin-bottom: 34px;
  max-width: 760px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 16px 0 0;
}

.section-heading.split {
  align-items: end;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 520px);
  max-width: none;
}

.featured-episode {
  align-items: center;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  padding: clamp(24px, 4vw, 42px);
}

.tag {
  background: rgba(30, 104, 100, 0.12);
  border-radius: 999px;
  color: var(--teal);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 16px;
  padding: 6px 10px;
  text-transform: uppercase;
}

.featured-episode p,
.episode-grid p,
.book-card p,
.post-card p {
  color: var(--muted);
}

.player {
  align-items: center;
  background: #241f1a;
  border-radius: 8px;
  color: #fffaf1;
  display: grid;
  gap: 18px;
  grid-template-columns: 54px 1fr auto;
  min-height: 116px;
  padding: 22px;
}

.audio-panel {
  background: #241f1a;
  border-radius: 8px;
  color: #fffaf1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
}

audio {
  display: block;
  width: 100%;
}

.audio-panel a,
.episode-grid a {
  color: var(--teal);
  font-weight: 800;
  text-decoration: none;
}

.audio-panel a {
  color: var(--gold);
}

.play-button {
  background: var(--gold);
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.1rem;
  height: 54px;
  width: 54px;
}

.wave {
  align-items: center;
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(12, 1fr);
  height: 56px;
}

.wave span {
  background: #fffaf1;
  border-radius: 999px;
  display: block;
  height: var(--h, 24px);
  opacity: 0.84;
}

.wave span:nth-child(2n) {
  --h: 38px;
}

.wave span:nth-child(3n) {
  --h: 16px;
}

.player.is-playing .wave span {
  animation: pulse 760ms ease-in-out infinite alternate;
}

.player.is-playing .wave span:nth-child(2n) {
  animation-delay: 120ms;
}

.player.is-playing .wave span:nth-child(3n) {
  animation-delay: 240ms;
}

@keyframes pulse {
  to {
    transform: scaleY(0.5);
  }
}

.episode-grid,
.book-grid,
.devotional-grid,
.post-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.episode-grid article,
.book-card,
.devotional-card,
.post-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.episode-grid span,
.post-card span {
  color: var(--rust);
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.books-section {
  background: #ebe3d5;
}

.devotional-section {
  background: var(--paper-2);
}

.devotional-card {
  background:
    linear-gradient(180deg, rgba(30, 104, 100, 0.1), rgba(30, 104, 100, 0)),
    var(--paper);
  display: flex;
  flex-direction: column;
  min-height: 220px;
}

.devotional-card span {
  color: var(--teal);
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 42px;
  text-transform: uppercase;
}

.devotional-card p {
  color: var(--muted);
}

.devotional-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.devotional-card a {
  color: var(--teal);
  font-weight: 800;
  margin-top: auto;
  text-decoration: none;
}

.devotional-card.is-hidden {
  display: none;
}

.book-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.book-cover {
  aspect-ratio: 3 / 4;
  border-radius: 6px;
  color: #fffaf1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 260px;
  padding: 24px;
}

.book-cover strong {
  font-family: Lora, serif;
  font-size: 2rem;
  line-height: 1.05;
}

.cover-one {
  background: linear-gradient(145deg, #1f4d4b, #8c3e29);
}

.cover-two {
  background: linear-gradient(145deg, #25211d, #c08d32);
}

.cover-three {
  background: linear-gradient(145deg, #72311f, #275f5b);
}

.book-card a,
.post-card a {
  color: var(--teal);
  font-weight: 800;
  margin-top: auto;
  text-decoration: none;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.filter,
.devotional-filter {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
  min-height: 42px;
  padding: 0 16px;
}

.filter.active,
.filter:hover,
.devotional-filter.active,
.devotional-filter:hover {
  background: var(--ink);
  color: var(--paper-2);
}

.post-card.is-hidden {
  display: none;
}

.newsletter {
  align-items: center;
  background: var(--teal);
  color: #fffaf1;
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
}

.newsletter .eyebrow {
  color: #f5c765;
}

.newsletter label {
  display: block;
  font-weight: 800;
  margin-bottom: 8px;
}

input {
  background: rgba(255, 250, 241, 0.98);
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  flex: 1 1 240px;
  font: inherit;
  min-height: 48px;
  min-width: 0;
  padding: 0 18px;
}

.form-message {
  min-height: 24px;
}

.footer {
  align-items: center;
  background: var(--ink);
  color: rgba(255, 250, 241, 0.8);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  justify-content: space-between;
  padding: 26px clamp(20px, 6vw, 72px);
}

.footer p {
  color: #fffaf1;
  font-weight: 800;
  margin: 0;
}

.footer div {
  display: flex;
  gap: 18px;
  justify-content: center;
}

.footer a {
  text-decoration: none;
}

.footer small {
  justify-self: end;
}

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

  .nav {
    background: var(--paper-2);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 30px rgba(42, 32, 24, 0.12);
    display: none;
    left: 0;
    padding: 12px 20px 18px;
    position: absolute;
    right: 0;
    top: 67px;
  }

  .nav.is-open {
    display: grid;
  }

  .hero {
    min-height: 86vh;
    padding-top: 128px;
  }

  .hero-overlay {
    background: linear-gradient(0deg, rgba(12, 10, 9, 0.88), rgba(12, 10, 9, 0.2));
  }

  .hero-content {
    margin-left: 0;
    max-width: 620px;
  }

  h1 {
    max-width: 11ch;
  }

  .intro-band,
  .featured-episode,
  .section-heading.split,
  .episode-grid,
  .book-grid,
  .devotional-grid,
  .post-grid,
  .newsletter {
    grid-template-columns: 1fr;
  }

  .book-cover {
    max-width: none;
  }

  .footer {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .footer div {
    justify-content: start;
  }

  .footer small {
    justify-self: start;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding-inline: 16px;
  }

  .brand span:last-child {
    font-size: 0.94rem;
  }

  .hero {
    padding-inline: 18px;
  }

  h1 {
    font-size: 3rem;
  }

  .player {
    grid-template-columns: 48px 1fr;
  }

  .duration {
    grid-column: 2;
  }
}
