/* The Next Iteration Podcast design system
   Brand: cream paper, ink text, six rubik's cube colors doing real work
   (topic encoding). Type: Space Grotesk display / Spectral prose / DM Mono data. */

/* ---------- fonts (fontsource via jsdelivr, woff2 only) ---------- */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(https://cdn.jsdelivr.net/fontsource/fonts/space-grotesk@latest/latin-500-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://cdn.jsdelivr.net/fontsource/fonts/space-grotesk@latest/latin-700-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://cdn.jsdelivr.net/fontsource/fonts/spectral@latest/latin-400-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Spectral';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(https://cdn.jsdelivr.net/fontsource/fonts/spectral@latest/latin-400-italic.woff2) format('woff2');
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(https://cdn.jsdelivr.net/fontsource/fonts/spectral@latest/latin-600-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://cdn.jsdelivr.net/fontsource/fonts/dm-mono@latest/latin-400-normal.woff2) format('woff2');
}

/* ---------- tokens ---------- */
:root {
  --cream: #f3f0e9;
  --cream-raised: #faf8f3;
  --ink: #26241f;
  --ink-soft: #575450;
  --ink-faint: #8b8880;
  --line: rgba(38, 36, 31, 0.14);
  --line-strong: rgba(38, 36, 31, 0.3);

  --green: #62bb47;
  --blue: #009ddc;
  --yellow: #fcb827;
  --red: #e03a3e;
  --purple: #963d97;
  --orange: #f38315;

  --font-display: 'Space Grotesk', 'Avenir Next', system-ui, sans-serif;
  --font-body: 'Spectral', Georgia, serif;
  --font-mono: 'DM Mono', 'SF Mono', Menlo, monospace;

  --w: 1100px;
  --pad: clamp(20px, 4vw, 44px);
}

/* ---------- base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}
p {
  margin: 0 0 1em;
}
a {
  color: inherit;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-color: var(--ink);
}
img {
  max-width: 100%;
  display: block;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.mono {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--cream);
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
}

main {
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 var(--pad);
  overflow-x: clip;
}

.section-label {
  text-transform: lowercase;
  font-weight: 400;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--pad);
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.wordmark-text {
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  font-weight: 500;
}
.wordmark-text strong {
  font-weight: 700;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 28px);
}
.site-header nav a {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 4px 2px;
}
.site-header nav a:hover,
.site-header nav a[aria-current='page'] {
  color: var(--ink);
}
.site-header nav a[aria-current='page'] {
  border-bottom: 2px solid var(--ink);
}
.nav-listen {
  border: 1px solid var(--ink);
  padding: 7px 14px !important;
  color: var(--ink) !important;
}
.nav-listen:hover {
  background: var(--ink);
  color: var(--cream) !important;
}

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  padding: clamp(48px, 9vh, 110px) 0 clamp(36px, 6vh, 72px);
}
.hero-eyebrow {
  color: var(--ink-faint);
  margin-bottom: 18px;
}
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  margin-bottom: 22px;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(
    100deg,
    var(--green) 0 18%,
    var(--blue) 18% 37%,
    var(--yellow) 37% 55%,
    var(--orange) 55% 70%,
    var(--red) 70% 85%,
    var(--purple) 85% 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 28px;
}
.hero-cube {
  display: flex;
  justify-content: center;
}
.cube--hero {
  width: min(300px, 60vw);
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(38, 36, 31, 0.16));
}

/* listen-on pills */
.listen-on {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
}
.platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  padding: 9px 16px;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: var(--cream-raised);
  transition: transform 0.15s ease, background 0.15s ease;
}
.platform-pill:hover {
  background: var(--ink);
  color: var(--cream);
  transform: translateY(-1px);
}
.listen-on--compact .platform-pill {
  padding: 6px 12px;
  background: transparent;
}

/* ---------- stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line);
  padding: 22px 0;
  gap: 16px;
  margin-bottom: clamp(48px, 8vh, 88px);
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 16px;
  border-left: 3px solid var(--ink);
}
.stat:nth-child(1) {
  border-color: var(--green);
}
.stat:nth-child(2) {
  border-color: var(--blue);
}
.stat:nth-child(3) {
  border-color: var(--yellow);
}
.stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
}
.stat-label {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* ---------- sections rhythm ---------- */
.latest,
.topics,
.guests,
.reviews,
.hosts {
  margin-bottom: clamp(56px, 9vh, 104px);
}

