:root {
  color-scheme: dark;
  --pine: oklch(21% 0.055 164);
  --pine-deep: oklch(16% 0.04 164);
  --ivory: oklch(94% 0.032 87);
  --ivory-muted: oklch(84% 0.035 86);
  --gold: oklch(73% 0.13 80);
  --gold-bright: oklch(79% 0.14 80);
  --focus: oklch(83% 0.15 83);
  --display: Didot, "Bodoni 72", Baskerville, "Iowan Old Style", Georgia, serif;
  --ui: "Avenir Next", Avenir, "Helvetica Neue", sans-serif;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 0.75rem;
  --space-lg: 1rem;
  --space-xl: 1.5rem;
  --space-2xl: 2rem;
  --space-3xl: 3rem;
  --space-4xl: 4rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
  background: var(--pine);
}

body {
  min-width: 20rem;
  min-height: 100svh;
  margin: 0;
  color: var(--ivory);
  background: var(--pine);
  font-family: var(--ui);
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.35;
  background:
    radial-gradient(circle at 18% 24%, oklch(29% 0.06 162 / 32%), transparent 36%),
    repeating-linear-gradient(103deg, transparent 0 0.5rem, oklch(8% 0.02 164 / 3%) 0.55rem 0.6rem);
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 0.1875rem solid var(--focus);
  outline-offset: 0.25rem;
}

.skip-link {
  position: fixed;
  inset-block-start: var(--space-md);
  inset-inline-start: var(--space-md);
  z-index: 100;
  min-height: 2.75rem;
  padding: var(--space-md) var(--space-lg);
  color: var(--pine);
  background: var(--ivory);
  transform: translateY(-180%);
}

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

.launch-shell {
  position: relative;
  min-height: 100svh;
  overflow: clip;
  isolation: isolate;
}

.site-header {
  position: absolute;
  inset-block-start: clamp(1.25rem, 3vw, 2rem);
  inset-inline: clamp(1.25rem, 3vw, 3rem);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
}

