/* pixel font: keep sizes at multiples of 32px */
@font-face {
  font-family: "Ignore 17";
  src: url("../fonts/ignore-17.woff2") format("woff2");
}

:root {
  --logo-width: 530px;
  --trailer-width: 720px;
  --non-trailer-height: 520px;
  --credits-size: 32px;
  --subtitle-size: 32px;
  --wishlist-width: 143px;
  --footer-text-size: 32px;
  --icon-size: 28px;
}

@media (min-width: 2000px) and (min-height: 1200px) {
  :root {
    --logo-width: 1060px;
    --trailer-width: 1024px;
    --non-trailer-height: 720px;
    --subtitle-size: 64px;
    --wishlist-width: 286px;
  }
}

@media (min-width: 3000px) and (min-height: 1800px) {
  :root {
    --logo-width: 1590px;
    --trailer-width: 1600px;
    --non-trailer-height: 1080px;
    --credits-size: 64px;
    --subtitle-size: 96px;
    --wishlist-width: 429px;
    --footer-text-size: 64px;
    --icon-size: 56px;
  }
}

body {
  font-family: "Ignore 17", system-ui, sans-serif;
  line-height: 1.25;
  -webkit-font-smoothing: none;
  background-color: #111;
  color: #f2f2da;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url("../images/pink-background.png") center / cover no-repeat;
  image-rendering: pixelated;
}

#hero-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
}

@media (orientation: portrait) {
  body::before {
    background-image: url("../images/pink-background-portrait.png");
  }

  #hero-container {
    justify-content: flex-start;
    padding: 24px 16px;
  }
}

.title {
  margin: 0;
}

.logo {
  display: block;
  width: var(--logo-width);
  max-width: 100%;
  height: auto;
  image-rendering: pixelated;
}

.subtitle {
  margin: 8px 0 0;
  font-size: var(--subtitle-size);
}

.wishlist-btn {
  display: block;
  margin-top: 24px;
  padding: 8px 12px;
  border: 2px solid #f2f2da;
  border-radius: 8px;
  background-color: #181419;
}

.wishlist-btn img {
  display: block;
  width: var(--wishlist-width);
  max-width: 100%;
  height: auto;
}

.trailer-vid {
  width: 100%;
  max-width: var(--trailer-width);
  height: auto;
  aspect-ratio: 16 / 9;
  margin-top: 24px;
  border: 0;
}

/* shrink the trailer on short screens so everything fits */
@media (orientation: landscape) and (min-height: 600px) {
  .trailer-vid {
    max-width: clamp(320px, (100svh - var(--non-trailer-height)) * 16 / 9, var(--trailer-width));
  }
}

.credits {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  font-size: var(--credits-size);
  text-wrap: balance;
}

.credits strong {
  font-weight: normal;
  color: #ffd94e;
}

#site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
}

.press-kit-link {
  justify-self: end;
  font-size: var(--footer-text-size);
  white-space: nowrap;
  color: #f2f2da;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.press-kit-link:hover {
  color: #ffd94e;
}

.footer-dot {
  width: calc(var(--icon-size) / 4);
  height: calc(var(--icon-size) / 4);
  border-radius: 50%;
  background-color: #f2f2da;
}

.social-links {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-links a {
  display: block;
}

.icon {
  display: block;
  width: var(--icon-size);
  height: var(--icon-size);
  background-color: #f2f2da;
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}

.social-links a:hover .icon {
  background-color: #ffd94e;
}

.icon-mail {
  -webkit-mask-image: url("../images/mail.svg");
  mask-image: url("../images/mail.svg");
}

.icon-discord {
  -webkit-mask-image: url("../images/Discord-Symbol-White.svg");
  mask-image: url("../images/Discord-Symbol-White.svg");
}

.icon-instagram {
  -webkit-mask-image: url("../images/Instagram_Glyph_White.svg");
  mask-image: url("../images/Instagram_Glyph_White.svg");
}

.icon-bluesky {
  -webkit-mask-image: url("../images/bluesky_media_kit_logo_transparent_3.svg");
  mask-image: url("../images/bluesky_media_kit_logo_transparent_3.svg");
}

@media (max-width: 400px) {
  :root {
    --icon-size: 24px;
  }

  #site-footer {
    padding: 12px 16px;
  }

  .social-links {
    gap: 8px;
  }
}
