:root {
  color-scheme: dark;
  --deep-bg: #0e1310;
  --dark-surface: #19221d;
  --light-surface: #f5f4ef;
  --pale-green: #e9eee9;
  --light-text: #f7f7f2;
  --dark-text: #18201c;
  --muted-light: #b6beb8;
  --muted-dark: #5f685f;
  --gold: #e8b951;
  --green: #1f704c;
  --content-width: 75rem;
  --reading-width: 48rem;
  --radius: 0.375rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--deep-bg);
  color: var(--light-text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a,
button {
  min-height: 44px;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

button {
  border: 0;
  font: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.5rem;
  left: 0.5rem;
  display: grid;
  place-items: center;
  padding: 0.5rem 0.75rem;
  background: var(--light-surface);
  color: var(--dark-text);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.skip-link:focus-visible {
  outline-color: var(--green);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 72px;
  padding: 0 2rem;
  background: var(--deep-bg);
  color: var(--light-text);
}

body[data-page="home"] .site-header {
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(14, 19, 16, 0.78);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
}

.brand-link img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.site-navigation {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-navigation a,
.menu-button {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  font-size: 0.9375rem;
  text-decoration: none;
}

.menu-button {
  display: none;
  background: transparent;
  color: inherit;
}

.release-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.875rem;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  background: transparent;
  color: var(--gold);
  cursor: not-allowed;
  opacity: 1;
}

.hero {
  position: relative;
  display: grid;
  min-height: min(52rem, 92svh);
  overflow: hidden;
  background: var(--dark-surface);
}

.hero-media,
.hero-overlay,
.hero-content {
  grid-area: 1 / 1;
}

.hero-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background: rgba(5, 9, 7, 0.44);
}

.hero-content {
  z-index: 1;
  align-self: end;
  width: min(100% - 4rem, var(--reading-width));
  margin: 0 auto 4rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--gold);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.05;
}

h1 {
  max-width: 13ch;
  margin-bottom: 1rem;
  font-size: 3.75rem;
}

h2 {
  margin-bottom: 1rem;
  font-size: 2.5rem;
}

h3 {
  margin-bottom: 0.25rem;
  font-size: 1.125rem;
  line-height: 1.25;
}

.hero-content > p:not(.eyebrow) {
  max-width: 41rem;
  margin-bottom: 1.5rem;
  color: var(--pale-green);
  font-size: 1.125rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--light-text);
  border-radius: var(--radius);
  text-decoration: none;
}

.characters-section,
.safety-section,
.release-band,
.legal-page {
  padding: 6rem max(2rem, calc((100% - var(--content-width)) / 2));
}

.characters-section {
  background: var(--light-surface);
  color: var(--dark-text);
}

.section-heading {
  max-width: var(--reading-width);
  margin-bottom: 2.5rem;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--muted-dark);
}

.character-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.character-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: end;
  aspect-ratio: 4 / 5;
  min-width: 0;
  padding: 1.25rem;
  overflow: hidden;
  border-radius: var(--radius);
  color: var(--light-text);
}

.character-card::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 52%;
  background: rgba(5, 9, 7, 0.62);
  content: "";
}

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

.character-card h3,
.character-card p {
  z-index: 1;
  margin-bottom: 0;
}

.character-card p {
  color: var(--pale-green);
  font-size: 0.9375rem;
}

.experience-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: var(--dark-surface);
}

.experience-band > img {
  width: 100%;
  height: 100%;
  min-height: 38rem;
  object-fit: cover;
}

.experience-content {
  align-self: center;
  max-width: 42rem;
  padding: 4rem clamp(2rem, 6vw, 6rem);
}

.experience-content > p:not(.eyebrow) {
  color: var(--muted-light);
}

.experience-points {
  display: grid;
  gap: 1rem;
  margin: 2rem 0 0;
}

.experience-points div {
  padding-top: 1rem;
  border-top: 1px solid rgba(233, 238, 233, 0.25);
}

