:root {
  --ink: #111111;
  --paper: #fff7df;
  --dot: rgba(95, 85, 68, 0.16);
  --muted: #5f5544;
  --line: #ddc98b;
  --accent: #2f69de;
  --cover-blue: #4596ef;
  --cover-yellow: #f5b348;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--paper);
  background-image: radial-gradient(circle, var(--dot) 1px, transparent 1px);
  background-size: 18px 18px;
  background-attachment: fixed;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
p, h1, h2 { margin-top: 0; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 10;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-150%);
}

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

header,
main,
footer {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

header {
  height: 64px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.14rem;
  font-weight: 700;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.brand-square,
.brand-circle {
  width: 13px;
  height: 13px;
  border: 2px solid var(--ink);
  box-sizing: border-box;
}

.brand-square { background: var(--cover-yellow); border: 0; }
.brand-circle { background: transparent; border-radius: 50%; }
.brand-triangle {
  width: 0;
  height: 0;
  border-right: 8px solid transparent;
  border-bottom: 14px solid var(--cover-blue);
  border-left: 8px solid transparent;
}

.support-button {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  max-height: 63px;
  zoom: 0.5;
}

footer a { transition: color 150ms ease; }
footer a:hover, footer a:focus-visible { color: var(--accent); }

.hero {
  min-height: 0;
  padding: 32px 0;
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(20px, 3vw, 39px);
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.hero-cover {
  width: min(100%, 330px);
  margin: 0;
}

.hero-cover img {
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid var(--ink);
}

.hero-copy { min-width: 0; }

.kicker {
  margin-bottom: 18px;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(3.2rem, 5.8vw, 5.5rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
  font-weight: 650;
}

h1 em {
  color: var(--cover-blue);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.hero-title-break-mobile { display: none; }

.hero-copy > p:last-child {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.info-section {
  padding: 28px 0;
  display: grid;
  grid-template-columns: 42px minmax(190px, 0.5fr) 1.5fr;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}

.section-shape {
  display: block;
  align-self: start;
  margin-top: 6px;
}

.section-shape-square,
.section-shape-circle {
  width: 24px;
  height: 24px;
}

.section-shape-square { background: var(--cover-yellow); }

.section-shape-triangle {
  width: 0;
  height: 0;
  border-right: 13px solid transparent;
  border-bottom: 23px solid var(--cover-blue);
  border-left: 13px solid transparent;
}

.section-shape-circle {
  border: 3px solid var(--ink);
  border-radius: 50%;
}

.info-section h2 {
  margin-bottom: 0;
  font-size: clamp(1.12rem, 1.76vw, 1.6rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.info-section > div { max-width: none; }
.info-section > div p { margin-bottom: 8px; color: var(--muted); }
.info-section > div p:last-child { margin-bottom: 0; }
.author-link { color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.author-link:hover, .author-link:focus-visible { color: var(--ink); }

.listen-section {
  padding: 18px 0 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.listen-cta {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
}

.platform-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.platform-links a,
.platform-links button {
  display: inline-flex;
  transition: opacity 150ms ease;
}

.platform-links a:hover,
.platform-links a:focus-visible,
.platform-links button:hover,
.platform-links button:focus-visible { opacity: 0.78; }

.rss-feed-badge {
  position: relative;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.rss-feed-badge::after {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  z-index: 1;
  padding: 3px 7px;
  border-radius: 4px;
  background: var(--ink);
  color: var(--paper);
  content: "Copied!";
  font-size: 0.7rem;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity 150ms ease;
}

.rss-feed-badge.is-copied::after { opacity: 1; }

.platform-links img {
  display: block;
  height: 52px;
  width: auto;
}

.episodes-section {
  padding: 34px 0 36px;
  border-bottom: 1px solid var(--line);
}

.episodes-heading {
  margin-bottom: 22px;
}

.episodes-heading h2 {
  margin-bottom: 4px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.episodes-list {
  display: grid;
  border-top: 1px dashed var(--line);
}

.episode-card {
  padding: 18px 0;
  display: grid;
  grid-template-columns: 135px minmax(0, 1fr) auto;
  gap: 28px;
  align-items: start;
  border-bottom: 1px dashed var(--line);
}

.episode-card:hover .episode-content h3,
.episode-card:focus-visible .episode-content h3 { color: var(--accent); }

.episode-card:last-child { border-bottom: 0; }

.episode-meta {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;
  letter-spacing: 0.025em;
}

.episode-date {
  font-size: 0.9rem;
  line-height: 1.25;
}

.episode-duration {
  align-self: flex-start;
  padding: 2px 7px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.3;
  text-transform: uppercase;
}

.episode-content h3 {
  margin: 0 0 7px;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  transition: color 150ms ease;
}

.episode-content p {
  margin-bottom: 0;
  color: var(--muted);
}

.episode-action {
  padding-top: 1px;
  font-size: 1rem;
  font-weight: 700;
}

.episode-action::after {
  content: " →";
}

.episodes-status {
  margin: 0;
  padding: 18px 0;
  color: var(--muted);
}

.episodes-fallback-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.episodes-fallback-link:hover,
.episodes-fallback-link:focus-visible { color: var(--ink); }

footer {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 0.74rem;
}

footer p { margin-bottom: 0; }
.legal { max-width: 560px; margin-left: auto; font-size: 0.62rem; line-height: 1.35; text-align: right; }
a:focus-visible,
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (max-width: 760px) {
  header, main, footer { width: min(calc(100% - 56px), var(--max)); }
  .hero { padding: 18px 0 24px; grid-template-columns: 1fr; gap: 26px; }
  .hero-cover { width: min(68vw, 280px); margin-inline: auto; }
  h1 {
    font-size: clamp(1.4rem, 6.6vw, 2rem);
    white-space: nowrap;
  }
  h1 em { white-space: nowrap; }
  .hero-title-break-mobile { display: initial; }
  .hero-title-break-desktop { display: none; }
  .info-section {
    grid-template-columns: 32px minmax(0, 1fr);
    column-gap: 8px;
    row-gap: 9px;
    align-items: center;
    padding: 24px 0;
  }
  .section-shape {
    align-self: center;
    justify-self: center;
    margin-top: 0;
  }
  .section-shape-square,
  .section-shape-circle {
    width: 20px;
    height: 20px;
  }
  .section-shape-triangle {
    border-right-width: 11px;
    border-bottom-width: 19px;
    border-left-width: 11px;
  }
  .info-section > div { grid-column: 2; }
  .listen-section { padding: 18px 0 24px; }
  .platform-links {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .platform-links a,
  .platform-links button { min-width: 0; justify-content: center; }
  .platform-links > :last-child:nth-child(odd) {
    width: calc(50% - 5px);
    grid-column: 1 / -1;
    justify-self: center;
  }
  .platform-links img {
    width: auto;
    height: 40px;
    max-width: 100%;
    object-fit: contain;
  }
  .platform-links .youtube-badge {
    width: fit-content;
    justify-self: center;
  }
  .platform-links .youtube-badge img {
    width: auto;
    height: 40px;
  }
  .episodes-section { padding: 28px 0 30px; }
  .episodes-heading { margin-bottom: 18px; }
  .episode-card {
    grid-template-columns: 1fr auto;
    gap: 8px 18px;
  }
  .episode-meta {
    grid-column: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }
  .episode-date,
  .episode-duration { white-space: nowrap; }
  .episode-content { grid-column: 1 / -1; grid-row: 2; }
  .episode-action { grid-column: 2; grid-row: 1; }
}

@media (max-width: 560px) {
  .brand > span:last-child { display: none; }
}

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