:root {
  --site-width: 1600px;
  --paper: #101719;
  --ink: #17262b;
  --coral: #ff5b4d;
  --aqua: #58d5cf;
  --yellow: #ffd447;
  --blue: #3f6fe5;
  --white: #fffdf7;
  --line: 2px solid var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--white);
  font: 400 17px/1.65 "DM Sans", sans-serif;
}

main,
footer {
  width: min(100%, var(--site-width));
  margin-inline: auto;
}

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

a {
  color: inherit;
}

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

h1,
h2,
h3 {
  font-family: "Bowlby One SC", sans-serif;
  font-weight: 400;
  letter-spacing: 0;
}

h1,
h2 {
  margin-bottom: 1.5rem;
  line-height: 0.98;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: -5rem;
  left: 1rem;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: var(--white);
}

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

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 50%;
  display: flex;
  width: min(100%, var(--site-width));
  align-items: center;
  justify-content: flex-end;
  gap: 2rem;
  padding: 1.4rem clamp(1.25rem, 4vw, 4rem);
  transform: translateX(-50%);
}

.wordmark {
  display: inline-flex;
  width: 180px;
  height: 78px;
  align-items: center;
}

.wordmark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}

nav {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2.4rem);
}

nav a {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

nav a:hover,
nav a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35rem;
}

.hero {
  display: grid;
  min-height: min(820px, 100vh);
  grid-template-columns: 1.05fr 0.95fr;
  border-bottom: var(--line);
}

.hero__copy {
  display: flex;
  max-width: 800px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 9rem clamp(1.5rem, 5vw, 5rem) 5rem;
}

.eyebrow {
  margin-bottom: 1rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 690px;
  font-size: clamp(3.2rem, 7vw, 7.3rem);
}

.hero h1 em {
  color: var(--yellow);
  font-style: normal;
}

.hero__intro {
  max-width: 570px;
  margin-bottom: 2rem;
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1.1rem;
  border: 2px solid var(--white);
  box-shadow: 4px 4px 0 var(--coral);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.button--dark {
  background: var(--ink);
  color: var(--white);
}

.button--light {
  border-color: var(--ink);
  background: var(--white);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--yellow);
}

.button:hover,
.button:focus-visible {
  box-shadow: 1px 1px 0 var(--coral);
  transform: translate(3px, 3px);
}

.hero__art {
  position: relative;
  display: grid;
  min-height: 620px;
  place-items: center;
  overflow: hidden;
  border-left: var(--line);
  background-color: var(--aqua);
  background-image: radial-gradient(rgba(23, 38, 43, 0.28) 1.5px, transparent 1.5px);
  background-size: 15px 15px;
}

.hero__product {
  position: relative;
  width: min(82%, 640px);
}

.hero__art img {
  position: relative;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(12px 12px 0 rgba(23, 38, 43, 0.3));
  image-rendering: pixelated;
}

.games__heading {
  padding: clamp(4rem, 7vw, 7rem) clamp(1.5rem, 5vw, 5rem);
  border-bottom: var(--line);
  background: var(--yellow);
  color: var(--ink);
}

.games__heading h2 {
  margin: 0;
  font-size: clamp(4rem, 10vw, 10rem);
}

.game {
  display: grid;
  min-height: 670px;
  grid-template-columns: 1fr 1fr;
  border-bottom: var(--line);
}

.game__art {
  position: relative;
  display: grid;
  min-width: 0;
  place-items: center;
  overflow: hidden;
  padding: clamp(3rem, 6vw, 6rem);
}

.game__art img {
  position: relative;
  z-index: 1;
  width: min(82%, 560px);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border: 8px solid var(--ink);
  box-shadow: 14px 14px 0 rgba(23, 38, 43, 0.35);
  transform: rotate(-3deg);
}

.game__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(4rem, 7vw, 7rem);
}

.game h3 {
  margin: 0 0 1.5rem;
  font-size: clamp(3.2rem, 6vw, 6.7rem);
  line-height: 0.98;
}

.game__tagline {
  margin-bottom: 0.6rem;
  color: var(--yellow);
  font: 400 1.35rem/1.1 "Bowlby One SC", sans-serif;
}

