:root {
  --site-width: 1600px;
  --paper: #101719;
  --ink: #17262b;
  --coral: #ff5b4d;
  --aqua: #58d5cf;
  --yellow: #ffd447;
  --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,
.wordmark {
  font-family: "Bowlby One SC", sans-serif;
  font-weight: 400;
}

h1,
h2 {
  margin-bottom: 1.5rem;
  line-height: 0.98;
  letter-spacing: 0;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 20;
  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: space-between;
  gap: 2rem;
  padding: 1.4rem clamp(1.25rem, 4vw, 4rem);
  transform: translateX(-50%);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--white);
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
}

.wordmark__icon {
  display: block;
  width: 2.7rem;
  height: 3.4rem;
  flex: 0 0 auto;
}

.wordmark__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

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-link:hover,
.text-link: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: 780px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 8rem 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: 680px;
  font-size: clamp(3.2rem, 7vw, 7.3rem);
}

.hero h1 em {
  color: var(--coral);
  font-style: normal;
}

.hero__intro {
  max-width: 560px;
  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-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button--dark {
  background: var(--ink);
  color: var(--white);
}

.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(64%, 490px);
}

.hero__art img {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border: var(--line);
  border-radius: 22%;
  box-shadow: 14px 14px 0 var(--ink);
  transform: rotate(4deg);
}

.hero__sticker {
  position: absolute;
  right: -12%;
  bottom: -10%;
  display: grid;
  width: 190px;
  min-height: 76px;
  place-items: center;
  padding: 0.9rem 1.75rem;
  transform: rotate(-5deg);
  background: var(--coral);
  clip-path: polygon(0 0, 100% 8%, 92% 50%, 100% 92%, 0 100%, 8% 50%);
  color: var(--white);
  filter: drop-shadow(4px 5px 0 var(--ink));
  font-family: "Pixelify Sans", sans-serif;
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.manifesto {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 7vw, 8rem);
  padding: clamp(5rem, 10vw, 10rem) clamp(1.5rem, 5vw, 5rem);
}

.manifesto h2 {
  max-width: 530px;
  font-size: clamp(2.5rem, 4.8vw, 5.2rem);
}

.manifesto__body {
  max-width: 720px;
  font-size: clamp(1rem, 1.4vw, 1.24rem);
}

.manifesto__body p {
  margin-bottom: 1.5rem;
}

.manifesto__closer {
  padding-top: 1.5rem;
  border-top: 2px solid rgba(255, 253, 247, 0.35);
  font-size: 1.15em;
}

.game {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(400px, 1.1fr);
  background: var(--coral);
  color: var(--white);
}

.game__intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(3rem, 5vw, 5rem);
}

.game__content {
  width: 100%;
  max-width: 560px;
}

.game h2 {
  font-size: clamp(3.7rem, 7vw, 7.5rem);
}

.game__tagline {
  margin-bottom: 0.5rem;
  color: var(--yellow);
  font: 400 1.35rem/1.1 "Bowlby One SC", sans-serif;
}

.game__content > p:not(.eyebrow, .game__tagline) {
  max-width: 560px;
}

.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}

.store-button {
  display: flex;
  min-width: 175px;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0.9rem;
  border: 2px solid var(--white);
  background: var(--ink);
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.05;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.store-button small {
  display: block;
  margin-bottom: 0.18rem;
  font-size: 0.61rem;
  font-weight: 500;
}

.store-button:hover,
.store-button:focus-visible {
  background: var(--white);
  color: var(--ink);
}

.store-button__icon {
  font-size: 1.5rem;
}

.store-button__icon--apple {
  width: 1.5rem;
  height: 1.5rem;
  flex: 0 0 auto;
  background: var(--white);
  mask: url("../images/apple.svg") center / contain no-repeat;
}

.store-button:hover .store-button__icon--apple,
.store-button:focus-visible .store-button__icon--apple {
  background: var(--ink);
}

.store-button__icon--play {
  color: var(--aqua);
}

.phone-stage {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  border-left: var(--line);
  background-color: var(--yellow);
  background-image: linear-gradient(45deg, rgba(23, 38, 43, 0.1) 25%, transparent 25%, transparent 75%, rgba(23, 38, 43, 0.1) 75%), linear-gradient(45deg, rgba(23, 38, 43, 0.1) 25%, transparent 25%, transparent 75%, rgba(23, 38, 43, 0.1) 75%);
  background-position: 0 0, 18px 18px;
  background-size: 36px 36px;
}

.phone {
  position: absolute;
  width: min(44%, 300px);
  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);
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone--front {
  z-index: 2;
  top: 8%;
  left: 17%;
  transform: rotate(-5deg);
}

.phone--back {
  right: 12%;
  bottom: 4%;
  transform: rotate(7deg);
}

.features {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, 1fr);
  border-top: var(--line);
  background: var(--ink);
}

