@font-face {
  font-family: Vazirmatn;
  src: url("/fonts/vazirmatn.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* Colours come from the show's artwork: charcoal ink on textured paper, the
   cover teal, and the maroon used for episode titles. */
:root {
  color-scheme: light dark;
  --paper: #f3f1ec;
  --paper-raised: #fbfaf7;
  --paper-sunk: #e8e4dc;
  --ink: #2c2927;
  --ink-soft: #57524d;
  --ink-faint: #827b73;
  --line: #dbd5cb;
  --teal: #3bb3a6;
  --teal-strong: #16766c;
  --teal-petal: #45bcaf;
  --maroon: #5a1e17;
  --rose: #c0405e;
  --logo-ink: #3a3735;
  --on-teal: #0d2e2a;
  --grain: rgb(70 55 40 / 0.1);
  --shadow: 0 1px 2px rgb(40 30 20 / 0.06), 0 12px 32px -18px rgb(40 30 20 / 0.28);
  --max: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #181716;
    --paper-raised: #211f1d;
    --paper-sunk: #121110;
    --ink: #eeeae3;
    --ink-soft: #bfb8ae;
    --ink-faint: #8f887f;
    --line: #34312d;
    --teal-strong: #62d2c4;
    --rose: #ec8aa0;
    --logo-ink: #eeeae3;
    --grain: rgb(255 245 230 / 0.05);
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 16px 40px -20px rgb(0 0 0 / 0.7);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.9 Vazirmatn, Tahoma, system-ui, sans-serif;
  padding-bottom: var(--player-h, 0px);
}

/* Paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--grain);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.4 -.35'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.4 -.35'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--teal-strong);
  text-underline-offset: 0.25em;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--teal-strong);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -60px;
  z-index: 100;
  padding: 8px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 6px;
}

.skip-link:focus {
  top: 16px;
}

/* Logo: two masks so both colours follow the theme */
.logo {
  position: relative;
  display: block;
  width: var(--logo-w, 96px);
  aspect-ratio: 1000 / 688;
}

.logo__ink,
.logo__accent {
  position: absolute;
  inset: 0;
  -webkit-mask: var(--mask) center / contain no-repeat;
  mask: var(--mask) center / contain no-repeat;
}

.logo__ink {
  --mask: url("/logo-ink.png");
  background: var(--logo-ink);
}

.logo__accent {
  --mask: url("/logo-accent.png");
  background: var(--teal);
}

.logo--sm {
  --logo-w: 76px;
}

.logo--xl {
  --logo-w: min(400px, 74vw);
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px;
}

.brand {
  display: block;
  border-radius: 6px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1.6vw, 20px);
  font-size: 0.95rem;
  font-weight: 600;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 999px;
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav .site-nav__support {
  color: var(--ink);
  border: 1.5px solid var(--ink);
  padding-inline: 14px;
}

.site-nav .site-nav__support:hover {
  background: var(--ink);
  color: var(--paper);
}

@media (max-width: 560px) {
  .site-nav a[href="/#listen"],
  .site-nav a[href="/#about"] {
    display: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0 22px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.btn:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn--primary {
  background: var(--ink);
  color: var(--paper);
  padding-inline: 14px 24px;
}

.btn--primary:hover,
.btn--primary[aria-pressed="true"] {
  background: var(--teal-strong);
  border-color: var(--teal-strong);
  color: var(--paper);
}

.btn--primary svg {
  width: 30px;
  height: 30px;
  padding: 7px;
  border-radius: 50%;
  background: var(--teal);
  fill: #fff;
}

.btn--dark {
  background: var(--on-teal);
  border-color: var(--on-teal);
  color: #fff;
}

.btn--dark:hover {
  background: #fff;
  border-color: #fff;
  color: var(--on-teal);
}

.btn--quiet {
  border-color: transparent;
  color: var(--ink-soft);
}

.btn--quiet:hover {
  background: var(--paper-sunk);
  color: var(--ink);
}

.i-pause {
  display: none;
}

[aria-pressed="true"] > .i-play {
  display: none;
}

[aria-pressed="true"] > .i-pause {
  display: block;
}

.play-btn {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.play-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.play-btn:hover {
  background: var(--ink);
  color: var(--paper);
}

.play-btn[aria-pressed="true"] {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
  padding-block: clamp(24px, 6vw, 72px) clamp(40px, 7vw, 88px);
}

.hero__title {
  margin: 0;
}

.hero__tagline {
  margin: clamp(24px, 4vw, 36px) 0 8px;
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  font-weight: 800;
  line-height: 1.5;
  text-wrap: balance;
}

.hero__intro {
  margin: 0;
  max-width: 46ch;
  color: var(--ink-soft);
  font-size: 1.125rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  margin: 40px 0 0;
}

.stats div {
  display: flex;
  flex-direction: column-reverse;
  padding-inline: 22px;
  border-inline-start: 1px solid var(--line);
}

.stats div:first-child {
  padding-inline-start: 0;
  border: 0;
}

.stats dt {
  color: var(--ink-faint);
  font-size: 0.85rem;
}

.stats dd {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.4;
}

.hero__art {
  max-width: 440px;
  width: 100%;
  justify-self: end;
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero__art {
    justify-self: start;
    max-width: 340px;
  }
}

/* The cover-style tile */
.tile {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 4px;
  background: var(--teal);
  color: var(--maroon);
  box-shadow: var(--shadow);
}

.tile .rosette {
  width: 74%;
  translate: 0 -5%;
}

.tile__corner {
  position: absolute;
  top: 5%;
  left: 6%;
  font-size: clamp(0.8rem, 1.6vw, 1rem);
  font-weight: 800;
}

.tile__caption {
  position: absolute;
  inset-inline: 0;
  bottom: 6%;
  text-align: center;
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  font-weight: 900;
  line-height: 1;
}

.rosette__shadow > * {
  fill: rgb(10 60 55 / 0.28);
}

.rosette__petals > * {
  fill: var(--teal-petal);
  stroke: rgb(255 255 255 / 0.28);
  stroke-width: 1;
}

.rosette__core {
  fill: var(--teal);
  stroke: rgb(10 60 55 / 0.25);
  stroke-width: 1.5;
}

.rosette__label {
  fill: var(--maroon);
  font-size: 24px;
  font-weight: 900;
}

/* Sections */
.section {
  padding-block: clamp(28px, 5vw, 56px);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 20px;
}

.section-title {
  margin: 0;
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  font-weight: 900;
  line-height: 1.35;
  text-wrap: balance;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin: 0 0 6px;
  color: var(--teal-strong);
  font-size: 0.9rem;
  font-weight: 800;
}

/* The diamond from the logo */
.eyebrow::before {
  content: "";
  width: 0.5em;
  height: 0.5em;
  background: var(--teal);
  rotate: 45deg;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 0;
  color: var(--ink-faint);
  font-size: 0.92rem;
}

.meta > * + *::before {
  content: "·";
  margin-inline-end: 18px;
  margin-inline-start: -10px;
}

/* Latest episode */
.feature {
  display: grid;
  grid-template-columns: minmax(160px, 300px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  margin-top: 12px;
  padding: clamp(14px, 2.5vw, 24px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-raised);
  box-shadow: var(--shadow);
}

.feature__art img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.feature__label {
  margin: 0;
  color: var(--teal-strong);
  font-weight: 800;
  font-size: 0.95rem;
}

.feature__title {
  margin: 2px 0 8px;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  line-height: 1.3;
}

.feature__title a {
  color: inherit;
  text-decoration: none;
}

.feature__title a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.feature__desc {
  margin: 0 0 10px;
  color: var(--ink-soft);
  font-size: 1.1rem;
  max-width: 52ch;
}

.feature__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

@media (max-width: 640px) {
  .feature {
    grid-template-columns: 1fr;
  }
  .feature__art {
    max-width: 260px;
  }
}

/* Episode list */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filters button {
  padding: 4px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-raised);
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

.filters button:hover {
  border-color: var(--ink-faint);
  color: var(--ink);
}

.filters button[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.filters[hidden],
.season[hidden],
.episode[hidden] {
  display: none;
}

.season {
  margin-top: 28px;
}

.season__title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 4px;
  font-size: 1.1rem;
  font-weight: 800;
}

.season__title span {
  color: var(--ink-faint);
  font-size: 0.9rem;
  font-weight: 500;
}

.season__title::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--line);
}

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

.episode {
  position: relative;
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 22px;
  padding: 16px 12px;
  margin-inline: -12px;
  border-bottom: 1px solid var(--line);
  border-radius: 8px;
  transition: background-color 0.15s;
}

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

.episode:hover {
  background: var(--paper-raised);
}

.episode__art {
  width: 80px;
  height: 80px;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.12);
}

.episode__label {
  display: flex;
  gap: 10px;
  margin: 0;
  color: var(--teal-strong);
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1.6;
}

.episode--footnote .episode__label {
  color: var(--rose);
}

.episode__cat {
  color: var(--ink-faint);
  font-weight: 500;
}

.episode__title {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.55;
}

.episode__title a {
  color: inherit;
  text-decoration: none;
}

.episode__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.episode:hover .episode__title a {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
}

.episode__desc {
  max-width: 72ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.97rem;
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.episode__meta {
  display: flex;
  gap: 16px;
  margin: 4px 0 0;
  color: var(--ink-faint);
  font-size: 0.85rem;
}

@media (max-width: 560px) {
  .episode {
    grid-template-columns: 60px minmax(0, 1fr) auto;
    align-items: start;
    gap: 2px 14px;
    padding: 14px 8px;
    margin-inline: -8px;
  }
  .episode__art {
    width: 60px;
    height: 60px;
  }
  .episode__title {
    font-size: 1.15rem;
  }
  .episode .play-btn {
    width: 44px;
    height: 44px;
  }
}

/* About + index */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.about__text p {
  max-width: 52ch;
  color: var(--ink-soft);
}

.about__text .about__lead {
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.85;
}

.about__subtitle {
  margin: 28px 0 0;
  font-size: 1.1rem;
  font-weight: 800;
}

.about__host {
  display: flex;
  flex-direction: column;
  margin-top: 28px;
  font-size: 1.25rem;
  font-weight: 800;
}

.about__text .about__host {
  color: var(--ink);
}

.about__host span {
  color: var(--ink-faint);
  font-size: 0.85rem;
  font-weight: 500;
}

.index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 36px;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-raised);
}

.index h3 {
  margin: 0 0 6px;
  padding-bottom: 6px;
  border-bottom: 1.5px solid var(--ink);
  font-size: 1rem;
  font-weight: 800;
}

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

.index a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 3px 0;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.97rem;
}

.index a:hover span:first-child {
  color: var(--teal-strong);
  text-decoration: underline;
}

.index__leader {
  flex: 1;
  min-width: 12px;
  border-bottom: 1.5px dotted var(--ink-faint);
  translate: 0 -0.3em;
  opacity: 0.6;
}

.index__num {
  color: var(--ink-faint);
  font-size: 0.88rem;
}

@media (max-width: 820px) {
  .about {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .index {
    grid-template-columns: 1fr;
  }
}

/* Listening apps */
.platforms {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.platform {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-raised);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}

.platform:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}

.platform .icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
  flex: none;
}