.game__copy > p:not(.eyebrow, .game__tagline, .coming-soon) {
  max-width: 540px;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
}

.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}

.store-button,
.coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border: 2px solid var(--white);
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.store-button {
  min-width: 175px;
  line-height: 1.05;
}

.store-button small {
  display: block;
  margin-bottom: 0.18rem;
  font-size: 0.61rem;
  font-weight: 500;
}

.store-button__icon {
  width: 1.5rem;
  height: 1.5rem;
  flex: 0 0 auto;
  fill: currentColor;
}

.store-button__icon--play {
  font-size: 1.25rem;
  line-height: 1;
}

.store-button:hover,
.store-button:focus-visible {
  background: var(--white);
  color: var(--ink);
}

.game--freefall {
  background: var(--coral);
  color: var(--ink);
}

.game--freefall .game__art {
  background: inherit;
}

.freefall-stage {
  position: relative;
  width: min(92%, 650px);
  height: min(620px, 44vw);
}

.freefall-phone {
  position: absolute;
  width: min(44%, 270px);
  aspect-ratio: 300 / 649;
  overflow: hidden;
  border: 8px solid var(--ink);
  border-radius: 32px;
  background: var(--ink);
  box-shadow: 12px 12px 0 rgba(23, 38, 43, 0.25);
}

.game--freefall .freefall-phone img {
  width: 100%;
  max-width: none;
  height: 100%;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  box-shadow: none;
  transform: none;
}

.freefall-phone--front {
  z-index: 2;
  top: 2%;
  left: 8%;
  transform: rotate(-5deg);
}

.freefall-phone--back {
  right: 7%;
  bottom: 2%;
  transform: rotate(7deg);
}

.game--freefall h3,
.game--freefall .game__tagline {
  color: var(--ink);
}

.game--freefall .store-button {
  border-color: var(--ink);
  background: var(--aqua);
  color: var(--ink);
}

.game--freefall .store-button:hover,
.game--freefall .store-button:focus-visible {
  background: var(--white);
}

.game--unite {
  background: var(--blue);
}

.game--unite .game__art {
  padding: clamp(3rem, 6vw, 6rem);
  background: inherit;
}

.unite-frame {
  width: min(62%, 390px);
  overflow: hidden;
  border: 8px solid var(--ink);
  border-radius: 32px;
  background: var(--white);
  box-shadow: 12px 12px 0 rgba(23, 38, 43, 0.25);
  transform: rotate(4deg);
}

.game--unite .unite-frame img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  aspect-ratio: 568 / 947;
  border: 0;
  border-radius: 0;
  object-fit: contain;
  box-shadow: none;
  transform: none;
}

.game--unite h3,
.game--unite .game__tagline {
  color: var(--white);
}

.game--unite .store-button {
  border-color: var(--white);
  background: transparent;
}

.game--unite .store-button:hover,
.game--unite .store-button:focus-visible {
  background: var(--white);
  color: var(--blue);
}

.game--chroma {
  background: #44494b;
}

.game--chroma .game__art {
  background: inherit;
}

.game--chroma .game__art img {
  width: min(90%, 650px);
  height: auto;
  aspect-ratio: 16 / 10;
  object-position: center;
  transform: rotate(2deg);
}

.game--chroma h3,
.game--chroma .game__tagline {
  color: #ff6b62;
}

.coming-soon {
  margin: 1rem 0 0;
  border-color: #d94b43;
  background: #d94b43;
  color: var(--white);
  text-transform: uppercase;
}

.contact {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  border-bottom: var(--line);
  background: var(--aqua);
  color: var(--ink);
}

.contact__intro {
  padding: clamp(4rem, 7vw, 7rem);
  border-right: var(--line);
}

.contact h2 {
  font-size: clamp(2.7rem, 5vw, 5.5rem);
}

.contact__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-content: center;
  padding: clamp(4rem, 7vw, 7rem);
  background-image: radial-gradient(rgba(23, 38, 43, 0.08) 1px, transparent 1px);
  background-size: 15px 15px;
}

