/* ============================================================
   Age of Creatives — minimal Apple-style podcast site
   Pure black & white. System typography. 2026 restraint.
   Podcasts lead the page as a vertical stack of rectangles.
   ============================================================ */

:root {
  --black: #000000;
  --white: #ffffff;
  --gray-1: #6e6e73;   /* secondary text on light */
  --gray-2: #86868b;   /* secondary text on dark  */
  --hairline-dark: rgba(255, 255, 255, 0.14);
  --hairline-light: rgba(0, 0, 0, 0.12);

  --max: 1280px;
  --pad: clamp(20px, 5vw, 80px);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Helvetica Neue", Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv01", "tnum";
  line-height: 1.5;
  overflow-x: hidden;
}

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

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

/* ---------------------------------------------------------------
   Navigation — floats; text color swapped by JS per section
   --------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--pad);
  color: var(--white);              /* default over dark sections */
  transition: color 0.45s var(--ease);
  pointer-events: none;             /* let inner links handle clicks */
}
.nav a { pointer-events: auto; }
.nav.nav--light { color: var(--black); }   /* swapped by JS over light sections */

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.nav__mark {
  width: 15px; height: 15px;
  border-radius: 50%;
  border: 2px solid currentColor;
  position: relative;
  flex: none;
}
.nav__mark::after {
  content: "";
  position: absolute;
  inset: 3.5px;
  background: currentColor;
  border-radius: 50%;
}
.nav__links {
  display: flex;
  gap: 34px;
  font-size: 15px;
  font-weight: 400;
}
.nav__links a {
  position: relative;
  opacity: 0.85;
  transition: opacity 0.3s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after { transform: scaleX(1); }

@media (max-width: 640px) {
  .nav__links { gap: 20px; font-size: 14px; }
  .nav__word { display: none; }
}

/* ---------------------------------------------------------------
   Sections
   --------------------------------------------------------------- */
.section {
  padding: clamp(90px, 13vw, 170px) var(--pad);
  position: relative;
}
.section--dark  { background: var(--black); color: var(--white); }
.section--light { background: var(--white); color: var(--black); }

.eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-2);
  margin-bottom: 20px;
}
.eyebrow--dark { color: var(--gray-1); }

.section__title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

/* ---------------------------------------------------------------
   Masthead — top of the first page
   --------------------------------------------------------------- */
.episodes {
  padding-top: clamp(128px, 16vh, 200px);
  background: linear-gradient(180deg, #f7f7f8 0%, #ececee 100%);
  isolation: isolate;
}
/* Soft monochrome field behind the glass cards (gives the frost something to refract) */
.episodes::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(40% 30% at 16% 20%, rgba(0, 0, 0, 0.10), transparent 70%),
    radial-gradient(36% 28% at 88% 28%, rgba(0, 0, 0, 0.09), transparent 70%),
    radial-gradient(46% 36% at 74% 70%, rgba(0, 0, 0, 0.09), transparent 70%),
    radial-gradient(34% 26% at 24% 92%, rgba(0, 0, 0, 0.10), transparent 70%);
}
.masthead, .eplist__head, .eplist { position: relative; z-index: 1; }

.masthead {
  max-width: var(--max);
  margin: 0 auto clamp(40px, 6vw, 64px);
}
.masthead__title {
  font-size: clamp(46px, 9vw, 108px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin: 6px 0 0;
}
.masthead__lede {
  margin-top: 26px;
  max-width: 620px;
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.45;
  color: var(--gray-1);
  letter-spacing: -0.01em;
}

/* ---------------------------------------------------------------
   Episode list — stacked rectangles, one below the other
   --------------------------------------------------------------- */
.eplist__head {
  max-width: var(--max);
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--hairline-light);
}
.eplist__head .eyebrow { margin: 0; }
.eplist__count {
  font-size: 13px;
  color: var(--gray-1);
  font-variant-numeric: tabular-nums;
}

.eplist {
  list-style: none;
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 1.8vw, 24px);
}

