:root {
  color-scheme: dark;
  --black: #070706;
  --coal: #10100f;
  --iron: #23211e;
  --ash: #8d8780;
  --bone: #efebe2;
  --muted: #b9afa3;
  --ember: #bc6338;
  --ember-bright: #e99a5d;
  --moss: #4b5648;
  --line: rgba(239, 235, 226, 0.22);
  --panel: rgba(14, 13, 12, 0.78);
  --shadow: rgba(0, 0, 0, 0.46);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--bone);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
a,
audio {
  font: inherit;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20;
  transform: translateY(-160%);
  background: var(--bone);
  color: var(--black);
  padding: 0.7rem 0.9rem;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  min-height: clamp(480px, 52vw, 650px);
  display: block;
  padding: clamp(1rem, 2vw, 1.75rem);
  overflow: hidden;
  isolation: isolate;
  background: var(--black);
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(7, 7, 6, 0.24), rgba(7, 7, 6, 0.02) 28%, rgba(7, 7, 6, 0.42) 91%, var(--black)),
    linear-gradient(90deg, rgba(7, 7, 6, 0.4), transparent 35%, rgba(7, 7, 6, 0.26));
  pointer-events: none;
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
}

.hero-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.topbar,
.intro-band,
.player-panel,
.pledge-band,
.episodes-section,
.footer {
  width: min(1120px, 100%);
  margin-inline: auto;
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0;
  font-weight: 800;
}

.brand-logo {
  display: block;
  width: clamp(3.7rem, 6vw, 5.15rem);
  height: auto;
  filter: drop-shadow(0 7px 18px rgba(0, 0, 0, 0.42));
}

.topbar-actions,
.player-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--bone);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover,
.episode-card:hover {
  transform: translateY(-1px);
}

.button-solid {
  border-color: rgba(233, 154, 93, 0.76);
  background: linear-gradient(180deg, var(--ember-bright), var(--ember));
  color: #17100c;
  box-shadow: 0 14px 34px rgba(188, 99, 56, 0.28);
}

.button-ghost {
  background: rgba(7, 7, 6, 0.34);
  backdrop-filter: blur(14px);
}

.intro-band {
  padding: clamp(2rem, 5vw, 4.2rem) clamp(1rem, 2vw, 1.75rem) clamp(1rem, 3vw, 2rem);
}

.eyebrow,
.episode-status,
.episode-date {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.77rem;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: 0;
}

.intro-band h1 {
  margin: 0.45rem 0 0;
  max-width: 9ch;
  color: var(--bone);
  text-transform: uppercase;
  font-family: Impact, "Arial Black", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(3.4rem, 9vw, 7rem);
  line-height: 0.88;
  letter-spacing: 0;
  text-shadow: 0 8px 34px var(--shadow);
}

.intro-band p:last-child {
  width: min(27rem, 100%);
  margin: 0.8rem 0 0;
  color: rgba(239, 235, 226, 0.82);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.5;
}

.player-panel {
  position: relative;
  margin-bottom: clamp(1rem, 3vh, 2rem);
  padding: clamp(1rem, 2vw, 1.25rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
}

.player-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.35rem;
}

.player-heading h2 {
  margin: 0.2rem 0 0;
  font-size: clamp(1.45rem, 3vw, 2.3rem);
  line-height: 1;
  letter-spacing: 0;
}

.episode-scripture {
  margin: 0.3rem 0 0;
  color: var(--ember-bright);
  font-size: 1rem;
  font-weight: 850;
}

.episode-meta {
  min-height: 1.35rem;
  margin: 0.65rem 0 1rem;
  color: rgba(239, 235, 226, 0.74);
  line-height: 1.45;
}

.season-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.season-tabs button {
  min-height: 2.65rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--bone);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.season-tabs button[aria-pressed="true"] {
  border-color: rgba(233, 154, 93, 0.8);
  background: rgba(188, 99, 56, 0.28);
  color: #fff8ee;
}

audio {
  display: block;
  width: 100%;
  height: 3rem;
  margin: 0 0 1rem;
  accent-color: var(--ember);
}

.pledge-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: clamp(1.25rem, 4vw, 2rem) clamp(1rem, 2vw, 1.75rem);
  border-bottom: 1px solid rgba(239, 235, 226, 0.1);
  background: linear-gradient(90deg, rgba(188, 99, 56, 0.2), rgba(75, 86, 72, 0.22));
}

.pledge-band div {
  min-height: 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 1rem;
  border-left: 1px solid rgba(239, 235, 226, 0.18);
}

.pledge-band div:first-child {
  border-left: 0;
}

.pledge-band strong {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0;
}

.pledge-band span {
  margin-top: 0.25rem;
  color: rgba(239, 235, 226, 0.72);
}

