@import url("https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Space+Grotesk:wght@500;600;700&display=swap");
:root {
  --cream: #fff8e9;
  --ink: #29275f;
  --indigo: #24245d;
  --violet: #65317f;
  --mauve: #aa5d9d;
  --pink: #ef1675;
  --orange: #ff784f;
  --sun: #ffb44c;
  --paper: #fffdf5;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, transparent 49%, rgb(41 39 95 / 4%) 50%, transparent 51%),
    var(--cream);
  background-size: 32px 32px;
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
}

a {
  color: inherit;
}

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 6px solid var(--pink);
  background: rgb(255 248 233 / 94%);
  backdrop-filter: blur(14px);
}

.site-header::after {
  position: absolute;
  right: 0;
  bottom: -14px;
  left: 0;
  height: 8px;
  background: linear-gradient(
    90deg,
    var(--violet),
    var(--mauve),
    var(--orange),
    var(--sun)
  );
  content: "";
}

.header-inner {
  display: flex;
  width: min(1160px, calc(100% - 40px));
  min-height: 58px;
  margin: auto;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.wordmark {
  font-family: "Press Start 2P", monospace;
  font-size: 0.9rem;
  text-decoration: none;
}

.site-header nav {
  display: flex;
  gap: 26px;
}

.site-header nav a,
.breadcrumbs a {
  font-weight: 700;
  text-decoration: none;
}

.site-header nav a:hover,
.breadcrumbs a:hover {
  color: var(--pink);
}

.page-shell {
  width: min(1160px, calc(100% - 40px));
  margin: auto;
}

.breadcrumbs {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  color: #5d5682;
  font-size: 0.86rem;
}

.hero {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  border: 6px solid var(--violet);
  border-radius: 84px 84px 42px 42px;
  background: var(--indigo);
  box-shadow:
    0 0 0 8px var(--pink),
    0 0 0 14px var(--orange),
    0 22px 0 var(--ink);
  color: white;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  inset: 16px;
  z-index: -1;
  border: 2px solid rgb(255 255 255 / 34%);
  border-radius: 64px 64px 28px 28px;
  content: "";
}

.hero-copy {
  position: relative;
  z-index: 4;
  width: min(610px, 65%);
  padding: 76px 0 64px 70px;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--sun);
  font-family: "Press Start 2P", monospace;
  font-size: 0.68rem;
  line-height: 1.8;
}

h1,
h2,
h3,
p {
  text-wrap: balance;
}