.platforms--compact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.platforms--compact .platform {
  min-height: 0;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  gap: 8px;
}

.platforms--compact .icon {
  width: 16px;
  height: 16px;
}

/* Social accounts and email, under the listening apps */
.follow {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.follow p {
  max-width: 60ch;
  margin: 0;
  color: var(--ink-soft);
}

/* Support */
.support {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px 40px;
  overflow: hidden;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 14px;
  background: var(--teal);
  color: var(--on-teal);
}

.support .rosette {
  position: absolute;
  width: 380px;
  left: -150px;
  top: 50%;
  translate: 0 -50%;
  opacity: 0.3;
  pointer-events: none;
}

.support__text {
  position: relative;
}

.support__text p {
  margin: 10px 0 0;
  max-width: 48ch;
  font-size: 1.1rem;
}

.support .btn {
  position: relative;
}

@media (max-width: 720px) {
  .support {
    grid-template-columns: 1fr;
  }
  .support .btn {
    justify-self: start;
  }
}

/* Footer */
.site-footer {
  margin-top: clamp(32px, 6vw, 64px);
  padding-block: 40px 48px;
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  display: grid;
  justify-items: start;
  gap: 4px;
}

.site-footer__tagline {
  margin: 12px 0 0;
  font-weight: 700;
}

.site-footer__fine {
  margin: 16px 0 0;
  color: var(--ink-faint);
  font-size: 0.85rem;
}

/* Episode page */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  color: var(--ink-faint);
  font-size: 0.9rem;
}