.community-cta {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 1.65rem) clamp(1rem, 2vw, 1.75rem) 0;
}

.community-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.25rem;
  padding: 0.9rem 1.2rem;
  border: 1px solid rgba(233, 154, 93, 0.78);
  border-radius: 6px;
  background: linear-gradient(180deg, var(--ember-bright), var(--ember));
  box-shadow: 0 18px 42px rgba(188, 99, 56, 0.3);
  color: #17100c;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  font-size: clamp(0.78rem, 1.7vw, 0.98rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0;
  white-space: nowrap;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.community-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 48px rgba(188, 99, 56, 0.38);
}

.episodes-section {
  padding: clamp(2.5rem, 7vw, 5.5rem) clamp(1rem, 2vw, 1.75rem);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-heading h2 {
  margin: 0.2rem 0 0;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 0.92;
  text-transform: uppercase;
  font-family: Impact, "Arial Black", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0;
}

.episodes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.episode-card {
  display: grid;
  min-height: 9rem;
  padding: 1rem;
  border: 1px solid rgba(239, 235, 226, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), transparent 40%),
    rgba(255, 255, 255, 0.045);
  color: var(--bone);
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.episode-card[aria-current="true"] {
  border-color: rgba(233, 154, 93, 0.86);
  background:
    linear-gradient(135deg, rgba(188, 99, 56, 0.28), transparent 46%),
    rgba(255, 255, 255, 0.06);
}

.episode-card .card-date {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.episode-card .card-title {
  align-self: end;
  margin-top: 1.2rem;
  font-size: 1.12rem;
  font-weight: 850;
  line-height: 1.05;
}

.episode-card .card-scripture {
  margin-top: 0.35rem;
  color: rgba(239, 235, 226, 0.65);
  font-size: 0.9rem;
}

.empty-state {
  grid-column: 1 / -1;
  min-height: 8rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(239, 235, 226, 0.14);
  border-radius: 8px;
  color: rgba(239, 235, 226, 0.72);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem clamp(1rem, 2vw, 1.75rem) 2rem;
  border-top: 1px solid rgba(239, 235, 226, 0.12);
  color: rgba(239, 235, 226, 0.68);
  font-size: 0.86rem;
}

.footer a {
  color: var(--bone);
  font-weight: 800;
  text-decoration: none;
}

.share-toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  z-index: 30;
  transform: translateX(-50%) translateY(0.75rem);
  min-width: min(21rem, calc(100vw - 2rem));
  padding: 0.95rem 1.1rem;
  border: 1px solid rgba(233, 154, 93, 0.58);
  border-radius: 8px;
  background: rgba(14, 13, 12, 0.94);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.52);
  color: var(--bone);
  text-align: center;
  font-weight: 850;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.share-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 900px) {
  .site-header {
    min-height: 62vw;
  }

  .episodes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: min(100vw, 720px);
    padding: 0.8rem;
  }

  .site-header::after {
    background:
      linear-gradient(180deg, rgba(7, 7, 6, 0.22), rgba(7, 7, 6, 0) 34%, rgba(7, 7, 6, 0.46) 91%, var(--black)),
      linear-gradient(90deg, rgba(7, 7, 6, 0.32), transparent 50%, rgba(7, 7, 6, 0.24));
  }

  .hero-art img {
    object-fit: cover;
    object-position: center top;
  }

  .topbar {
    align-items: flex-start;
  }

  .brand-logo {
    width: 3.35rem;
  }

  .topbar-actions {
    gap: 0.45rem;
  }

  .button {
    min-height: 2.55rem;
    padding-inline: 0.7rem;
    font-size: 0.72rem;
  }

  .intro-band h1 {
    font-size: clamp(3.4rem, 21vw, 6.4rem);
  }

  .intro-band p:last-child {
    max-width: 18rem;
    font-size: 0.98rem;
  }

  .player-heading {
    display: block;
  }

  .season-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pledge-band,
  .episodes-grid {
    grid-template-columns: 1fr;
  }

  .community-button {
    min-height: 3.6rem;
    white-space: normal;
  }

  .pledge-band div {
    min-height: 4.2rem;
    border-left: 0;
    border-top: 1px solid rgba(239, 235, 226, 0.18);
  }

  .pledge-band div:first-child {
    border-top: 0;
  }

  .footer {
    display: grid;
  }
}

@media (max-width: 430px) {
  .topbar {
    gap: 0.5rem;
  }

  .brand-logo {
    width: 3.05rem;
  }

  .topbar-actions {
    flex-wrap: nowrap;
  }

  .button {
    padding-inline: 0.58rem;
  }

  .episode-card {
    min-height: 8.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