.ep {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.eplist.is-revealed .ep { opacity: 1; transform: none; }

.ep__link {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 38px);
  padding: clamp(20px, 2.2vw, 32px);
  /* Apple-style frosted glass */
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.42));
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 28px;
  box-shadow:
    0 16px 44px -16px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.4s var(--ease);
}
.ep__link:hover {
  transform: translateY(-5px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.54));
  box-shadow:
    0 28px 64px -18px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
.ep__link:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; }

/* Monochrome vinyl-groove cover (no images needed) */
.ep__cover {
  flex: none;
  position: relative;
  overflow: hidden;
  width: clamp(108px, 13vw, 168px);
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  background: var(--black);
  color: var(--white);
  display: grid;
  place-items: center;
}
.ep:nth-child(even) .ep__cover {
  background: var(--white);
  color: var(--black);
  box-shadow: inset 0 0 0 1px var(--hairline-light);
}
.ep__cover::before {
  content: "";
  position: absolute;
  width: 150%; aspect-ratio: 1;
  left: 50%; top: 58%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: repeating-radial-gradient(circle at center,
    rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 8px);
  pointer-events: none;
}
.ep:nth-child(even) .ep__cover::before {
  background: repeating-radial-gradient(circle at center,
    rgba(0, 0, 0, 0.08) 0 1px, transparent 1px 8px);
}
.ep__num {
  position: relative;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.ep__main { flex: 1 1 auto; min-width: 0; }
.ep__meta {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ep__title {
  display: block;
  font-size: clamp(23px, 2.8vw, 36px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 11px 0 8px;
  color: var(--black);
}
.ep__guest {
  display: block;
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--gray-1);
}

.ep__play {
  flex: none;
  width: 60px; height: 60px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.16);
  background: rgba(255, 255, 255, 0.4);
  color: var(--black);
  display: grid;
  place-items: center;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.4s var(--ease);
}
.ep__play svg { width: 19px; height: 19px; transform: translateX(1px); }
.ep__link:hover .ep__play { background: var(--black); color: var(--white); transform: scale(1.06); }

@media (max-width: 640px) {
  .ep__link { gap: 14px; padding: 16px; border-radius: 24px; }
  .ep__cover { width: 86px; border-radius: 15px; }
  .ep__play { width: 46px; height: 46px; }
  .ep__title { margin: 8px 0 6px; }
  .ep__meta { font-size: 11px; letter-spacing: 0.04em; }
}

/* ---------------------------------------------------------------
   Statement
   --------------------------------------------------------------- */
.statement { display: flex; justify-content: center; }
.statement__quote { max-width: 900px; text-align: center; }
.statement__quote p {
  font-size: clamp(28px, 4.4vw, 56px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  text-wrap: balance;
}
.statement__cite {
  margin-top: 34px;
  font-size: 15px;
  color: var(--gray-2);
  letter-spacing: 0.01em;
}
.statement__cite cite { font-style: normal; color: var(--white); }

/* ---------------------------------------------------------------
   Orange-spark light strips — flowing ribbon band (replicate.com vibe)
   Self-contained & decorative. Drop the .strips markup into any
   position:relative section. Reads as a glowing soundwave for the show.
   Honors prefers-reduced-motion via the global animation kill-switch.
   --------------------------------------------------------------- */
.statement { position: relative; overflow: hidden; isolation: isolate; }

.strips {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  /* melt the ribbons into the section at the left/right edges */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

/* One glowing ribbon. The band carries the vertical "wave"; its inner
   child carries the horizontal "flow" — two transforms, two elements. */
.strips__band {
  position: absolute;
  left: 0; right: 0;
  height: clamp(46px, 7.5vh, 84px);
  filter: blur(9px) saturate(145%);
  mix-blend-mode: screen;            /* additive glow over the black section */
  opacity: 0.74;
  /* soft top/bottom falloff → a ribbon of light, not a hard bar */
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 34%, #000 66%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 34%, #000 66%, transparent);
  will-change: transform;
}
.strips__inner {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 200%;
  /* palindromic two-cycle gradient → seamless on a translateX(-50%) loop.
     #fff2cc is the hot spark core; #ff2a00 the ember edge. */
  background: linear-gradient(90deg,
    #ff2a00 0%,    #ff7a00 8.33%,  #ffb400 16.66%, #fff2cc 25%,
    #ffb400 33.33%, #ff7a00 41.66%, #ff2a00 50%,
    #ff7a00 58.33%, #ffb400 66.66%, #fff2cc 75%,
    #ffb400 83.33%, #ff7a00 91.66%, #ff2a00 100%);
  animation: strip-drift 18s linear infinite;
  will-change: transform;
}
@keyframes strip-drift { to { transform: translate3d(-50%, 0, 0); } }
@keyframes strip-wave {
  0%   { transform: translateY(-12px); }
  100% { transform: translateY(12px); }
}

/* three stacked ribbons — distinct horizontal strips, varied
   position, thickness, speed, direction and hue */
.strips__band--1 { top: 32%; animation: strip-wave 8s ease-in-out infinite alternate; }
.strips__band--1 .strips__inner { animation-duration: 17s; filter: hue-rotate(-8deg) brightness(1.05); }

.strips__band--2 { top: 48%; height: clamp(56px, 9vh, 100px); opacity: 0.84;
  animation: strip-wave 11s ease-in-out infinite alternate; }
.strips__band--2 .strips__inner { animation-duration: 23s; animation-direction: reverse; filter: brightness(1.12); }

.strips__band--3 { top: 64%; height: clamp(38px, 6vh, 72px); opacity: 0.64;
  animation: strip-wave 9.5s ease-in-out infinite alternate; }
.strips__band--3 .strips__inner { animation-duration: 14s; filter: hue-rotate(10deg); }

/* Embers — faint spark dots drifting up through the band */
.strips__sparks {
  position: absolute;
  inset: 0;
  mix-blend-mode: screen;
  opacity: 0.7;
  background-repeat: repeat;
  background-image:
    radial-gradient(2px 2px at 12% 60%, #ffd27a, transparent 60%),
    radial-gradient(1.5px 1.5px at 28% 50%, #ffb400, transparent 60%),
    radial-gradient(2px 2px at 47% 66%, #fff2cc, transparent 60%),
    radial-gradient(1.5px 1.5px at 64% 48%, #ff8a00, transparent 60%),
    radial-gradient(2px 2px at 81% 62%, #ffd27a, transparent 60%),
    radial-gradient(1.5px 1.5px at 92% 52%, #ffb400, transparent 60%);
  animation: strip-embers 7s ease-in-out infinite alternate;
  will-change: transform, opacity;
}
@keyframes strip-embers {
  0%   { transform: translateY(8px);  opacity: 0.35; }
  50%  { opacity: 0.8; }
  100% { transform: translateY(-10px); opacity: 0.5; }
}

.statement__quote { position: relative; z-index: 1; }
/* soft scrim directly behind the quote keeps the white text crisp over the glow */
.statement__quote::before {
  content: "";
  position: absolute;
  inset: -16% -12%;
  z-index: -1;
  background: radial-gradient(60% 68% at 50% 50%,
    rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.26) 54%, transparent 80%);
  pointer-events: none;
}

/* ---------------------------------------------------------------
   About
   --------------------------------------------------------------- */
.about__grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 100px);
  align-items: start;
}
.about__lead .section__title { line-height: 1.05; }
.about__body p { font-size: 18px; line-height: 1.6; color: var(--gray-1); margin-bottom: 20px; max-width: 46ch; }
.about__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 48px;
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid var(--hairline-light);
}
.about__stats dt { font-size: 13px; color: var(--gray-1); letter-spacing: 0.02em; margin-bottom: 6px; }
.about__stats dd { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }

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

/* ---------------------------------------------------------------
   Listen
   --------------------------------------------------------------- */
.listen__inner { max-width: var(--max); margin: 0 auto; }
.listen__lede {
  margin-top: 22px;
  max-width: 480px;
  font-size: 18px;
  color: var(--gray-2);
  line-height: 1.5;
}
.listen__platforms {
  list-style: none;
  margin-top: 54px;
  border-top: 1px solid var(--hairline-dark);
}
.platform {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 4px;
  border-bottom: 1px solid var(--hairline-dark);
  font-size: clamp(22px, 3.5vw, 34px);
  font-weight: 500;
  letter-spacing: -0.02em;
  transition: padding 0.4s var(--ease), opacity 0.3s var(--ease);
}
.platform span { color: var(--gray-2); font-size: 0.7em; transition: transform 0.4s var(--ease), color 0.3s var(--ease); }
.platform:hover { padding-left: 18px; }
.platform:hover span { transform: translate(6px, -6px); color: var(--white); }

/* ---------------------------------------------------------------
   Footer
   --------------------------------------------------------------- */
.footer { padding: 60px var(--pad); border-top: 1px solid var(--hairline-dark); }
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer__brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.02em; }
.footer__note { color: var(--gray-2); font-size: 14px; }

/* ---------------------------------------------------------------
   Scroll reveal
   --------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------------------------------------------------------------
   Uploaded cover art (home list) — replaces the generated number
   cover when an episode has artwork. Hide the vinyl groove over art.
   --------------------------------------------------------------- */
.ep__art {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.ep__cover:has(.ep__art)::before { display: none; }

/* ---------------------------------------------------------------
   Episode detail page (episode.html)
   --------------------------------------------------------------- */
.episode { padding-top: clamp(120px, 15vh, 190px); }
.episode__inner {
  max-width: 760px;
  margin: 0 auto;
}
.episode__loading { color: var(--gray-1); font-size: 16px; }

.episode__back {
  display: inline-block;
  font-size: 14px;
  color: var(--gray-1);
  letter-spacing: -0.01em;
  margin-bottom: 40px;
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}
.episode__back:hover { color: var(--black); transform: translateX(-3px); }

.episode__head { margin-bottom: clamp(32px, 5vw, 52px); }
.episode__eyebrow { margin-bottom: 16px; }
.episode__title {
  font-size: clamp(34px, 6vw, 72px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.0;
  margin: 0;
}
.episode__guest {
  margin-top: 20px;
  font-size: clamp(17px, 2.2vw, 22px);
  color: var(--gray-1);
  letter-spacing: -0.01em;
}
.episode__metaline {
  margin-top: 14px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-1);
}

/* Cover — same monochrome vinyl treatment as the home list, larger */
.episode__cover {
  position: relative;
  overflow: hidden;
  width: clamp(180px, 42vw, 320px);
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  background: var(--black);
  color: var(--white);
  display: grid;
  place-items: center;
  margin-bottom: clamp(28px, 4vw, 44px);
  box-shadow: 0 16px 44px -16px rgba(0, 0, 0, 0.3);
}
.episode__cover::before {
  content: "";
  position: absolute;
  width: 150%; aspect-ratio: 1;
  left: 50%; top: 58%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: repeating-radial-gradient(circle at center,
    rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 8px);
  pointer-events: none;
}
.episode__cover.has-art::before { display: none; }
.episode__num {
  position: relative;
  font-size: clamp(56px, 9vw, 96px);
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.episode__art { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Inline audio player */
.episode__audio {
  width: 100%;
  height: 44px;
  margin-bottom: clamp(28px, 4vw, 44px);
  border-radius: 999px;
  outline: none;
}

.episode__body { max-width: 62ch; }
.episode__lede {
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--black);
  margin-bottom: 28px;
}
.episode__notes p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--gray-1);
  margin-bottom: 18px;
}
.episode__notes a { color: var(--black); text-decoration: underline; text-underline-offset: 3px; }

/* Listen-on links */
.episode__listen {
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: 30px;
  border-top: 1px solid var(--hairline-light);
}
.episode__listen .eyebrow { margin-bottom: 18px; }
.episode__platforms { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; }
.episode__platform {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid var(--hairline-light);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.episode__platform span { color: var(--gray-1); font-size: 0.85em; transition: transform 0.3s var(--ease); }
.episode__platform:hover { background: var(--black); color: var(--white); border-color: var(--black); }
.episode__platform:hover span { color: var(--white); transform: translate(3px, -3px); }

.episode__notfound { text-align: left; padding: 20px 0 40px; }
.episode__notfound .episode__lede { margin: 18px 0 30px; color: var(--gray-1); }
