:root {
  --page: #f4f6f9;
  --surface: #ffffff;
  --surface-2: #edf2f8;
  --ink: #14253e;
  --white: #ffffff;
  --muted: #697486;
  --line: #d5dce5;
  --red: #d74848;
  --blue: #4383e6;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { max-width: 100%; overflow-x: clip; scroll-behavior: smooth; }
body {
  margin: 0;
  max-width: 100%;
  overflow-x: clip;
  border-top: 4px solid transparent;
  border-image: linear-gradient(90deg, var(--red) 0 33%, var(--white) 33% 66%, var(--blue) 66%) 1;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}
a { color: inherit; text-underline-offset: .2em; }
img { display: block; max-width: 100%; }
.skip-link { position: fixed; top: -5rem; left: 1rem; z-index: 20; padding: .7rem 1rem; background: var(--ink); color: var(--white); }
.skip-link:focus { top: 1rem; }

.site-header,
main,
footer {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  min-height: 78px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
  isolation: isolate;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  border-bottom: 1px solid var(--ink);
  background: rgba(244, 246, 249, .94);
  backdrop-filter: blur(16px);
}
.wordmark { display: inline-flex; align-items: center; gap: .72rem; font-family: var(--serif); font-size: 1.16rem; font-weight: 650; letter-spacing: -.02em; text-decoration: none; }
.brand-mark { width: 40px; height: 32px; object-fit: contain; }
nav { display: flex; align-items: center; gap: .45rem; font-size: .9rem; }
nav a { padding: .5rem .8rem; text-decoration: none; color: #526074; }
nav a:hover { color: var(--red); }
nav a:last-child { margin-left: .4rem; border: 1px solid var(--ink); color: var(--ink); font-weight: 700; }
nav a:last-child:hover { background: var(--ink); color: var(--white); }

.intro {
  min-height: 660px;
  padding: clamp(4.25rem, 7vw, 6.5rem) 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .82fr);
  gap: clamp(4rem, 9vw, 8rem);
  align-items: center;
  border-bottom: 1px solid var(--ink);
  position: relative;
  isolation: isolate;
}
.intro::before {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  background:
    radial-gradient(circle at 10% 32%, rgba(215,72,72,.18), transparent 32%),
    radial-gradient(circle at 88% 46%, rgba(67,131,230,.18), transparent 34%),
    linear-gradient(112deg, rgba(255,255,255,.5), transparent 48%);
}
h1, h2 { margin: 0; font-family: var(--serif); }
h1 { max-width: 760px; font-size: clamp(4.8rem, 9vw, 8.5rem); line-height: .88; font-weight: 650; letter-spacing: -.035em; }
h2 { letter-spacing: -.012em; }
.dek { max-width: 600px; margin: 2rem 0 0; color: #4f5d70; font-size: clamp(1.1rem, 1.7vw, 1.4rem); line-height: 1.55; }
.intro-links { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.5rem; margin-top: 2.2rem; font-size: .92rem; }
.primary-link { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.2rem; border: 1px solid var(--ink); background: var(--ink); color: var(--white); text-decoration: none; font-weight: 750; }
.primary-link:hover { background: #28476e; }
.intro-links > a:not(.primary-link) { color: #4f5d70; }

.cover { margin: 0; }
.cover img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border: 1px solid var(--ink); filter: grayscale(1) contrast(1.09); }
figcaption { margin-top: .75rem; padding-top: .55rem; border-top: 4px solid var(--red); color: var(--ink); font-family: var(--serif); font-size: .92rem; font-style: italic; }

.latest {
  margin-bottom: clamp(6rem, 11vw, 10rem);
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
}
.section-heading { padding: 1.1rem 1.5rem; display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid rgba(255,255,255,.3); color: #c9d2df; font-size: .82rem; }
.section-heading p { margin: 0; }
.latest-body { max-width: 980px; padding: clamp(3rem, 5.5vw, 5rem) clamp(1.5rem, 6vw, 5rem); }
.episode-no { margin: 0 0 1.25rem; color: #aebed1; font-size: .86rem; }
.latest h2 { max-width: 920px; font-size: clamp(3rem, 6vw, 5.8rem); line-height: 1; }
.primary-link.light { margin-top: 2.5rem; border-color: var(--white); background: var(--white); color: var(--ink); }
.primary-link.light:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }

.archive { padding-bottom: clamp(6rem, 11vw, 10rem); }
.archive-intro { display: flex; align-items: baseline; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.archive-intro h2, .about h2, .listen h2 { font-size: clamp(2.8rem, 5.6vw, 5.4rem); line-height: 1.06; }
.episode-list { margin: 0; padding: 0; border-top: 2px solid var(--ink); list-style: none; }
.episode-list li { border-bottom: 1px solid var(--line); }
.episode-list a {
  min-height: 104px;
  padding: .8rem 0;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 130px 64px;
  gap: 1rem;
  align-items: center;
  text-decoration: none;
  transition: background .18s ease, padding .18s ease;
}
.episode-list a:hover { padding-inline: .8rem; background: var(--surface-2); }
.episode-number { color: var(--red); font-size: .82rem; }
.episode-title { max-width: 760px; font-family: var(--serif); font-size: clamp(1.35rem, 2.4vw, 2rem); font-weight: 700; line-height: 1.2; letter-spacing: -.008em; }
.episode-date, .episode-length { color: var(--muted); font-size: .78rem; }
.episode-length { text-align: right; }

.about { padding: clamp(5rem, 9vw, 8rem) 0; display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(3rem, 8vw, 8rem); border-top: 8px solid var(--blue); border-bottom: 1px solid var(--ink); color: var(--ink); }
.about-copy { max-width: 680px; }
.about-copy p { margin: 0 0 1.35rem; color: #2a3442; font-size: clamp(1.16rem, 1.8vw, 1.42rem); line-height: 1.6; }

.listen { padding: clamp(6rem, 11vw, 10rem) 0; }
.platform-links { margin-top: 2.2rem; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.platform { min-height: 82px; padding: 1rem; display: flex; align-items: center; justify-content: center; gap: .7rem; border-left: 1px solid var(--line); text-decoration: none; font-weight: 700; transition: background .18s ease, color .18s ease; }
.platform:first-child { border-left: 0; }
.platform:hover { background: var(--blue); color: var(--white); }
.platform-mark { width: 26px; height: 26px; flex: 0 0 26px; display: grid; place-items: center; }
.platform-mark img { width: 23px; height: 23px; object-fit: contain; filter: grayscale(1); }
.platform:hover .platform-mark img { filter: brightness(0) invert(1); }
.zencastr .platform-mark { width: 44px; flex-basis: 44px; }
.zencastr .platform-mark img { width: 42px; height: auto; }

footer { padding: 2.2rem 0 3rem; display: flex; justify-content: space-between; gap: 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
footer p { margin: 0; display: flex; align-items: flex-start; gap: .75rem; }
footer strong { color: var(--ink); font-size: .98rem; }
footer div { display: flex; gap: 1.3rem; align-items: flex-start; }
.footer-mark { width: 44px; height: 35px; object-fit: contain; }

@media (max-width: 820px) {
  .site-header, main, footer { width: min(100% - 28px, 1200px); }
  .site-header { min-height: 62px; padding: 0; top: 0; }
  nav { gap: .1rem; }
  nav a { padding: .5rem .65rem; }
  nav a:nth-child(2) { display: none; }
  .intro { min-height: auto; padding: 5.5rem 0 7rem; grid-template-columns: 1fr; gap: 4rem; }
  h1 { font-size: clamp(4.4rem, 20vw, 6.5rem); }
  .cover { width: 100%; max-width: 560px; }
  .latest-body { padding-block: 4rem; }
  .episode-list a { grid-template-columns: 44px minmax(0, 1fr) 62px; }
  .episode-date { display: none; }
  .platform-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .platform:nth-child(odd) { border-left: 0; }
  .about { padding: 3rem 0; grid-template-columns: 1fr; gap: 2rem; }
  footer { display: block; }
  footer div { margin-top: 1.2rem; }
}

@media (max-width: 460px) {
  .wordmark { font-size: .92rem; }
  nav a:first-child { display: none; }
  .intro-links { align-items: flex-start; flex-direction: column; }
  .section-heading { display: block; }
  .section-heading p + p { margin-top: .2rem; }
  .platform-links { grid-template-columns: 1fr; }
  .platform { border-top: 1px solid var(--line); border-left: 0; }
  .platform:first-child { border-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
