:root {
  --background: #fff;
  --text: #575757;
  --green: #016f54;
  --green-active: #059974;
  --nav: #404040;
  --muted: #a1a1a1;
  --line: #bdbdbd;
  --content-width: 780px;
  --gutter: 34px;
  --body-font: "clarendon-text-pro", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --display-font: "brandon-grotesque", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--body-font);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.8;
}

a {
  color: #111;
  text-decoration: none;
}

a:hover {
  color: var(--green);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--green-active);
  outline-offset: 4px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  color: var(--text);
}

h1 {
  font-family: var(--display-font);
  font-size: 2.25em;
  font-weight: 500;
  line-height: 1.2;
}

h2 {
  font-family: var(--body-font);
  font-size: 1.5em;
  font-weight: 400;
  line-height: 1.35;
}

h3 {
  font-family: var(--display-font);
  font-size: 0.9em;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-transform: uppercase;
}

p {
  margin: 0 0 1em;
}

hr {
  clear: both;
  margin: 35px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.site-shell {
  width: min(calc(100% - 40px), var(--content-width));
  margin-inline: auto;
}

.site-header {
  padding-top: 50px;
}

.site-header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.site-brand {
  text-align: center;
}

.site-brand-name {
  display: inline-block;
  color: var(--green);
  font-family: var(--display-font);
  font-size: 2.6em;
  font-weight: 900;
  letter-spacing: 0.0652em;
  line-height: 1.2;
  text-transform: uppercase;
}

.site-brand-tagline {
  display: block;
  margin-top: 0.7em;
  color: var(--muted);
  font-family: var(--body-font);
  font-size: 1.2em;
  line-height: 1.3;
}

.menu-toggle {
  display: none;
}

.site-nav {
  position: relative;
  z-index: 20;
  margin-top: 20px;
  line-height: 0;
}

.site-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list {
  display: flex;
  justify-content: center;
  gap: 45px;
}

.nav-list > li {
  position: relative;
}

.site-nav a {
  display: inline-block;
  color: var(--nav);
  font-family: var(--display-font);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.6;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--green-active);
}

.subnav {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  min-width: 230px;
  padding: 8px 20px 10px !important;
  transform: translateX(-50%);
  background: #fff;
  box-shadow: 0 0 15px rgb(0 0 0 / 20%);
  text-align: center;
}

.nav-folder:hover > .subnav,
.nav-folder:focus-within > .subnav {
  display: block;
}

.subnav li {
  white-space: nowrap;
}

.subnav a {
  display: block;
  font-size: 14px;
  letter-spacing: 0.08em;
  line-height: 2.05;
}

.page-main {
  padding: 60px 0 48px;
}

.page-main a {
  border-bottom: 1px solid rgb(17 17 17 / 25%);
}

.page-main a:hover {
  border-bottom-color: transparent;
}

.page-main h1 a,
.page-main h2 a,
.page-main h3 a,
.page-main figure a,
.read-more-link {
  border-bottom: 0;
}

/* Home */

.home-intro {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gutter);
  align-items: start;
}

.home-intro h1 a,
.episode-row h1 a,
.guest-summary-item h3 a {
  color: var(--green);
}

.home-intro h1 a:hover,
.episode-row h1 a:hover,
.guest-summary-item h3 a:hover {
  color: #111;
}

.home-intro p,
.home-intro h3,
.home-intro figure {
  margin: 0;
}

.home-intro h3 {
  margin-top: 1.2rem;
}

.home-intro .cover-art {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.home-intro + hr {
  margin: 35px 0 52px;
}

.home-episodes {
  display: grid;
}

.episode-row {
  display: grid;
  grid-template-columns: calc(41.6667% - 19.833px) minmax(0, 1fr);
  gap: var(--gutter);
  align-items: start;
}

.episode-row + .episode-row {
  margin-top: 61px;
  padding-top: 61px;
  border-top: 1px solid var(--line);
}

.episode-row img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.episode-row h3 {
  margin-top: 0.8rem;
}

.guest-summary {
  clear: both;
  margin-top: 70px;
}

.guest-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 20px;
}

.guest-summary-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.guest-summary-item h3 {
  margin: 10px 0 6px;
  font-size: 1.12rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: none;
}

.guest-summary-item p {
  margin: 0;
  font-size: 0.9em;
  line-height: 1.5;
}

