@font-face {
  font-family: "JGS5";
  src: url("../assets/jgs5.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --white: #ffffff;
  --ink: #080808;
  --hero-fade: 1;
  --hero-y: 0px;
  --content-lift: 24px;
  --content-fade: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #000000;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 175vh;
  color: var(--white);
  background: #000000;
  font-family: "JGS5", "Courier New", monospace;
  text-align: center;
  overflow-x: hidden;
}

body:not(.is-pack-open) {
  overflow: hidden;
}

#scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100vw;
  height: 100vh;
  background: #78a7d6;
}

#scene::selection {
  background: transparent;
}

.site {
  position: relative;
  z-index: 3;
  width: min(920px, calc(100% - 32px));
  min-height: 175vh;
  margin: 0 auto;
  pointer-events: none;
}

.hero {
  min-height: 72svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 44px 0 24px;
  opacity: 1;
  transform: none;
}

.hero-logo {
  display: block;
  width: min(700px, 92vw);
  height: auto;
  image-rendering: pixelated;
}

.content {
  min-height: 70svh;
  padding: 6vh 0 96px;
  opacity: var(--content-fade);
  transform: translateY(var(--content-lift));
  will-change: opacity, transform;
  transition: opacity 900ms ease 180ms, transform 900ms cubic-bezier(0.16, 1, 0.3, 1) 180ms;
}

.sheet {
  width: min(680px, 100%);
  padding: 30px 22px 28px;
  margin: 0 auto 64px;
  pointer-events: auto;
}

.text {
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow:
    0 3px 0 rgba(0, 0, 0, 0.18),
    0 12px 28px rgba(0, 0, 0, 0.42);
}

.text p {
  margin: 0 0 22px;
}

.text p:last-child {
  margin-bottom: 18svh;
}

.download-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 0 auto 34px;
}

.icon {
  display: block;
  width: 70px;
  height: 70px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.38));
}

.download {
  display: inline-block;
  min-width: 160px;
  padding: 15px 22px;
  color: #000000;
  background: #ffffff;
  text-decoration: none;
  font-family: "JGS5", "Courier New", monospace;
  font-size: 18px;
  line-height: 1;
  border: 2px solid #000000;
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  transition:
    color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.download:hover,
.download:focus-visible {
  background: #000000;
  color: #ffffff;
  transform: translateY(-1px);
  outline: none;
}

.small {
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.42);
}

@media (max-width: 760px) {
  body {
    min-height: 168vh;
  }

  .site {
    width: min(720px, calc(100% - 24px));
    min-height: 168vh;
  }

  .hero {
    min-height: 66svh;
    padding-top: 36px;
  }

  .hero-logo {
    width: min(380px, 88vw);
  }

  .content {
    padding-top: 5vh;
  }

  .sheet {
    padding: 20px 10px;
  }

  .text {
    max-width: 340px;
    font-size: 15px;
    line-height: 1.55;
  }

  .icon {
    width: 68px;
    height: 68px;
  }

  .download {
    min-width: 140px;
    padding: 13px 18px;
    font-size: 16px;
  }

  .small {
    font-size: 13px;
  }
}

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

  .hero,
  .content,
  .download {
    transition: none;
  }

  .hero,
  .content {
    transform: none;
  }
}