/* latest episode */
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  display: inline-block;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}
.latest-card {
  display: grid;
  grid-template-columns: minmax(180px, 280px) 1fr;
  gap: clamp(20px, 4vw, 44px);
  background: var(--cream-raised);
  border: 1px solid var(--line);
  padding: clamp(20px, 3vw, 36px);
}
.latest-art-link img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}
.latest-title {
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  margin: 10px 0 6px;
}
.latest-title a {
  text-decoration: none;
}
.latest-title a:hover {
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
}
.latest-guest {
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.latest-desc {
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.latest-more {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  display: inline-block;
  margin-top: 14px;
}

/* topic tiles */
.topics-hint {
  color: var(--ink-soft);
  margin-top: -8px;
  margin-bottom: 24px;
}
.topic-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.topic-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--cream-raised);
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.topic-tile:hover {
  transform: translateY(-3px);
  border-color: var(--tile-color);
}
.topic-swatch {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: var(--tile-color);
  margin-bottom: 6px;
}
.topic-tile--green { --tile-color: var(--green); }
.topic-tile--blue { --tile-color: var(--blue); }
.topic-tile--yellow { --tile-color: var(--yellow); }
.topic-tile--red { --tile-color: var(--red); }
.topic-tile--purple { --tile-color: var(--purple); }
.topic-tile--orange { --tile-color: var(--orange); }
.topic-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}
.topic-blurb {
  color: var(--ink-soft);
  font-size: 0.92rem;
  flex: 1;
}
.topic-count {
  color: var(--ink-faint);
}

/* guests */
.guest-row {
  list-style: none;
  padding: 0 0 8px;
  margin: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(150px, 1fr);
  gap: 14px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.guest-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--cream-raised);
  padding: 14px;
  height: 100%;
  transition: transform 0.15s ease;
}
.guest-card:hover {
  transform: translateY(-3px);
}
.guest-card img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
  border: 1px solid var(--line);
}
.guest-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.25;
}
.guest-title {
  color: var(--ink-soft);
  font-size: 0.82rem;
  flex: 1;
}
.guest-ep {
  color: var(--ink-faint);
  margin-top: 8px;
}
.guests-cta {
  margin-top: 18px;
  color: var(--ink-soft);
}

/* reviews */
.review-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.review blockquote {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--cream-raised);
  padding: 22px;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.review p {
  flex: 1;
  font-style: italic;
}
.review footer {
  color: var(--ink-faint);
}

/* hosts */
.host-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
}
.host-photo {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  margin-bottom: 16px;
}
.host h3 {
  font-size: 1.3rem;
}
.host p {
  color: var(--ink-soft);
}
.host-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

/* newsletter */
.newsletter {
  background: var(--cream-raised);
  border: 1px solid var(--line);
  border-top: 3px solid var(--yellow);
  padding: clamp(20px, 3vh, 32px) clamp(20px, 3vw, 36px);
  margin-bottom: clamp(56px, 9vh, 104px);
}
.newsletter-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr minmax(0, 440px);
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
  text-align: left;
}
.newsletter h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  margin-bottom: 0.4em;
}
.newsletter p {
  color: var(--ink-soft);
  margin-bottom: 0;
}
.newsletter-embed {
  display: block;
  width: 100%;
  height: 320px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.newsletter-alt {
  margin-top: 10px;
  margin-bottom: 0;
}
.newsletter-alt a {
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}
.newsletter-alt a:hover {
  color: var(--ink);
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 0;
  padding: clamp(36px, 6vh, 60px) var(--pad) 28px;
}
.footer-inner {
  max-width: var(--w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(24px, 5vw, 60px);
}
.footer-tagline {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 14px 0 6px;
}
.footer-meta,
.footer-copyright {
  color: var(--ink-faint);
}
.footer-col h3 {
  font-weight: 400;
  color: var(--ink-soft);
  text-transform: lowercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.footer-copyright {
  max-width: var(--w);
  margin: 36px auto 0;
}

/* ---------- episode chips ---------- */
.ep-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  color: #fff;
  background: var(--ink);
  font-weight: 400;
}
.ep-chip--green { background: var(--green); }
.ep-chip--blue { background: var(--blue); }
.ep-chip--yellow { background: var(--yellow); color: var(--ink); }
.ep-chip--red { background: var(--red); }
.ep-chip--purple { background: var(--purple); }
.ep-chip--orange { background: var(--orange); }
.ep-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-faint);
  flex-wrap: wrap;
}

