:root {
  --content-width: 1040px;
  --text: #333;
  --muted: #767676;
  --link: #222;
  --link-hover: #00a0d2;
  --border: #ebebeb;
  --nav-bg: #1f1f1f;
  --panel: #f8f8f8;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: "Libre Franklin", "Helvetica Neue", helvetica, arial, sans-serif;
  font-size: 0.98rem;
  line-height: 1.68;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--link-hover);
}

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

.wrap {
  width: min(var(--content-width), calc(100% - 2.5rem));
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid #eee;
}

.site-branding {
  padding: 2.6rem 0 0.65rem;
}

.site-branding .wrap {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
}

.site-branding-logo {
  display: inline-block;
  flex: 0 0 auto;
}

.site-branding-logo img {
  width: 86px;
  height: 86px;
  border-radius: 2px;
}

.site-branding-text {
  min-width: 0;
}

.site-title {
  margin: 0;
  font-size: 2.15rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.site-title a {
  color: #111;
}

.site-description {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.navigation-top {
  background: var(--nav-bg);
  border-top: 1px solid #2f2f2f;
  border-bottom: 1px solid #2f2f2f;
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.menu-subscribe-label {
  color: #fff;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.main-navigation .menu {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

.main-navigation .menu-item a {
  display: block;
  padding: 0.9rem 0.85rem;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.main-navigation .menu-item a:hover,
.main-navigation .menu-item a:focus-visible {
  color: #b9e9ff;
}

.site-content {
  padding: 2.1rem 0 2.8rem;
}

.content-area {
  float: left;
  width: 68%;
  padding-right: 2.3rem;
}

.widget-area {
  float: right;
  width: 32%;
}

.site-content .wrap::after {
  content: "";
  display: block;
  clear: both;
}

.page-header {
  margin: 0 0 1.3rem;
  border-bottom: 1px solid var(--border);
}

.page-title {
  margin: 0 0 0.9rem;
  font-size: 1.58rem;
  font-weight: 700;
}

.post,
.episode,
.archive-year,
.section.not-found {
  margin: 0 0 2rem;
}

.post:not(:last-child) {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.8rem;
}

.entry-meta {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.entry-title {
  margin: 0 0 0.9rem;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.25;
}

.entry-content p:first-child {
  margin-top: 0;
}

.archive-link {
  margin-top: 1.4rem;
  font-weight: 600;
}

.widget {
  margin-bottom: 1.65rem;
  padding: 1.05rem 1.2rem 1.1rem;
  background: var(--panel);
  border: 1px solid var(--border);
}

.widget-title {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.widget li {
  margin: 0;
  padding: 0.38rem 0;
  border-bottom: 1px solid #ececec;
}

.widget li:last-child {
  border-bottom: 0;
}

.section > h1,
.episode h1 {
  margin: 0.25rem 0 0.45rem;
  font-size: 1.78rem;
  line-height: 1.2;
}

.eyebrow,
.section__meta,
.episode-header__meta,
.breadcrumb,
.archive-item__meta {
  color: var(--muted);
  font-size: 0.88rem;
}

.search {
  display: grid;
  gap: 0.4rem;
  margin: 1rem 0 0.8rem;
  max-width: 34rem;
}

.search input {
  width: 100%;
  padding: 0.72rem 0.85rem;
  border: 1px solid #cfcfcf;
  font: inherit;
}

.archive-list {
  display: grid;
  gap: 0.7rem;
}

.archive-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--border);
}

.archive-item h3 {
  margin: 0 0 0.38rem;
  font-size: 1.04rem;
}

.archive-item p {
  margin: 0.25rem 0 0.4rem;
}

.archive-item__number {
  font-weight: 800;
  color: var(--muted);
}

.player-card {
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid var(--border);
  background: #fafafa;
}

.player-card audio {
  width: 100%;
}

.player-card__actions,
.episode-nav {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.player-card__actions {
  margin-top: 0.75rem;
}

.button {
  display: inline-block;
  border: 1px solid #3f3f3f;
  background: #1f1f1f;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 0.46rem 0.7rem;
}

.button:hover,
.button:focus-visible {
  color: #fff;
  background: #0f0f0f;
}

.button--secondary {
  border-color: #bcbcbc;
  background: #fff;
  color: #333;
}

.button--secondary:hover,
.button--secondary:focus-visible {
  color: #222;
  background: #f6f6f6;
}

.episode .prose {
  margin-top: 1rem;
}

.episode .prose h2,
.episode .prose h3,
.episode .prose h4 {
  margin: 1.2rem 0 0.45rem;
}

.video-embed {
  margin: 0.9rem 0 1rem;
}

.video-embed iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.episode-nav {
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.35rem 0 2rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .content-area,
  .widget-area {
    float: none;
    width: 100%;
    padding-right: 0;
  }

  .widget-area {
    margin-top: 1.4rem;
  }
}

@media (max-width: 720px) {
  .wrap {
    width: min(var(--content-width), calc(100% - 1.35rem));
  }

  .site-branding {
    padding-top: 1.9rem;
  }

  .site-branding .wrap {
    gap: 0.8rem;
  }

  .site-branding-logo img {
    width: 70px;
    height: 70px;
  }

  .site-title {
    font-size: 1.82rem;
  }

  .main-navigation {
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 0.45rem 0;
  }

  .menu-subscribe-label {
    padding: 0.28rem 0.58rem 0;
  }

  .main-navigation .menu-item a {
    padding: 0.6rem 0.58rem;
    font-size: 0.8rem;
  }

  .entry-title,
  .section > h1,
  .episode h1 {
    font-size: 1.36rem;
  }

  .archive-item {
    grid-template-columns: 1fr;
  }
}