.brand {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: var(--space-lg);
  font-size: clamp(0.75rem, 1.1vw, 0.98rem);
  font-weight: 700;
  letter-spacing: 0.28em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand img {
  width: clamp(2.5rem, 3.2vw, 3rem);
  height: clamp(2.5rem, 3.2vw, 3rem);
  border-radius: 0.65rem;
  box-shadow: 0 0.625rem 1.5rem oklch(8% 0.02 164 / 25%);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(20rem, 33.5%) minmax(0, 1fr);
  min-height: 100svh;
  align-items: start;
}

.hero-copy {
  position: relative;
  z-index: 4;
  display: flex;
  width: 100%;
  min-height: min(100svh, 64rem);
  padding-block: clamp(7.5rem, 12vh, 10rem) 2rem;
  padding-inline-start: clamp(1.5rem, 3vw, 3rem);
  justify-content: center;
  flex-direction: column;
}

.eyebrow {
  margin: 0 0 clamp(1.1rem, 2.2vh, 1.75rem);
  color: var(--gold-bright);
  font-size: clamp(0.64rem, 0.85vw, 0.78rem);
  font-weight: 750;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

h1,
p {
  text-wrap: pretty;
}

h1 {
  margin: 0;
  color: var(--ivory);
  font-family: var(--display);
  font-size: clamp(3.15rem, 4.35vw, 4.45rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

h1 span {
  display: block;
}

.intro {
  max-width: 25rem;
  margin: clamp(1.7rem, 3.5vh, 2.5rem) 0 0;
  color: var(--ivory-muted);
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.65;
}

.intro span {
  display: block;
}

.availability {
  display: flex;
  width: fit-content;
  margin-block-start: clamp(1.75rem, 4vh, 3rem);
  gap: var(--space-lg);
  align-items: flex-start;
  flex-direction: column;
}

.preorder-state {
  display: inline-flex;
  min-height: 3.5rem;
  padding-inline: 1.4rem;
  border: 0.0625rem solid var(--gold);
  border-radius: 0.55rem;
  align-items: center;
  gap: var(--space-sm);
  color: var(--gold-bright);
  background: oklch(24% 0.055 164 / 52%);
  cursor: pointer;
  font-family: var(--ui);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.preorder-state:hover {
  color: var(--pine-deep);
  background: var(--gold-bright);
}

.preorder-state svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
  flex: 0 0 auto;
}

.gameplay-visual {
  position: relative;
  z-index: 2;
  width: calc(100% + 2.2rem);
  aspect-ratio: 1394 / 1128;
  margin: clamp(5.2rem, 8.5vh, 6.2rem) 0 0;
  filter: drop-shadow(-1.5rem 1.4rem 3rem oklch(8% 0.02 164 / 34%));
  animation: reveal-game 800ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.gameplay-visual picture,
.gameplay-visual img {
  width: 100%;
}

.gameplay-visual img {
  height: auto;
}

@keyframes reveal-game {
  from {
    opacity: 0;
    transform: translate3d(2rem, 1rem, 0) rotate(0.4deg);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
}

@media (max-width: 64rem) {
  .hero {
    grid-template-columns: minmax(20rem, 37%) minmax(0, 1fr);
  }

  h1 {
    font-size: clamp(2.8rem, 5.2vw, 4.25rem);
  }
}

@media (max-width: 47.99rem) {
  body {
    overflow-x: hidden;
  }

  .launch-shell,
  .hero {
    min-height: 100svh;
  }

  .site-header {
    inset-block-start: 1rem;
    inset-inline: 1rem;
  }

  .brand {
    gap: var(--space-md);
    letter-spacing: 0.16em;
  }

  .brand img {
    width: 2.5rem;
    height: 2.5rem;
  }

  .site-header > p {
    max-width: 8.5rem;
    line-height: 1.35;
  }

  .hero {
    height: 100svh;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    align-items: stretch;
  }

  .hero-copy {
    width: 100%;
    min-height: 0;
    padding: 6.75rem 1.25rem 1.75rem;
    justify-content: flex-start;
  }

  .eyebrow {
    margin-block-end: 0.75rem;
    font-size: 0.58rem;
  }

  h1 {
    max-width: 10ch;
    font-size: clamp(2.7rem, 12.5vw, 4.2rem);
    line-height: 0.96;
  }

  .intro {
    max-width: 31rem;
    margin-block-start: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .availability {
    margin-block-start: 1.25rem;
    gap: var(--space-sm);
    flex-direction: row;
    align-items: center;
  }

  .preorder-state {
    min-height: 2.9rem;
    padding-inline: 1rem;
    font-size: 0.62rem;
  }

  .gameplay-visual {
    position: relative;
    inset: auto;
    width: calc(100% + 1.5rem);
    height: 100%;
    margin: 0 0 0 1.25rem;
    overflow: hidden;
    filter: drop-shadow(-0.75rem 0.75rem 2rem oklch(8% 0.02 164 / 30%));
  }

  .gameplay-visual img {
    height: calc(100% + 0.75rem);
    object-fit: cover;
    object-position: 51% 45%;
  }

}

@media (max-width: 26rem) {
  .hero-copy {
    padding-block-start: 6.25rem;
  }

  .brand span {
    max-width: 7rem;
  }

  h1 {
    font-size: clamp(2.45rem, 12vw, 3.15rem);
  }

  .intro {
    max-width: 22rem;
    font-size: 0.88rem;
  }

  .preorder-state {
    padding-inline: 0.8rem;
    letter-spacing: 0.1em;
  }
}

@media (max-width: 47.99rem) and (max-height: 44rem) {
  .hero-copy {
    padding: 5.6rem 1.25rem 1rem;
  }

  .eyebrow {
    margin-block-end: 0.55rem;
  }

  h1 {
    font-size: clamp(2.15rem, 10.5vw, 2.55rem);
    line-height: 0.94;
  }

  .intro {
    margin-block-start: 0.75rem;
    font-size: 0.82rem;
    line-height: 1.4;
  }

  .availability {
    margin-block-start: 1rem;
  }

  .preorder-state {
    min-height: 2.7rem;
  }

  .gameplay-visual img {
    object-position: 51% 34%;
  }
}

@media (min-width: 48rem) and (max-height: 48rem) {
  .hero-copy {
    padding-block-start: 8.75rem;
  }

  h1 {
    font-size: clamp(2.8rem, 4.6vw, 4rem);
  }

  .intro {
    margin-block-start: 1.35rem;
    line-height: 1.5;
  }

  .availability {
    margin-block-start: 1.6rem;
  }
}

@media (prefers-contrast: more) {
  :root {
    --ivory-muted: var(--ivory);
    --gold: var(--gold-bright);
  }

  .preorder-state {
    border-width: 0.125rem;
  }
}

@media (prefers-contrast: forced) {
  :root {
    --pine: Canvas;
    --ivory: CanvasText;
    --ivory-muted: CanvasText;
    --gold: LinkText;
    --gold-bright: LinkText;
    --focus: Highlight;
  }

  .gameplay-visual {
    border: 0.125rem solid CanvasText;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