/* ---------- episodes index ---------- */
.episodes-head {
  padding-top: clamp(36px, 6vh, 64px);
}
.episodes-head h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}
.episodes-sub {
  color: var(--ink-soft);
  max-width: 52ch;
}
.ep-filters {
  margin: 26px 0 8px;
}
.ep-search {
  width: 100%;
  max-width: 460px;
  font: inherit;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  background: var(--cream-raised);
  color: var(--ink);
}
.topic-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.chip {
  border: 1px solid var(--line-strong);
  background: var(--cream-raised);
  padding: 6px 13px;
  border-radius: 99px;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.chip::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--chip-color, var(--ink));
}
.chip--all::before {
  background: conic-gradient(var(--green), var(--blue), var(--purple), var(--red), var(--orange), var(--yellow), var(--green));
}
.chip--green { --chip-color: var(--green); }
.chip--blue { --chip-color: var(--blue); }
.chip--yellow { --chip-color: var(--yellow); }
.chip--red { --chip-color: var(--red); }
.chip--purple { --chip-color: var(--purple); }
.chip--orange { --chip-color: var(--orange); }
.chip[aria-pressed='true'] {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.ep-count {
  color: var(--ink-faint);
  margin-top: 14px;
}

.ep-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 clamp(48px, 8vh, 88px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ep-card {
  position: relative;
  border: 1px solid var(--line);
  background: var(--cream-raised);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.ep-card:hover {
  transform: translateX(4px);
  border-color: var(--line-strong);
}
.ep-card-link {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  align-items: center;
  padding: 14px;
  text-decoration: none;
}
.ep-art {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border: 1px solid var(--line);
}
.ep-card-title {
  font-size: 1.12rem;
  margin: 6px 0 2px;
}
.ep-card-guest {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.ep-guest-role {
  color: var(--ink-faint);
}
.ep-quickplay {
  position: absolute;
  right: 16px;
  top: 50%;
  translate: 0 -50%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--cream);
  display: grid;
  place-items: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.ep-quickplay:hover {
  background: var(--ink);
  color: var(--cream);
}
.ep-none {
  color: var(--ink-soft);
  padding-bottom: 64px;
}

/* ---------- episode page ---------- */
.episode {
  padding-top: clamp(32px, 5vh, 56px);
}
.episode-head {
  display: grid;
  grid-template-columns: minmax(200px, 340px) 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  margin-bottom: clamp(36px, 6vh, 64px);
}
.episode-art {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  position: sticky;
  top: 84px;
}
.episode-title {
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  margin: 14px 0 8px;
}
.episode-guest {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-bottom: 22px;
}
.ep-topic-link {
  color: var(--ink-faint);
}
.episode-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: clamp(28px, 5vw, 64px);
  margin-bottom: clamp(36px, 6vh, 64px);
}
.episode-notes p {
  max-width: 68ch;
  overflow-wrap: break-word;
}
.chapters {
  margin-top: 34px;
}
.chapter-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--cream-raised);
}
.chapter {
  display: flex;
  gap: 16px;
  align-items: baseline;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 11px 16px;
  transition: background 0.12s ease;
}
.chapter-list li:last-child .chapter {
  border-bottom: none;
}
.js .chapter:hover {
  background: rgba(38, 36, 31, 0.05);
}
.chapter.active {
  background: rgba(38, 36, 31, 0.07);
}
.chapter-time {
  color: var(--ink-faint);
  min-width: 52px;
}
.no-js-note {
  color: var(--ink-faint);
}
.episode-pagination {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding: 22px 0 clamp(48px, 8vh, 88px);
}
.pag {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
}
.pag .mono {
  color: var(--ink-faint);
}
.pag-title {
  font-family: var(--font-display);
  font-weight: 500;
}
.pag-next {
  text-align: right;
  align-items: flex-end;
}
.pag:hover .pag-title {
  text-decoration: underline;
}

/* ---------- player ---------- */
.player {
  margin-top: 6px;
}
.player audio {
  width: 100%;
}
.js .player audio {
  display: none;
}
.player-ui {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-strong);
  background: var(--cream);
  padding: 10px 14px;
}
.player-play {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  border: none;
  background: var(--ink);
  color: var(--cream);
  display: grid;
  place-items: center;
  transition: transform 0.12s ease;
}
.player-play:hover {
  transform: scale(1.06);
}
.player-skip {
  border: none;
  background: none;
  color: var(--ink-soft);
  padding: 4px;
}
.player-skip:hover {
  color: var(--ink);
}
.player-track {
  flex: 1;
  min-width: 0;
}
.player-seek {
  width: 100%;
  accent-color: var(--ink);
  height: 4px;
}
.player-times {
  display: flex;
  justify-content: space-between;
  color: var(--ink-faint);
  margin-top: 3px;
}
.player-speed {
  border: 1px solid var(--line);
  background: none;
  padding: 5px 9px;
  color: var(--ink-soft);
  border-radius: 4px;
}
.player-speed:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* mini player (episodes index) */
.miniplayer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--ink);
  color: var(--cream);
  padding: 10px clamp(14px, 3vw, 28px);
  transform: translateY(110%);
  transition: transform 0.25s ease;
}
.miniplayer.open {
  transform: translateY(0);
}
.miniplayer img {
  width: 44px;
  height: 44px;
  object-fit: cover;
}
.miniplayer-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 32ch;
}
.miniplayer .player-play {
  width: 38px;
  height: 38px;
  background: var(--cream);
  color: var(--ink);
}
.miniplayer input[type='range'] {
  flex: 1;
  accent-color: var(--cream);
  min-width: 60px;
}
.miniplayer-time {
  color: rgba(243, 240, 233, 0.6);
}
.miniplayer-close {
  background: none;
  border: none;
  color: rgba(243, 240, 233, 0.7);
  font-size: 1.1rem;
  padding: 6px;
}
.miniplayer-close:hover {
  color: var(--cream);
}
body.has-miniplayer {
  padding-bottom: 72px;
}