.guest-directory {
  margin-top: 0;
}

/* Episode archive */

.episode-list-page .entry-item {
  margin-bottom: 76px;
}

.episode-list-page .entry-item:last-child {
  margin-bottom: 0;
}

.entry-title {
  margin-bottom: 0.2em;
}

.entry-title a {
  color: var(--text);
}

.entry-title a:hover {
  color: var(--green);
}

.entry-date {
  margin: 0 0 1.3rem;
  color: var(--muted);
  font-family: var(--body-font);
  font-size: 1em;
  letter-spacing: 0;
  text-transform: none;
}

.entry-excerpt {
  margin-bottom: 1rem;
}

.read-more-link {
  color: #111;
  font-family: var(--body-font);
  font-size: 1em;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

/* Article, episode, and profile pages */

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.page-intro {
  margin: 0;
}

.page-intro h1 {
  margin-bottom: 0.5em;
}

.episode-page .page-intro h1 {
  margin-bottom: 0.2em;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-family: var(--display-font);
  font-size: 0.75em;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.episode-meta {
  display: flex;
  gap: 1rem;
  margin: 0;
  color: #b3b3b3;
  font-size: 0.9em;
}

.audio-player {
  position: relative;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  min-height: 66.4px;
  margin-top: 21.6px;
  overflow: hidden;
  background: #171717;
  color: #fff;
}

.audio-toggle {
  position: relative;
  border: 0;
  border-right: 1px solid #353535;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.audio-toggle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #f2f2f2;
  transform: translate(-38%, -50%);
}

.audio-player.is-playing .audio-toggle::before {
  width: 13px;
  height: 18px;
  border: 0;
  border-right: 5px solid #f2f2f2;
  border-left: 5px solid #f2f2f2;
  transform: translate(-50%, -50%);
}

.audio-copy {
  display: flex;
  min-width: 0;
  padding: 10px 15px 12px;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
}

.audio-title {
  overflow: hidden;
  font-size: 0.9em;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audio-author,
.audio-elapsed {
  color: #b7b7b7;
  font-size: 0.72em;
}

.audio-download {
  display: flex;
  align-items: center;
  padding: 0 16px;
  border: 0 !important;
  color: #b7b7b7;
  font-size: 0.75em;
}

.audio-download:hover {
  color: #fff;
}

.audio-progress {
  position: absolute;
  right: 108px;
  bottom: 3px;
  left: 75px;
  width: auto;
  height: 2px;
  margin: 0;
  opacity: 0;
  accent-color: #fff;
  transition: opacity 120ms ease;
}

.audio-player:hover .audio-progress,
.audio-player:focus-within .audio-progress {
  opacity: 0.65;
}

.audio-elapsed {
  display: none;
}

.rich-content {
  margin-top: var(--gutter);
}

.rich-content::after {
  content: "";
  display: table;
  clear: both;
}

.rich-content h1,
.rich-content h2,
.rich-content h3 {
  margin-top: 1.2em;
}

.rich-content > h1:first-child,
.rich-content > h2:first-child,
.rich-content > h3:first-child {
  margin-top: 0;
}

.rich-content ul,
.rich-content ol {
  padding-left: 1.35rem;
}

.rich-content li {
  margin-bottom: 0.35rem;
}

.rich-content figure {
  margin: var(--gutter) 0;
}

.rich-content figure img {
  width: 100%;
  margin: 0;
}

.rich-content figcaption {
  margin-top: 8px;
  color: #777;
  font-size: 0.8em;
  line-height: 1.5;
}

.guest-page .rich-content > figure:first-child,
.about-page .rich-content > figure:first-child {
  float: right;
  width: calc(50% - 17px);
  margin: 0 0 var(--gutter) var(--gutter);
}

/* Transcript images keep the original column allocation and native-size cap. */
.rich-content .article-image img,
.rich-content .article-image figcaption {
  max-width: var(--image-max-width);
  margin-inline: auto;
}

.rich-content .article-image figcaption p {
  margin-bottom: 0;
}

.rich-content .image-span-2 { --image-columns: 2; }
.rich-content .image-span-4 { --image-columns: 4; }
.rich-content .image-span-5 { --image-columns: 5; }
.rich-content .image-span-6 { --image-columns: 6; }
.rich-content .image-span-7 { --image-columns: 7; }

.rich-content .image-left,
.rich-content .image-right {
  width: calc((100% + var(--gutter)) * var(--image-columns) / 12 - var(--gutter));
  margin-top: 0;
}

.rich-content .image-right {
  float: right;
  margin-left: var(--gutter);
}

.rich-content .image-left {
  float: left;
  margin-right: var(--gutter);
}

.rich-content .image-left + :is(h1, h2, h3),
.rich-content .image-right + :is(h1, h2, h3) {
  margin-top: 0;
}

.rich-content > .article-image:not(.image-left):not(.image-right),
.rich-content > .gallery-grid {
  clear: both;
}

.about-page .rich-content > figure:nth-of-type(2) {
  float: left;
  width: calc(25% - 25.5px);
  margin: 51.6px var(--gutter) var(--gutter) 0;
}

.about-page .rich-content > figure:nth-of-type(2) + h1 {
  margin-top: 0;
  padding-top: 51.6px;
}

.note {
  color: #777;
  font-size: 0.9rem;
}

.episode-list {
  display: grid;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.featured-entry h3 {
  margin: 0 0 10px;
  font-family: var(--display-font);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 24px;
  text-transform: none;
}

.featured-entry h3 a {
  color: var(--green);
}

.featured-entry p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.4;
}

.featured-entry .read-more-link {
  font-size: 14px;
  line-height: 1.4;
}

.guest-page .rich-content > hr {
  margin: 52px 0;
}

.guest-page .episode-list {
  gap: 17px;
  margin-top: 34px;
  padding-left: 0;
}

.guest-page .episode-list > li {
  margin: 0;
}

.guest-page .featured-entry {
  width: 70%;
}

.guest-page .rich-content > figure:first-child {
  margin-bottom: 52px;
}

.mini-card a {
  border-bottom: 0;
}

.mini-card .note {
  display: block;
  margin-top: 0.2rem;
}

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

.gallery-grid figure {
  margin: 0;
}

.site-footer {
  clear: both;
  padding: 40px 0 52px;
}

.site-footer h3 {
  margin: 0;
  text-align: center;
}

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

.redirect-card {
  padding: 1rem 0;
}

@media (max-width: 800px) {
  .site-header {
    padding-top: 18px;
  }

  .menu-toggle {
    display: block;
    order: -2;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--nav);
    font-family: var(--display-font);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1.4;
    text-transform: uppercase;
    cursor: pointer;
  }

  .menu-toggle-label::after {
    content: "";
  }

  .site-brand {
    margin-top: 46px;
  }

  .site-nav {
    display: none;
    width: 100%;
    margin-top: 24px;
  }

  .menu-is-open .site-nav {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    gap: 6px;
    align-items: center;
  }

  .subnav,
  .nav-folder:hover > .subnav,
  .nav-folder:focus-within > .subnav {
    display: none;
  }

  .page-main {
    padding-top: 60px;
  }

  .home-intro,
  .episode-row {
    grid-template-columns: 1fr;
  }

  .home-intro + hr {
    margin-top: var(--gutter);
  }

  .episode-row + .episode-row {
    margin-top: 40px;
    padding-top: 40px;
  }

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

  .rich-content .image-left,
  .rich-content .image-right,
  .guest-page .rich-content > figure:first-child,
  .about-page .rich-content > figure:first-child {
    float: none;
    width: 100%;
    margin: 0 0 var(--gutter);
  }

  .guest-page .featured-entry {
    width: 100%;
  }

  .about-page .rich-content > figure:nth-of-type(2) {
    width: calc(33.333% - 22.667px);
  }
}

@media (max-width: 560px) {
  .site-shell {
    width: min(calc(100% - 28px), var(--content-width));
  }

  .site-brand-name {
    font-size: clamp(2rem, 11vw, 2.6em);
  }

  .site-brand-tagline {
    font-size: 1.05em;
  }

  h1 {
    font-size: 2em;
  }

  .guest-summary-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .audio-player {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .audio-download {
    display: none;
  }

  .audio-progress {
    right: 15px;
    left: 69px;
  }

  .about-page .rich-content > figure:nth-of-type(2) {
    float: none;
    width: min(50%, 170px);
    margin: 0 0 var(--gutter);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
