@font-face {
  font-display: swap;
  font-family: 'Kit Display';
  font-weight: 400;
  src: url('/assets/KitDisplay-Regular.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: Nunito;
  font-weight: 400;
  src: url('/assets/Nunito-Regular.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: Nunito;
  font-weight: 800;
  src: url('/assets/Nunito-ExtraBold.woff2') format('woff2');
}

:root {
  color-scheme: dark;

  --ink: #3a2a3f;
  --night: #1b1538;
  --cream: #fff6e3;
  --gold: #e8b84a;
  --teal: #2f8f8a;
  --spirit: #8ff0f5;
}

* {
  box-sizing: border-box;
}

body {
  background: var(--night);
  color: var(--cream);
  font-family: Nunito, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  margin: 0;
}

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

a:hover {
  color: var(--spirit);
}

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

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

h1,
h2,
h3 {
  font-family: 'Kit Display', sans-serif;
  font-weight: 400;
  line-height: 1.12;
}

h1 {
  font-size: clamp(2.8rem, 5.4vw, 5rem);
  margin: 0 0 1.5rem;
}

h2 {
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  margin: 0 0 1.25rem;
}

h3 {
  font-size: 1.65rem;
  margin: 0 0 0.7rem;
}

p {
  margin: 0 0 1.5rem;
}

.skip-link {
  background: var(--cream);
  color: var(--ink);
  left: 1rem;
  padding: 0.75rem 1rem;
  position: absolute;
  top: -8rem;
  z-index: 20;
}

.skip-link:focus {
  top: 1rem;
}

.draft-banner {
  background: #e8b84a;
  color: #241c31;
  font-size: 0.9rem;
  font-weight: 800;
  margin: 0;
  padding: 0.65rem 1.25rem;
  text-align: center;
}

.site-header,
.site-footer,
main > section,
.legal-layout {
  margin-inline: auto;
  width: min(1200px, calc(100% - 3rem));
}

.site-header {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding-block: 1.25rem;
}

.brand {
  width: clamp(150px, 21vw, 240px);
}

.site-header nav {
  align-items: center;
  display: flex;
  gap: 1.5rem;
}

.site-header nav > a:first-child {
  font-weight: 800;
}

.button {
  align-items: center;
  background: linear-gradient(#ffe79a, #e8b84a);
  border: 2px solid #120a24;
  border-radius: 0.65rem;
  box-shadow:
    0 5px 0 #8a5a34,
    inset 0 2px 0 #fff6e3;
  color: #241c31;
  display: inline-flex;
  font-size: 1.1rem;
  font-weight: 800;
  gap: 0.75rem;
  justify-content: center;
  padding: 0.85rem 1.65rem;
  text-align: center;
  text-decoration: none;
}

.button:hover {
  background: #ffe79a;
  color: #241c31;
}

.hero {
  align-items: center;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
  min-height: 680px;
  padding-block: 3rem 5rem;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  color: var(--spirit);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0 0 1.2rem;
  text-transform: uppercase;
}

.intro {
  font-size: 1.2rem;
  max-width: 36rem;
}

.hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-block: 2rem;
}

.text-link {
  font-weight: 800;
}

.play-note {
  color: #ddd6ff;
  font-size: 0.9rem;
  margin-bottom: 0;
}

.hero-art {
  background:
    radial-gradient(ellipse at 50% 75%, #4fe0e830, #1b153870 68%),
    url('/assets/stage.webp') center/cover;
  border-radius: 48% 48% 42% 42%;
  height: 530px;
  margin: 0;
  min-width: 0;
  position: relative;
}

.hero-art img {
  max-width: none;
  position: absolute;
}

.hero-wren {
  left: 5%;
  top: 6%;
  width: 87%;
  z-index: 3;
}

.hero-ember {
  left: 0;
  top: -7%;
  width: 65%;
  z-index: 2;
}

.hero-fen {
  right: 0;
  top: -10%;
  width: 65%;
  z-index: 1;
}

.hero-art figcaption {
  bottom: 0.4rem;
  color: #ddd6ff;
  font-size: 0.75rem;
  left: 0;
  padding-inline: 1rem;
  position: absolute;
  right: 0;
  text-align: center;
  z-index: 4;
}

.adventure {
  border-top: 1px solid #8ff0f540;
  display: grid;
  gap: clamp(2rem, 7vw, 7rem);
  grid-template-columns: 1fr 1fr;
  padding-block: 5rem;
}

.adventure > div {
  align-self: center;
}

.journey {
  list-style: none;
  margin: 0;
  padding: 0;
}

.journey li {
  padding: 0.5rem 0 1.4rem 3.8rem;
  position: relative;
}

.journey li + li {
  border-top: 1px solid #fff6e322;
  padding-top: 1.7rem;
}

.journey p {
  color: #ddd6ff;
  margin-bottom: 0;
}

.step-number {
  color: var(--gold);
  font-family: 'Kit Display', sans-serif;
  font-size: 2rem;
  left: 0;
  position: absolute;
}

.heroes {
  padding-block: 5rem;
}

.section-heading {
  margin: 0 auto 3rem;
  max-width: 44rem;
  text-align: center;
}

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

.hero-card {
  background: radial-gradient(ellipse at 50% 15%, #2f8f8a80, #251d4a 60%);
  border: 1px solid #e8b84a80;
  border-radius: 1rem;
  padding: 0 1.75rem 1rem;
  text-align: center;
}

.hero-card img {
  margin-top: -1.25rem;
  width: 100%;
}

.hero-card h3 {
  color: var(--gold);
  font-size: 2rem;
}

.hero-card p {
  color: #ddd6ff;
}

.closing {
  border-top: 1px solid #8ff0f540;
  padding-block: 5rem;
  text-align: center;
}

.closing h2,
.closing p {
  margin-inline: auto;
  max-width: 42rem;
}

.site-footer {
  border-top: 1px solid #fff6e322;
  color: #ddd6ff;
  font-size: 0.9rem;
  padding-block: 2rem;
}

.site-footer > a {
  font-family: 'Kit Display', sans-serif;
  font-size: 1.4rem;
  text-decoration: none;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-block: 1rem;
}

.site-footer p {
  margin-bottom: 0.75rem;
  max-width: 48rem;
}

.legal-layout {
  align-items: start;
  display: grid;
  gap: 2rem 4rem;
  grid-template-columns: 240px minmax(0, 1fr);
  padding-block: 3rem 5rem;
}

.legal-heading {
  grid-column: 1 / -1;
  max-width: 55rem;
}

.legal-heading h1 {
  margin-top: 2rem;
}

.version {
  color: #ddd6ff;
  font-size: 0.9rem;
}

.legal-contents {
  display: grid;
  font-size: 0.9rem;
  gap: 0.85rem;
  padding-block: 0.75rem;
  position: sticky;
  top: 1.5rem;
}

.legal-document {
  max-width: 47rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

.legal-document section {
  margin-bottom: 2.5rem;
}

.legal-document h2 {
  font-family: Nunito, sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.4;
}

.legal-document li {
  margin-block: 0.6rem;
}

@media (width <= 900px) {
  .hero {
    gap: 1.5rem;
    grid-template-columns: 1fr;
    padding-top: 2rem;
  }

  .hero-copy {
    max-width: 43rem;
  }

  .hero-art {
    height: min(530px, 80vw);
    margin: 0 auto;
    width: min(540px, 85%);
  }

  .adventure {
    gap: 2rem;
    grid-template-columns: 1fr;
  }

  .legal-layout {
    gap: 1.5rem;
    grid-template-columns: 1fr;
  }

  .legal-contents {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 1.5rem;
    position: static;
  }
}

@media (width <= 600px) {
  .site-header,
  .site-footer,
  main > section,
  .legal-layout {
    width: calc(100% - 2rem);
  }

  .site-header {
    align-items: flex-start;
  }

  .site-header nav {
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: flex-end;
  }

  .site-header .button {
    font-size: 0.95rem;
    padding: 0.6rem 0.8rem;
  }

  .hero {
    padding-bottom: 3rem;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-art {
    height: 90vw;
  }

  .adventure,
  .heroes,
  .closing {
    padding-block: 3rem;
  }

  .hero-grid {
    gap: 2rem;
    grid-template-columns: 1fr;
  }

  .hero-card {
    align-items: center;
    display: grid;
    gap: 0 1rem;
    grid-template-columns: 130px minmax(0, 1fr);
    padding: 1rem;
    text-align: left;
  }

  .hero-card img {
    grid-row: span 2;
    margin: 0;
    width: 130px;
  }

  .hero-card h3 {
    margin-bottom: 0.25rem;
  }

  .hero-card p {
    font-size: 0.95rem;
    margin: 0;
  }

  .legal-contents {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto;
  }
}
