:root {
  color-scheme: dark;
  --bg: #101011;
  --theme-color: var(--bg);
  --fg: #f4efea;
  --muted: #b8aaa6;
  --gold: #ffcf24;
  --accent: var(--gold);
  --rule: #ffffff30;
  --card: #151515;
  --gutter: clamp(1rem, 3vw, 3.75rem);
  --section-space: clamp(1.65rem, 4vw, 3.55rem);
  font-family: system-ui, sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fff9f2;
  --fg: #241816;
  --muted: #5e4843;
  --accent: #795800;
  --rule: #24181635;
  --card: #fffdf7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
}

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

a:hover, [aria-current] {
  color: var(--accent);
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.skip {
  position: absolute;
  z-index: 2;
  top: .5rem;
  left: .5rem;
  transform: translateY(-160%);
  background: var(--bg);
  padding: .8rem;
}

.skip:focus {
  transform: none;
}

.top, .bottom {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.2rem var(--gutter);
}

.top {
  justify-content: space-between;
  border-bottom: 1px solid var(--rule);
}

.top nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: .65rem clamp(.8rem, 3vw, 2.5rem);
  font-size: .89rem;
}

.top nav a {
  padding-block: .45rem;
}

.top nav [aria-current], .bottom [aria-current] {
  text-decoration: underline;
  text-underline-offset: .45em;
}

.wordmark {
  flex: none;
  width: clamp(8.5rem, 16vw, 12rem);
}

.wordmark img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: .32rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 2.25rem;
  padding: .25rem .65rem;
  border: 1px solid var(--rule);
  border-radius: .3rem;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.theme-toggle[hidden] {
  display: none;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.theme-icon {
  width: .7rem;
  height: .7rem;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  background: linear-gradient(90deg, currentColor 50%, transparent 50%);
}

[data-theme="dark"] .theme-icon {
  transform: rotate(180deg);
}

h1, h2, h3, p {
  margin-top: 0;
}

h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(2.15rem, 4.8vw, 4.4rem);
  font-weight: 830;
  letter-spacing: -.067em;
  line-height: 1;
}

h3 {
  margin-bottom: .45rem;
  font-size: clamp(1.25rem, 2.6vw, 2.3rem);
  font-weight: 820;
  letter-spacing: -.045em;
  line-height: 1.1;
}

.content {
  max-width: 112rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-space);
  border-bottom: 1px solid var(--rule);
}

.page-hero {
  padding-top: clamp(.75rem, 2vw, 1.5rem);
}

.page-banner {
  --hero-accent: var(--gold);
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: clamp(20.5rem, 40vw, 38rem);
  border: 1px solid var(--rule);
  overflow: hidden;
  background: #211e1c;
  color: #fff8ed;
}

.page-banner img, .page-banner::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.page-banner img {
  z-index: -2;
  object-fit: cover;
}

.page-banner::after {
  content: "";
  z-index: -1;
  background: linear-gradient(0deg, #080808e8 0%, #0808086e 55%, transparent), linear-gradient(90deg, #0808089c, transparent 75%);
}

.art-credit {
  margin: .55rem 0 0;
  color: var(--muted);
  font-size: .75rem;
}

.banner-content {
  padding: clamp(1.1rem, 4vw, 3.75rem);
}

.series-banner img {
  top: -77%;
  height: 192%;
  object-position: center 65%;
}

.page-banner h1 {
  max-width: 15ch;
  margin: 0 0 .6rem;
  font-size: clamp(2.65rem, 7.5vw, 7rem);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -.065em;
  line-height: .94;
  text-wrap: balance;
}

.page-banner h1 em {
  color: var(--hero-accent);
  font-style: inherit;
}

.page-banner .intro {
  max-width: 35rem;
  margin-bottom: 0;
  font-size: clamp(.99rem, 1.8vw, 1.18rem);
  line-height: 1.55;
}

.category {
  margin: 0 0 .65rem;
  color: var(--accent);
  font-size: .79rem;
  font-weight: 780;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.page-banner .category {
  color: var(--hero-accent);
}

.action {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-top: 1rem;
  padding: .7rem 1rem;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #12100a;
  font-weight: 780;
}

.action:hover {
  background: #ffe37b;
  color: #12100a;
}

.page-banner a:focus-visible {
  outline-color: var(--hero-accent);
}

.game-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1.1rem;
}

.game-jumps a {
  padding: .55rem .8rem;
  border: 1px solid var(--rule);
  font-weight: 735;
}

.game-jumps a:hover {
  border-color: var(--accent);
}

.game-jumps span {
  margin-left: .25rem;
  color: var(--accent);
}

.game-section-head, .studio {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem 2rem;
  justify-content: space-between;
  align-items: end;
}

.game-section-head {
  margin-bottom: 1.25rem;
}

.game-section-head h2, .studio h2 {
  margin-bottom: .45rem;
}

.game-section-head p, .media-copy p:not(.category), .studio p:not(.category), .episode p:last-child {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0;
}

.studio > div:last-child {
  max-width: 36rem;
}

.episodes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.65rem, 1.5vw, 1.2rem);
}

.episodes-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.episode, .media-panel {
  min-width: 0;
  border: 1px solid var(--rule);
  background: var(--card);
}

.episode:focus-within, .episode:hover, .media-panel:focus-within, .media-panel:hover {
  border-color: var(--accent);
}

.episode-copy, .media-copy {
  padding: clamp(.85rem, 2vw, 1.65rem);
}

.media-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  max-width: 74rem;
}

.poster {
  display: grid;
  position: relative;
  place-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #221d1a;
}

.poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(2.15rem, 4vw, 3rem);
  aspect-ratio: 1;
  border-radius: 50%;
  padding-left: .12rem;
  background: var(--gold);
  color: #12100a;
  box-shadow: 0 .2rem .8rem #0008;
}

.poster:hover .play {
  background: #ffe37b;
}

.inline, .legal a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: .24em;
}

.studio .inline {
  display: inline-block;
  margin-top: .6rem;
}

.legal {
  width: min(100% - 2 * var(--gutter), 48rem);
  min-height: 64vh;
  margin-inline: auto;
  padding-block: var(--section-space);
}

.legal h1 {
  margin: 0 0 .7rem;
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 850;
  letter-spacing: -.065em;
  line-height: 1;
}

.legal-brand {
  color: var(--accent);
  font-size: .8rem;
  font-weight: 760;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.legal-date {
  color: var(--muted);
  font-size: .9rem;
}

.legal-lede {
  margin-bottom: 2rem;
  font-size: clamp(1.05rem, 2.35vw, 1.28rem);
  line-height: 1.6;
}

.legal section {
  padding-top: 1.1rem;
  margin-top: 1.35rem;
  border-top: 1px solid var(--rule);
}

.legal section h2 {
  margin: 0 0 .45rem;
  font-size: clamp(1.3rem, 3vw, 1.85rem);
  letter-spacing: -.04em;
  line-height: 1.2;
}

.legal section p {
  margin: 0;
  line-height: 1.65;
  color: var(--muted);
}

.bottom {
  color: var(--muted);
  font-size: .84rem;
  flex-wrap: wrap;
}

.bottom span {
  margin-right: auto;
}

@media (max-width: 850px) {
  .episodes-three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .top {
    flex-direction: column;
    align-items: flex-start;
    gap: .55rem;
  }

  .top nav {
    width: 100%;
    justify-content: flex-start;
    gap: .3rem 1rem;
  }

  .page-banner {
    min-height: 19rem;
  }

  .episodes, .media-panel {
    grid-template-columns: 1fr;
  }
}
