:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --text: #1e1e1e;
  --muted: #6b6b6b;
  --green: #2f5d50;
  --green-dark: #244840;
  --tan: #d6c7a1;
  --terracotta: #c86a3b;
  --border: #e6e0d4;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(0,0,0,0.06);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }

.wrap,
.site-main,
.container {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}
.site-main { padding: 2rem 0 4rem; }

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
}
.site-brand img {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  object-fit: cover;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: #fff;
  border-radius: 8px;
  padding: .85rem 1.2rem;
  font-weight: 600;
}
.button:hover { background: var(--green-dark); color: #fff; }
.button--secondary {
  background: transparent;
  color: var(--green);
  border: 1px solid var(--green);
}
.button--small {
  padding: .6rem .95rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 2rem;
  align-items: start;
  padding: 2rem 0 1rem;
}
.hero__content,
.hero__featured,
.featured-card,
.simple-card,
.episode-card,
.guest-card,
.newsletter-box,
.page-template,
.post-template,
.guest-profile,
.site-footer {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero__content,
.hero__featured,
.newsletter-box,
.page-template,
.post-template,
.guest-profile {
  padding: 1.5rem;
}
.hero__content h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.1;
  margin: .25rem 0 1rem;
}
.hero__lede { font-size: 1.1rem; color: var(--muted); max-width: 60ch; }
.hero__actions { display: flex; gap: .85rem; flex-wrap: wrap; margin-top: 1rem; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .8rem;
  color: var(--terracotta);
  font-weight: 700;
  margin: 0 0 .4rem;
}

.section { margin-top: 2rem; }
.section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.section__head h1,
.section__head h2,
.section h1,
.section h2,
.post-template h1,
.page-template h1,
.guest-profile h1 {
  line-height: 1.15;
  margin: 0;
}
.card-grid {
  display: grid;
  gap: 1.25rem;
}
.card-grid--episodes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid--guests { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.episode-card,
.guest-card,
.simple-card,
.featured-card {
  overflow: hidden;
}
.episode-card__body,
.guest-card__body,
.simple-card,
.featured-card {
  padding: 1rem;
}
.episode-card__image,
.guest-card__image,
.featured-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.guest-card__image { aspect-ratio: 1 / 1; }
.episode-number {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--terracotta);
  font-weight: 700;
  margin: 0 0 .45rem;
}
.meta-icons {
  color: var(--muted);
  font-size: .95rem;
  min-height: 1.2rem;
  margin-bottom: .55rem;
}
.text-link {
  font-weight: 700;
}

.post-template__image,
.page-template__image {
  width: 100%;
  border-radius: 10px;
  margin: 1rem 0 1rem;
}
.post-template__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.guest-profile__header {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  align-items: start;
}
.guest-profile__media img {
  width: 100%;
  border-radius: 12px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.rte > *:first-child { margin-top: 0; }
.rte > *:last-child { margin-bottom: 0; }

.species-grid {
  display: grid;
  gap: 1.25rem;
}

.newsletter-box {
  text-align: center;
}

.site-footer {
  width: min(1180px, calc(100% - 2rem));
  margin: 3rem auto 2rem;
  padding: 1.5rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 1.5rem;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: .5rem 0 0;
}
.site-footer li + li { margin-top: .35rem; }

.kg-width-wide {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.kg-width-full {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

@media (max-width: 980px) {
  .hero,
  .guest-profile__header {
    grid-template-columns: 1fr;
  }
  .card-grid--episodes,
  .card-grid--guests,
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .site-header__inner,
  .section__head {
    display: block;
  }
  .site-nav {
    margin-top: .75rem;
  }
  .card-grid--episodes,
  .card-grid--guests,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}