.experience-points dt {
  color: var(--gold);
  font-weight: 700;
}

.experience-points dd {
  margin: 0.25rem 0 0;
  color: var(--muted-light);
}

.safety-section {
  background: var(--pale-green);
  color: var(--dark-text);
}

.safety-section .eyebrow {
  color: var(--green);
}

.safety-section a,
.legal-page a {
  color: var(--green);
  font-weight: 700;
}

.safety-grid a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-block: -0.625rem;
  vertical-align: middle;
}

.safety-section a:focus-visible,
.legal-page a:focus-visible {
  outline-color: var(--green);
}

.safety-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.safety-grid article {
  min-width: 0;
  padding-right: 1rem;
  border-top: 2px solid var(--green);
}

.safety-grid h3 {
  margin-top: 1rem;
}

.safety-grid p {
  margin-bottom: 0;
  color: var(--muted-dark);
}

.release-band {
  background: var(--deep-bg);
}

.release-band > p:not(.eyebrow) {
  max-width: var(--reading-width);
  color: var(--muted-light);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem max(2rem, calc((100% - var(--content-width)) / 2));
  border-top: 1px solid rgba(233, 238, 233, 0.2);
  background: var(--deep-bg);
  color: var(--muted-light);
  font-size: 0.875rem;
}

.site-footer p {
  margin-bottom: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
}

.legal-page {
  min-height: calc(100vh - 72px);
  background: var(--light-surface);
  color: var(--dark-text);
}

.legal-heading,
.legal-content {
  max-width: var(--reading-width);
}

.legal-heading {
  margin-bottom: 3rem;
}

.legal-heading .updated,
.legal-content {
  color: var(--muted-dark);
}

.legal-content h2,
.legal-content h3 {
  margin-top: 2.5rem;
  color: var(--dark-text);
}

.legal-content h2 {
  font-size: 1.75rem;
}

.legal-content li + li {
  margin-top: 0.5rem;
}

.legal-toc {
  display: none;
}

.contact-page {
  padding: 6rem max(2rem, calc((100% - var(--content-width)) / 2));
  min-height: calc(100vh - 72px);
  background: var(--light-surface);
  color: var(--dark-text);
}

.contact-heading {
  max-width: var(--reading-width);
  margin-bottom: 3rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  max-width: var(--content-width);
}

.contact-details {
  font-style: normal;
  line-height: 2;
}

.contact-details a {
  color: var(--green);
  font-weight: 700;
}

.has-reveal-motion [data-reveal] {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.has-reveal-motion [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 699px) {
  .site-header {
    height: 64px;
    padding: 0 1rem;
  }

  .menu-button {
    display: inline-flex;
  }

  .site-navigation {
    gap: 0;
  }

  .site-navigation a,
  .site-navigation .release-status {
    display: none;
  }

  .site-navigation[data-open] {
    position: absolute;
    top: 64px;
    right: 0;
    left: 0;
    display: grid;
    gap: 0.25rem;
    padding: 0.5rem 1rem 1rem;
    border-top: 1px solid rgba(233, 238, 233, 0.2);
    background: var(--deep-bg);
  }

  .site-navigation[data-open] a,
  .site-navigation[data-open] .release-status {
    display: inline-flex;
    justify-content: flex-start;
  }

  .hero-content {
    width: min(100% - 2rem, var(--reading-width));
    margin-bottom: 2.5rem;
  }

  h1 {
    font-size: 2.75rem;
  }

  h2 {
    font-size: 2rem;
  }

  .characters-section,
  .safety-section,
  .release-band,
  .legal-page {
    padding: 4rem 1rem;
  }

  .character-grid,
  .safety-grid,
  .experience-band {
    grid-template-columns: 1fr;
  }

  .experience-band > img {
    min-height: 28rem;
  }

  .experience-content {
    padding: 3rem 1rem 4rem;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 2rem 1rem;
  }
}

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

  .character-card {
    max-width: 32rem;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
