@font-face {
  font-family: "New Rocker";
  src: url("media/new-rocker.woff2") format("woff2");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --stone: #101018;
  --gold: #f4cc83;
  --ivory: #fff2d9;
  --muted: #cec7c9;
  --line: #453641;
  --edge: max(1.25rem, calc((100vw - 78rem) / 2));
  background: var(--stone);
  color: var(--ivory);
  font:
    1rem/1.6 system-ui,
    sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
body,
h1,
h2,
h3,
p {
  margin: 0;
}
a {
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 2px solid #ffdf9a;
  outline-offset: 5px;
}

.masthead,
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem var(--edge);
  background: #101018;
  border-bottom: 1px solid var(--line);
}

.brand,
.masthead-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 0.65rem;
  text-decoration: none;
}

.brand {
  color: var(--ivory);
  font:
    1.2rem "New Rocker",
    Georgia,
    serif;
}
.masthead-link {
  color: var(--gold);
  font-size: 0.875rem;
  font-weight: 650;
}
.masthead-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.hero {
  isolation: isolate;
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(49rem, calc(100svh - 3.9rem));
  padding: clamp(2rem, 6vh, 5rem) var(--edge) 5rem;
  background: #191521;
  border-bottom: 1px solid #6b5245;
}

.hero-film,
.hero-film > *,
.hero-film img,
.hero::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-film {
  z-index: -2;
  left: 18%;
  overflow: hidden;
  width: auto;
}

.hero-film img,
.hero-film video {
  object-fit: cover;
  object-position: 58% center;
}
.hero-film video {
  visibility: hidden;
}
.hero-film video[data-started] {
  visibility: visible;
}

.hero::after {
  z-index: -1;
  content: "";
  background:
    linear-gradient(
      90deg,
      #100d18 3%,
      #100d18f5 21%,
      #100d18ab 40%,
      #100d1808 68%
    ),
    linear-gradient(
      0deg,
      #100d18 0%,
      transparent 34%,
      transparent 84%,
      #100d1873
    );
}

.hero-copy {
  width: min(34rem, 100%);
}

.status,
.eyebrow,
.footer {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.16em;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.4rem 0.8rem;
  background: #1e1725;
  border: 1px solid #705344;
  border-radius: 2px;
}

.status span {
  width: 0.48rem;
  height: 0.48rem;
  background: var(--gold);
  box-shadow: 0 0 0.7rem #ffba58;
  transform: rotate(45deg);
}

.wordmark {
  width: clamp(14rem, 33vw, 28rem);
  height: auto;
  margin: 0.45rem 0 0.25rem;
  filter: drop-shadow(0 0.55rem 1.3rem #100718a8);
}

h1,
h2,
h3 {
  font:
    400 1.4rem/1.13 "New Rocker",
    Georgia,
    serif;
  text-wrap: balance;
}

h1 {
  font-size: clamp(1.9rem, 4.05vw, 3.9rem);
}
.hero-description {
  max-width: 28rem;
  margin-top: 0.85rem;
  color: #e6dce0;
  font-size: clamp(1rem, 1.45vw, 1.13rem);
}

.descent {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 1.15rem;
  margin-top: 1.5rem;
  padding: 0.5rem 1.15rem;
  border: 1px solid #e0ad62;
  border-radius: 3px;
  background: linear-gradient(#ffdda0, #d49b4d);
  box-shadow:
    inset 0 0 0 2px #82522255,
    0 4px 0 #563522;
  color: #29192b;
  font-weight: 750;
  text-decoration: none;
}

.descent:hover {
  background: #ffe1a5;
}
.descent span {
  width: 0.55rem;
  height: 0.55rem;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: translateY(-2px) rotate(45deg);
}

.film-toggle {
  position: absolute;
  right: var(--edge);
  bottom: 1rem;
  min-height: 44px;
  padding: 0.25rem 0.8rem;
  border: 1px solid #938079;
  border-radius: 3px;
  background: #17121ee8;
  color: var(--ivory);
  cursor: pointer;
  font:
    650 0.8rem system-ui,
    sans-serif;
}

.film-toggle:hover {
  background: #2e2133;
}

.overview {
  padding: clamp(3.25rem, 7vw, 6rem) var(--edge) clamp(3rem, 6vw, 5rem);
  background: radial-gradient(ellipse at 50% 0%, #302137, var(--stone) 62%);
}

.overview-heading {
  margin-bottom: 2rem;
  text-align: center;
}
.overview-heading .eyebrow {
  margin-bottom: 0.5rem;
}
.overview h2 {
  font-size: clamp(2rem, 4.5vw, 3.6rem);
}
.chapters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.85rem, 2vw, 1.65rem);
}

.chapter {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #17141f;
}

.chapter-art {
  width: 100%;
  height: auto;
  border-bottom: 1px solid var(--line);
}

.chapter-copy {
  padding: clamp(1rem, 2vw, 1.55rem);
}
.chapter h3 {
  margin: 0.25rem 0 0.55rem;
}
.chapter-copy > p:last-child,
.raid p {
  color: var(--muted);
}

.raid {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.25rem);
  width: fit-content;
  margin: 2rem auto 0;
  padding: 0.75rem clamp(1rem, 3vw, 2.25rem);
  border-block: 1px solid var(--line);
}

.raid img {
  width: clamp(3.5rem, 8vw, 5.5rem);
  height: auto;
  flex: none;
}
.raid p {
  margin-top: 0.25rem;
}
.footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  min-height: 3.5rem;
}
.footer span:last-child {
  color: var(--muted);
}

@media (orientation: portrait) {
  .hero {
    align-items: end;
    padding-top: clamp(10rem, 33svh, 28rem);
  }
  .hero-film {
    left: 0;
  }
  .hero-film img,
  .hero-film video {
    object-position: center 36%;
  }
  .hero::after {
    background: linear-gradient(
      0deg,
      #100d18 3%,
      #100d18eb 32%,
      #100d1866 58%,
      #100d1800 82%
    );
  }
  .hero-copy {
    width: min(36rem, 100%);
  }
}

@media (max-width: 46rem) {
  .chapters {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 46rem) and (orientation: portrait) {
  .chapter-controls {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
    margin-bottom: 0.7rem;
  }

  .chapter-controls button {
    min-height: 44px;
    padding: 0.25rem;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: #17141f;
    color: var(--muted);
    font:
      650 0.875rem system-ui,
      sans-serif;
    cursor: pointer;
  }

  .chapter-controls button[aria-current="true"] {
    border-color: #a1754b;
    background: #352439;
    color: var(--gold);
  }

  .chapters[data-carousel] {
    position: relative;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
  }

  .chapters[data-carousel] .chapter {
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
}

@media (orientation: landscape) and (max-height: 34rem) {
  .hero {
    padding-top: 1rem;
    padding-bottom: 1.75rem;
  }
  .hero::after {
    background:
      linear-gradient(90deg, #100d18 12%, #100d18d9 48%, #100d1808 82%),
      linear-gradient(0deg, #100d18, transparent 36%);
  }
  .hero-copy {
    width: min(32rem, 69%);
  }
  .wordmark {
    width: min(9rem, 100%);
  }
  .hero-description {
    font-size: 0.95rem;
    line-height: 1.45;
  }
  .descent {
    margin-top: 1rem;
  }
}
