@font-face {
  font-family: "Nunito";
  src: url("fonts/nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #2a1a2e;
  --text: #f6ead7;
  --muted: #cdb8c4;
  --accent: #f0609e;
  --font: "Nunito", system-ui, sans-serif;
}

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

html { background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .tagline { font-weight: 700; }

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

.hero {
  position: relative;
  overflow: clip;
  height: clamp(min(70svh, 115vw), 56.25vw, 100svh);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 50% 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 18%;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

.hero-logo {
  position: absolute;
  inset: 0;
  z-index: 1;
  margin: 0;
}

.hero-logo img {
  position: absolute;
  inset: 7.5% 0;
  width: 100%;
  height: 85%;
  object-fit: contain;
  filter: drop-shadow(0 1.5rem 2rem rgb(20 8 30 / 0.45));
}

@media (prefers-reduced-motion: no-preference) {
  .hero-logo img {
    animation: float 6s ease-in-out infinite;
  }

  @keyframes float {
    0%, 100% { translate: 0 0; rotate: -0.4deg; }
    50%      { translate: 0 -0.6rem; rotate: 0.4deg; }
  }

  @supports (animation-timeline: scroll()) {
    .hero-bg,
    .hero-logo {
      animation-timing-function: linear;
      animation-fill-mode: both;
      animation-timeline: scroll();
      animation-range: 0 100svh;
    }

    .hero-bg   { animation-name: scene-lag; }
    .hero-logo { animation-name: logo-lift; }

    @keyframes scene-lag {
      to { translate: 0 30%; scale: 1.08; }
    }

    @keyframes logo-lift {
      to { translate: 0 -25%; }
    }
  }
}

main {
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) 1rem clamp(3rem, 8vw, 5rem);
}

.tagline {
  max-width: 34ch;
  margin: 0 auto 0.75rem;
  font-size: clamp(1.5rem, 1rem + 2.2vw, 2.25rem);
  line-height: 1.25;
  text-align: center;
  text-wrap: balance;
}

.wishlist {
  margin: 0 0 clamp(2rem, 5vw, 3rem);
  text-align: center;
}

.button {
  display: inline-block;
  padding: 0.875rem 1.5rem;
  border-radius: 10px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 800;
  text-decoration: none;
}

.button:hover { background: #d94a88; }

.release {
  margin: 0 0 1.25rem;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  text-align: center;
}

iframe {
  display: block;
  max-width: 100%;
  border: 0;
}

.trailer {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0.75rem;
}

.itch {
  margin: 2rem auto clamp(2.5rem, 6vw, 4rem);
}

.about p {
  margin: 0 0 1.25em;
  text-wrap: pretty;
}

a { color: var(--accent); }

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2rem;
  padding: 2rem 1rem 3rem;
  font-weight: 700;
}

footer a {
  color: var(--muted);
  text-decoration: none;
}

footer a:hover { color: var(--accent); }
