:root {
  color-scheme: light;
  --background: #f4efe7;
  --surface: rgba(255, 252, 247, 0.92);
  --surface-strong: #fffdfa;
  --text: #151311;
  --muted: #655c54;
  --line: rgba(31, 24, 20, 0.12);
  --accent: #151515;
  --accent-strong: #9f2a19;
  --focus: #cf4327;
  --hero: #0c0f14;
  --hero-text: #f9f7f2;
  --shadow: 0 22px 54px rgba(18, 14, 10, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top, #fff8ef 0, #f4efe7 36%, #ece3d7 100%);
  color: var(--text);
  font-family: "Avenir Next", "Helvetica Neue", "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: var(--accent-strong);
}

a:focus-visible,
button:focus-visible,
audio:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.site {
  width: min(100% - 2rem, 1120px);
  margin: 0 auto;
  padding: 1.25rem 0 3rem;
}

.site-header,
.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.site-header {
  padding: 0.75rem 0 1.5rem;
}

.site-footer {
  margin-top: 3rem;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 3.4rem;
  height: 3.4rem;
  flex: none;
  border-radius: 999px;
  object-fit: cover;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(18, 14, 10, 0.12);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nav a {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

main {
  display: grid;
  gap: 2rem;
}

.hero-home,
.page-hero {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--hero);
  color: var(--hero-text);
  box-shadow: var(--shadow);
}

.hero-home::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(110deg, rgba(8, 9, 13, 0.88) 0, rgba(8, 9, 13, 0.72) 40%, rgba(8, 9, 13, 0.42) 100%),
    var(--hero-image);
  background-position: center;
  background-size: cover;
}

.hero-home::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 8rem;
  background: linear-gradient(180deg, rgba(8, 9, 13, 0), rgba(8, 9, 13, 0.38));
}

.hero-home {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 20rem);
  gap: 2rem;
  align-items: end;
  min-height: 31rem;
  padding: clamp(1.5rem, 3vw, 3rem);
}

.hero-home__copy,
.hero-home__cover,
.page-hero__content {
  position: relative;
  z-index: 1;
}

.hero-home__copy {
  max-width: 40rem;
}

.hero-home__cover {
  width: min(100%, 20rem);
  justify-self: end;
}

.cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.34);
}

.page-hero {
  padding: clamp(1.5rem, 2.8vw, 2.25rem);
}

.page-hero__content {
  max-width: 44rem;
}

.page-hero--episode {
  margin-bottom: 0;
}

.eyebrow {
  margin: 0 0 0.6rem;
  color: rgba(249, 247, 242, 0.74);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.45rem, 5vw, 4.9rem);
}

h2 {
  margin: 0;
  font-size: clamp(1.6rem, 2vw, 2rem);
}

h3 {
  margin: 0;
  font-size: 1.28rem;
}

.lead {
  max-width: 42rem;
  margin: 0;
  color: rgba(249, 247, 242, 0.86);
  font-size: 1.12rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  min-height: 2.85rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #ffffff;
  color: #111111;
  padding: 0.7rem 1.1rem;
  font-weight: 800;
  text-decoration: none;
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: var(--hero-text);
}

section[aria-labelledby="latest-episodes"] {
  display: grid;
  gap: 1rem;
}

.subscribe-section {
  display: grid;
  gap: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  padding: 1.25rem 1.35rem;
  box-shadow: 0 12px 28px rgba(18, 14, 10, 0.06);
}

.subscribe-section h2 {
  font-size: 1.35rem;
}

.subscribe-widget {
  min-height: 3rem;
}

.subscribe-note,
.subscribe-fallback {
  margin: 0;
}

.subscribe-fallback-link {
  font-weight: 700;
}

.subscribe-cta {
  display: grid;
  gap: 0.45rem;
}

.actions .subscribe-cta {
  align-content: start;
}

.subscribe-cta--hero .subscribe-fallback-link {
  color: rgba(249, 247, 242, 0.92);
}

.subscribe-cta--episode .subscribe-fallback-link {
  color: var(--muted);
}

.episode-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.episode-card {
  display: grid;
  gap: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  padding: 1.25rem 1.35rem;
  box-shadow: 0 12px 28px rgba(18, 14, 10, 0.06);
}

.episode-card h3 a {
  color: var(--text);
  text-decoration: none;
}

.meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.episode-card p:last-child,
.episode-body p:last-child {
  margin-bottom: 0;
}

.episode-page {
  width: min(100%, 760px);
}

.episode-body {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 1.5rem;
  box-shadow: 0 14px 30px rgba(18, 14, 10, 0.08);
}

.episode-artwork {
  display: block;
  width: min(100%, 32rem);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  margin: 0 0 1rem;
}

.episode-backlinks {
  color: var(--muted);
}

.episode-subscribe {
  margin-top: 1.1rem;
}

.episode-shownotes {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.7rem;
}

.episode-shownotes h2,
.episode-shownotes h3,
.episode-shownotes h4 {
  margin: 0;
}

.episode-shownotes p,
.episode-shownotes ul,
.episode-shownotes ol {
  margin: 0;
}

.episode-shownotes ul,
.episode-shownotes ol {
  padding-left: 1.2rem;
}

audio {
  width: 100%;
  margin: 0 0 1rem;
}

@media (max-width: 760px) {
  .site {
    width: min(100% - 1rem, 1120px);
  }

  .site-header {
    padding-top: 0.35rem;
  }

  .brand-subtitle {
    letter-spacing: 0.08em;
  }

  .hero-home {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-home__cover {
    width: min(100%, 14rem);
    justify-self: start;
  }

  .page-hero,
  .episode-body {
    padding: 1.2rem;
  }

  .episode-list {
    grid-template-columns: 1fr;
  }
}