.feature {
  min-height: 280px;
  padding: clamp(2rem, 4vw, 4rem);
}

.feature + .feature {
  border-left: 2px solid rgba(255, 253, 247, 0.3);
}

.feature h3 {
  margin: 0 0 1rem;
  color: var(--yellow);
  font-size: clamp(1.5rem, 2.4vw, 2.25rem);
  line-height: 1.1;
}

.feature p {
  max-width: 380px;
  margin-bottom: 0;
  color: rgba(255, 253, 247, 0.72);
}

.publisher {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  border-bottom: var(--line);
  background: var(--aqua);
}

.publisher__mark {
  position: relative;
  display: grid;
  min-height: 550px;
  place-items: center;
  overflow: hidden;
  border-right: var(--line);
  background: repeating-conic-gradient(from -8deg at 50% 50%, #8be8df 0deg 13deg, #269b99 13deg 26deg);
}

.publisher__mark img {
  position: relative;
  z-index: 1;
  width: min(78%, 520px);
  height: auto;
  transform: rotate(-3deg);
  filter: drop-shadow(12px 12px 0 rgba(23, 38, 43, 0.32));
  image-rendering: pixelated;
}

.publisher__copy {
  display: flex;
  max-width: 820px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(4rem, 8vw, 8rem);
}

.publisher h2 {
  font-size: clamp(2.8rem, 5vw, 5.5rem);
}

.publisher__copy > p:not(.eyebrow) {
  max-width: 680px;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
}

.text-link {
  margin-top: 1rem;
  font-weight: 700;
  text-decoration: none;
}

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 {
  font-size: 0.82rem;
}

.reveal {
  animation: rise 700ms both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

@media (max-width: 900px) {
  .hero,
  .game,
  .publisher {
    grid-template-columns: 1fr;
  }

  .hero__art,
  .phone-stage,
  .publisher__mark {
    border-top: var(--line);
    border-left: 0;
  }

  .hero__art {
    min-height: 600px;
  }

  .manifesto {
    grid-template-columns: 1fr;
  }

  .game__intro {
    min-height: 600px;
  }

  .publisher__mark {
    min-height: 420px;
    border-right: 0;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .site-header {
    align-items: flex-start;
  }

  .wordmark > span:last-child {
    max-width: 120px;
    line-height: 1.1;
  }

  nav {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero__copy {
    min-height: 620px;
    padding-top: 8rem;
  }

  .hero h1 {
    font-size: 3.35rem;
  }

  .hero__art {
    min-height: 480px;
  }

  .hero__product {
    width: 66%;
  }

  .hero__art img {
    box-shadow: 9px 9px 0 var(--ink);
  }

  .hero__sticker {
    right: -22%;
    bottom: -18%;
    width: 168px;
    min-height: 68px;
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
  }

  .manifesto {
    padding-block: 5rem;
  }

  .game__intro {
    min-height: auto;
    min-width: 0;
    padding: 5rem 1.5rem;
  }

  .game h2 {
    font-size: 3.2rem;
  }

  .phone-stage {
    min-height: 540px;
  }

  .phone {
    width: 47%;
    border-width: 5px;
    border-radius: 22px;
  }

  .phone--front {
    left: 9%;
  }

  .phone--back {
    right: 7%;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .feature {
    min-height: 0;
  }

  .feature + .feature {
    border-top: 2px solid rgba(255, 253, 247, 0.3);
    border-left: 0;
  }

  .publisher__mark {
    min-height: 350px;
  }

  .publisher__mark img {
    width: min(82%, 420px);
  }

  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;
  }
}