.crumbs a {
  color: var(--ink-soft);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.ep {
  display: grid;
  grid-template-columns: minmax(220px, 380px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(24px, 5vw, 64px);
  padding-block: 24px 40px;
}

.ep__art img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: var(--shadow);
}

@media (min-width: 821px) {
  .ep__art {
    position: sticky;
    top: 24px;
  }
}

.ep__label {
  margin: 0;
  color: var(--teal-strong);
  font-weight: 800;
}

.ep__label--footnote {
  color: var(--rose);
}

.ep__title {
  margin: 0 0 10px;
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.3;
  text-wrap: balance;
}

.ep__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 34px;
}

.prose {
  max-width: 62ch;
  font-size: 1.15rem;
  line-height: 2.05;
}

.prose p {
  margin: 0 0 1em;
}

.credits__title {
  margin: 1.6em 0 0.4em;
  font-size: 1.05rem;
  font-weight: 800;
}

.credits {
  margin: 0;
  padding-inline-start: 1.8em;
  list-style-type: persian;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.9;
}

/* The episode's Instagram posts */
.ig {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.ig__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
}

.ig__title .icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex: none;
}

.ig__intro {
  margin: 4px 0 8px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

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

.ig__post {
  display: grid;
  grid-template-columns: 3.4em minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 2px 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.ig__post:hover .ig__name {
  color: var(--teal-strong);
  text-decoration: underline;
}

.ig__kind {
  color: var(--teal-strong);
  font-size: 0.8rem;
  font-weight: 800;
}

.ig__post time {
  color: var(--ink-faint);
  font-size: 0.85rem;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .ig__post {
    grid-template-columns: 3.4em minmax(0, 1fr);
  }
  .ig__post time {
    grid-column: 2;
  }
}

.ep__listen {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.ep__listen p {
  margin: 0;
}

.ep-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-block: 8px 24px;
}

.ep-nav__link {
  display: flex;
  flex-direction: column;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-raised);
  color: var(--ink);
  text-decoration: none;
}

.ep-nav__link:hover {
  border-color: var(--ink);
}

.ep-nav__link span {
  color: var(--ink-faint);
  font-size: 0.88rem;
}

.ep-nav__link strong {
  font-size: 1.15rem;
}

.ep-nav__link--prev span::before {
  content: "→ ";
}

.ep-nav__link--next {
  text-align: left;
}

.ep-nav__link--next span::after {
  content: " ←";
}

@media (max-width: 820px) {
  .ep {
    grid-template-columns: 1fr;
  }
  .ep__art {
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .ep-nav {
    grid-template-columns: 1fr;
  }
  .ep-nav__link--next {
    text-align: right;
  }
}

/* 404 */
.not-found {
  display: grid;
  justify-items: start;
  gap: 16px;
  padding-block: clamp(32px, 8vw, 96px);
}

.not-found p {
  margin: 0 0 12px;
  color: var(--ink-soft);
}

.tile--small {
  width: 180px;
}

.tile--small .rosette {
  width: 82%;
  translate: none;
}

.tile--small .rosette__label {
  font-size: 18px;
}

/* Player */
.player {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 50;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper-raised) 90%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 -10px 30px -20px rgb(0 0 0 / 0.4);
}

.player[hidden] {
  display: none;
}

.player__inner {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto minmax(180px, 1.3fr) auto auto;
  grid-template-areas: "art meta transport timeline rate close";
  align-items: center;
  gap: 8px 16px;
  max-width: var(--max);
  margin-inline: auto;
}

.player__art {
  grid-area: art;
  width: 52px;
  height: 52px;
  border-radius: 4px;
  background: var(--teal);
}

.player__meta {
  grid-area: meta;
  min-width: 0;
  line-height: 1.5;
}

.player__label {
  display: block;
  color: var(--teal-strong);
  font-size: 0.78rem;
  font-weight: 800;
}

.player__title {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.player__title:hover {
  text-decoration: underline;
}

.player__transport {
  grid-area: transport;
  display: flex;
  align-items: center;
  gap: 4px;
}

.player__btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.player__btn:hover {
  background: var(--paper-sunk);
}

.player__btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.player__btn text {
  font-size: 6.5px;
  font-weight: 800;
}

.player__toggle {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
}

.player__toggle:hover {
  background: var(--teal-strong);
}

.player__toggle svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.player__timeline {
  grid-area: timeline;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.player__time {
  min-width: 3.4em;
  text-align: center;
}

.player__seek {
  flex: 1;
  min-width: 0;
  height: 22px;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.player__seek::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(to right, var(--teal) var(--progress, 0%), var(--line) var(--progress, 0%));
}

.player__seek::-moz-range-track {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(to right, var(--teal) var(--progress, 0%), var(--line) var(--progress, 0%));
}

.player__seek::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
  margin-top: -5px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  -webkit-appearance: none;
  appearance: none;
}

.player__seek::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
}

.player__rate {
  grid-area: rate;
  min-width: 52px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.player__rate:hover {
  border-color: var(--ink);
}

.player__close {
  grid-area: close;
  width: 34px;
  height: 34px;
  color: var(--ink-faint);
}

.player__close svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 860px) {
  .player__inner {
    grid-template-columns: 44px minmax(0, 1fr) auto auto;
    grid-template-areas:
      "art meta transport close"
      "timeline timeline timeline rate";
    gap: 6px 12px;
  }
  .player__art {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 420px) {
  .player__skip {
    display: none;
  }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--player-h, 0px) + 20px);
  z-index: 60;
  translate: -50% 0;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.95rem;
  box-shadow: var(--shadow);
}