.contact__form label {
  display: grid;
  gap: 0.5rem;
  color: rgba(23, 38, 43, 0.72);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact__form input,
.contact__form textarea {
  width: 100%;
  border: 1px solid rgba(23, 38, 43, 0.18);
  border-radius: 12px;
  outline: 0;
  background: rgba(255, 253, 247, 0.92);
  color: var(--ink);
  font: inherit;
  box-shadow: 0 1px 2px rgba(23, 38, 43, 0.08), 0 5px 18px rgba(23, 38, 43, 0.06);
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.contact__form input {
  min-height: 52px;
  padding: 0.75rem 1rem;
}

.contact__form textarea {
  min-height: 150px;
  resize: vertical;
  padding: 0.9rem 1rem;
}

.contact__form input:focus,
.contact__form textarea:focus {
  border-color: rgba(23, 38, 43, 0.55);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(255, 253, 247, 0.38), 0 8px 24px rgba(23, 38, 43, 0.1);
}

.contact__message,
.contact__check,
.contact__form .button {
  grid-column: 1 / -1;
}

.contact__check {
  max-width: 420px;
}

.contact__form .button {
  justify-self: start;
  padding: 0.9rem 1.2rem;
  border: 0;
  border-radius: 10px;
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 7px 18px rgba(23, 38, 43, 0.22);
}

.contact__form .button:hover,
.contact__form .button:focus-visible {
  background: #22373d;
  box-shadow: 0 9px 24px rgba(23, 38, 43, 0.28);
  transform: translateY(-1px);
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem clamp(1.5rem, 4vw, 4rem);
  background: var(--paper);
  color: var(--white);
  font-size: 0.78rem;
}

footer p {
  margin: 0;
}

.wordmark--footer {
  width: 135px;
  height: 60px;
}

.reveal {
  animation: rise 700ms both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

@media (max-width: 900px) {
  .hero,
  .game,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero__art,
  .game__art,
  .contact__intro {
    border-right: 0;
    border-left: 0;
  }

  .hero__art {
    grid-row: 1;
    min-height: 600px;
    border-bottom: var(--line);
  }

  .hero__copy {
    grid-row: 2;
  }

  .game__art {
    min-height: 620px;
  }

  .game--unite .game__art {
    grid-row: 1;
  }

  .game__copy {
    min-height: 520px;
  }

  .contact__intro {
    border-bottom: var(--line);
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

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

  .wordmark {
    width: 145px;
    height: 64px;
  }

  nav {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero__copy {
    min-height: auto;
    padding-top: 2rem;
  }

  .hero h1 {
    font-size: 3.35rem;
  }

  .hero__art {
    min-height: 0;
    padding: 1.25rem 1.5rem 0.5rem;
    border-bottom: 0;
    background: var(--paper);
  }

  .hero__product {
    width: 100%;
  }

  .games__heading h2 {
    font-size: 4rem;
  }

  .game {
    min-height: 0;
  }

  .game__art {
    min-height: 440px;
    padding: 2rem;
  }

  .game__art img {
    width: min(84%, 360px);
    border-width: 5px;
    box-shadow: 9px 9px 0 rgba(23, 38, 43, 0.35);
  }

  .game--unite .game__art {
    padding: 2rem;
  }

  .unite-frame {
    width: 84%;
    border-width: 5px;
    border-radius: 22px;
    box-shadow: 8px 8px 0 rgba(23, 38, 43, 0.25);
  }

  .freefall-stage {
    width: 100%;
    height: 410px;
  }

  .freefall-phone {
    width: 46%;
    border-width: 5px;
    border-radius: 22px;
    box-shadow: 8px 8px 0 rgba(23, 38, 43, 0.25);
  }

  .freefall-phone--front {
    left: 3%;
  }

  .freefall-phone--back {
    right: 3%;
  }

  .game__copy {
    min-height: 500px;
    padding: 5rem 1.5rem;
  }

  .game h3 {
    font-size: 3.25rem;
  }

  .store-links {
    display: grid;
    width: 100%;
  }

  .store-button {
    justify-content: flex-start;
  }

  .contact__intro,
  .contact__form {
    padding: 5rem 1.5rem;
  }

  .contact__form {
    grid-template-columns: 1fr;
  }

  .contact__message,
  .contact__check,
  .contact__form .button {
    grid-column: 1;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}