/* ---------- about / 404 ---------- */
.about {
  padding-top: clamp(36px, 6vh, 64px);
}
.about-head h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}
.about-lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 62ch;
}
.about .hosts,
.about-contact {
  margin: clamp(40px, 7vh, 72px) 0;
}
.about-contact .listen-on {
  margin-top: 18px;
}
.notfound {
  text-align: center;
  padding: clamp(56px, 12vh, 130px) 0;
}
.notfound .cube--404 {
  margin: 0 auto 24px;
}
.notfound h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
}

/* ---------- cube animation ---------- */
.cube--hero {
  animation: cube-float 7s ease-in-out infinite;
}
@keyframes cube-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* 3D rubik's cube (built by cube.js; SVG above is the no-JS fallback) */
.cube-scene {
  width: 340px;
  height: 360px;
  max-width: 70vw;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 22px 34px rgba(38, 36, 31, 0.18));
  animation: cube-float 7s ease-in-out infinite;
}
.cube3d {
  position: relative;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  transform: rotateX(-28deg) rotateY(-42deg) scale3d(0.86, 0.86, 0.86);
}
.cubelet {
  position: absolute;
  width: 84px;
  height: 84px;
  margin: -42px 0 0 -42px;
  transform-style: preserve-3d;
}
.cface {
  position: absolute;
  inset: 0;
  background: #e9e5da;
  border: 3px solid var(--cream);
  border-radius: 12px;
}
.cface-front { transform: translateZ(42px); }
.cface-back { transform: rotateY(180deg) translateZ(42px); }
.cface-right { transform: rotateY(90deg) translateZ(42px); }
.cface-left { transform: rotateY(-90deg) translateZ(42px); }
.cface-top { transform: rotateX(90deg) translateZ(42px); }
.cface-bottom { transform: rotateX(-90deg) translateZ(42px); }

@media (max-width: 900px) {
  .cube-scene {
    width: 240px;
    height: 250px;
  }
  .cube3d {
    transform: rotateX(-28deg) rotateY(-42deg) scale3d(0.6, 0.6, 0.6);
  }
}

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

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: left;
    padding-top: 40px;
  }
  .hero-cube {
    order: -1;
    justify-content: flex-start;
  }
  .cube--hero {
    width: min(200px, 44vw);
  }
  .topic-grid,
  .review-grid {
    grid-template-columns: 1fr 1fr;
  }
  .newsletter-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .episode-columns {
    grid-template-columns: 1fr;
  }
  .episode-aside {
    border-top: 1px solid var(--line);
    padding-top: 24px;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
  .site-header {
    padding: 10px 16px;
  }
  .wordmark-text {
    font-size: 0.92rem;
  }
  .site-header nav {
    gap: 12px;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .latest-card {
    grid-template-columns: 1fr;
  }
  .latest-art-link {
    max-width: 220px;
  }
  .topic-grid,
  .review-grid,
  .host-grid {
    grid-template-columns: 1fr;
  }
  .guest-row {
    grid-auto-columns: 150px;
  }
  .episode-head {
    grid-template-columns: 1fr;
  }
  .episode-art {
    max-width: 240px;
    position: static;
  }
  .ep-card-link {
    grid-template-columns: 64px 1fr;
    gap: 12px;
  }
  .ep-art {
    width: 64px;
    height: 64px;
  }
  .ep-quickplay {
    display: none !important;
  }
  .episode-pagination {
    grid-template-columns: 1fr;
  }
  .pag-next {
    align-items: flex-start;
    text-align: left;
  }
  .newsletter-form {
    flex-direction: column;
  }
  .player-ui {
    flex-wrap: wrap;
  }
  .player-track {
    flex-basis: 100%;
    order: 5;
  }
  .miniplayer-title {
    max-width: 16ch;
  }
  .nav-listen {
    padding: 6px 10px !important;
  }
}

@media (max-width: 560px) {
  .wordmark-text {
    display: none;
  }
  .site-header nav a {
    font-size: 0.78rem;
  }
}