h1 {
  margin: 0;
  font-family: "Press Start 2P", monospace;
  font-size: clamp(3rem, 7.3vw, 6.4rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
  text-shadow: 7px 7px 0 var(--violet);
}

.version-pill {
  display: inline-block;
  margin-top: 24px;
  border: 3px solid white;
  border-radius: 999px;
  padding: 11px 16px 9px;
  background: var(--pink);
  font-family: "Press Start 2P", monospace;
  font-size: 0.73rem;
  box-shadow: 5px 5px 0 var(--orange);
}

.hero-description {
  max-width: 540px;
  margin: 34px 0 32px;
  color: #f7eafd;
  font-size: 1.16rem;
  line-height: 1.65;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border: 3px solid var(--ink);
  border-radius: 12px;
  padding: 17px 20px 15px;
  background: var(--sun);
  color: var(--ink);
  font-family: "Press Start 2P", monospace;
  font-size: 0.64rem;
  line-height: 1.5;
  text-decoration: none;
  box-shadow: 7px 7px 0 var(--pink);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.primary-button:hover {
  box-shadow: 3px 3px 0 var(--pink);
  transform: translate(4px, 4px);
}

.hero-lines {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.line {
  position: absolute;
  top: -210px;
  right: -220px;
  width: 650px;
  height: 650px;
  border: 42px solid;
  border-radius: 50%;
}

.line-1 {
  border-color: var(--violet);
}

.line-2 {
  inset: -154px -164px auto auto;
  width: 538px;
  height: 538px;
  border-color: var(--mauve);
}

.line-3 {
  inset: -99px -109px auto auto;
  width: 428px;
  height: 428px;
  border-color: var(--pink);
}

.line-4 {
  inset: -43px -53px auto auto;
  width: 316px;
  height: 316px;
  border-color: var(--orange);
}

.line-5 {
  inset: 12px 2px auto auto;
  width: 206px;
  height: 206px;
  border-color: var(--sun);
}

.orbital-mark {
  position: absolute;
  right: 74px;
  bottom: 52px;
  width: 330px;
  height: 260px;
}

.planet {
  position: absolute;
  top: 72px;
  left: 82px;
  width: 154px;
  height: 154px;
  border: 5px solid var(--cream);
  border-radius: 50%;
  background: linear-gradient(145deg, var(--orange) 0 45%, var(--pink) 46% 70%, var(--violet) 71%);
  box-shadow: 12px 12px 0 rgb(0 0 0 / 18%);
}

.orbit {
  position: absolute;
  border: 4px solid var(--cream);
  border-radius: 50%;
  transform: rotate(-18deg);
}

.orbit-1 {
  inset: 45px 12px 25px;
}

.orbit-2 {
  inset: 13px 46px 0;
  transform: rotate(26deg);
}

.star {
  position: absolute;
  color: var(--sun);
  font-size: 2rem;
}

.star-1 {
  top: 4px;
  left: 12px;
}

.star-2 {
  right: 12px;
  bottom: 8px;
  color: var(--pink);
}

.star-3 {
  top: 5px;
  right: 38px;
  color: var(--orange);
  font-size: 1rem;
}

.episode-section {
  padding: 18px 0 20px;
}

.section-heading {
  display: block;
  margin-bottom: 18px;
}

.section-heading .eyebrow {
  color: var(--pink);
  margin-bottom: 12px;
}

h2 {
  margin: 0;
  font-family: "Press Start 2P", monospace;
  font-size: clamp(1.35rem, 2.7vw, 2.45rem);
  line-height: 1.25;
}

.release-note {
  margin: 0;
  color: #5d5682;
  line-height: 1.6;
}

.episode-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.episode-card {
  position: relative;
  display: flex;
  min-height: 0;
  height: clamp(330px, calc(100vh - 255px), 440px);
  overflow: hidden;
  flex-direction: column;
  border: 4px solid var(--ink);
  border-radius: 22px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  text-decoration: none;
}

.episode-card.available {
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.episode-card.available:hover {
  box-shadow: 3px 3px 0 var(--ink);
  transform: translate(5px, 5px);
}

.episode-card.unavailable {
  filter: saturate(0.7);
}

.episode-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid var(--ink);
  padding: 13px 17px 11px;
  font-family: "Press Start 2P", monospace;
  font-size: 0.64rem;
}

.episode-topline strong {
  font-size: 1rem;
}

.episode-arch {
  position: relative;
  height: clamp(120px, 21vh, 165px);
  overflow: hidden;
  background: var(--indigo);
}

.episode-arch span {
  position: absolute;
  right: 50%;
  bottom: -96px;
  width: 260px;
  height: 260px;
  border: 28px solid var(--violet);
  border-radius: 50%;
  transform: translateX(50%);
}

.episode-arch span:nth-child(2) {
  width: 200px;
  height: 200px;
  border-color: var(--pink);
}

.episode-arch span:nth-child(3) {
  width: 140px;
  height: 140px;
  border-color: var(--orange);
}

.episode-card:nth-child(2) .episode-arch span {
  right: 9%;
  bottom: -110px;
}

.episode-card:nth-child(3) .episode-arch span {
  right: 88%;
  bottom: -80px;
}

.episode-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 17px 18px 16px;
}

h3 {
  margin: 0 0 9px;
  font-family: "Press Start 2P", monospace;
  font-size: 0.76rem;
  line-height: 1.65;
}

.episode-copy p {
  margin: 0;
  color: #655e83;
  font-size: 0.9rem;
  line-height: 1.4;
}

.episode-status {
  margin-top: auto;
  padding-top: 14px;
  color: var(--pink);
  font-family: "Press Start 2P", monospace;
  font-size: 0.62rem;
  line-height: 1.5;
}

.unavailable .episode-status {
  color: #77718f;
}

footer {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 4px solid var(--ink);
  color: #625b82;
  font-family: "Press Start 2P", monospace;
  font-size: 0.55rem;
  line-height: 1.6;
}

@media (min-width: 851px) {
  body {
    min-height: 100vh;
    overflow: hidden;
  }

  .page-shell {
    height: calc(100vh - 66px);
  }
}

@media (min-width: 851px) and (max-height: 720px) {
  .header-inner {
    min-height: 48px;
  }

  .breadcrumbs {
    min-height: 38px;
    font-size: 0.76rem;
  }

  .episode-section {
    padding: 10px 0 12px;
  }

  .section-heading {
    margin-bottom: 11px;
  }

  h2 {
    font-size: 1.45rem;
  }

  .episode-card {
    height: calc(100vh - 205px);
  }

  .episode-arch {
    height: 105px;
  }

  footer {
    min-height: 42px;
  }
}

@media (max-width: 850px) {
  .hero {
    min-height: 680px;
    border-radius: 58px 58px 32px 32px;
  }

  .hero-copy {
    width: 100%;
    padding: 58px 44px 260px;
  }

  .orbital-mark {
    right: 50%;
    bottom: 20px;
    transform: translateX(50%) scale(0.84);
  }

  .section-heading {
    grid-template-columns: 1fr;
  }

  .episode-grid {
    grid-template-columns: 1fr;
  }

  .episode-card {
    min-height: 390px;
    height: auto;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .page-shell {
    width: min(100% - 24px, 1160px);
  }

  .header-inner {
    min-height: 88px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
  }

  .site-header nav {
    gap: 18px;
    font-size: 0.78rem;
  }

  .breadcrumbs {
    overflow-x: auto;
    white-space: nowrap;
  }

  .hero {
    min-height: 630px;
    border-width: 4px;
    border-radius: 38px 38px 24px 24px;
    box-shadow:
      0 0 0 5px var(--pink),
      0 0 0 9px var(--orange),
      0 14px 0 var(--ink);
  }

  .hero-copy {
    padding: 48px 24px 240px;
  }

  h1 {
    font-size: clamp(2.25rem, 14vw, 4rem);
  }

  .hero-description {
    font-size: 1rem;
  }

  .orbital-mark {
    transform: translateX(50%) scale(0.68);
  }

  .episode-section {
    padding-top: 90px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .primary-button,
  .episode-card.available {
    transition: none;
  }
}
