:root {
  color-scheme: dark;
  --ink: #090a0a;
  --paper: #fff2d9;
  --cyan: #1ce7ff;
  --magenta: #ff2aba;
  --gutter: clamp(1.5rem, 5vw, 5.5rem);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
  background: var(--ink);
}

body {
  margin: 0;
  min-width: 20rem;
  min-height: 100vh;
  background: var(--ink);
  color: var(--paper);
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.85rem 1rem;
  transform: translateY(-160%);
  border: 3px solid var(--ink);
  outline: 3px solid var(--cyan);
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 3.25rem) var(--gutter) clamp(1.4rem, 3vw, 2.5rem);
  background-color: var(--ink);
  background-image: url("/assets/free-play-night-hero.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: max-content;
  flex-direction: column;
  line-height: 0.88;
}

.brand__name,
h1 {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-stretch: condensed;
  text-transform: uppercase;
}

.brand__name {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  letter-spacing: 0.01em;
}

.brand__imprint {
  margin-top: 0.5rem;
  font-size: clamp(1rem, 1.7vw, 1.4rem);
  font-weight: 650;
  letter-spacing: 0.02em;
}

.announcement {
  position: relative;
  z-index: 1;
  align-self: center;
  width: min(48rem, 48vw);
  padding-block: 3rem;
}

h1 {
  margin: 0;
  max-width: 6ch;
  font-size: clamp(5.5rem, 11vw, 11rem);
  font-weight: 900;
  line-height: 0.77;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 span {
  display: block;
}

.announcement p {
  max-width: 19ch;
  margin: clamp(2rem, 4vw, 3.25rem) 0 0;
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  font-weight: 720;
  line-height: 1.25;
  text-wrap: balance;
}

.footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: max-content;
  max-width: 100%;
}

.footer__line {
  width: clamp(2.5rem, 5vw, 5rem);
  height: 0.3rem;
  background: linear-gradient(90deg, var(--cyan) 0 50%, var(--magenta) 50%);
}

.footer p {
  margin: 0;
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  font-weight: 750;
  letter-spacing: 0.025em;
}

@media (max-width: 48rem) {
  .hero {
    min-height: 100svh;
    background-position: right bottom;
    background-size: auto min(55svh, 31rem);
  }

  .announcement {
    align-self: start;
    width: 100%;
    padding-block: clamp(3rem, 11svh, 6rem) 18rem;
  }

  h1 {
    font-size: clamp(4.6rem, 23vw, 7.25rem);
  }

  .announcement p {
    max-width: 17ch;
    font-size: clamp(1.2rem, 5.5vw, 1.55rem);
  }

  .footer {
    padding-top: 1rem;
  }
}

@media (max-width: 25rem) and (max-height: 44rem) {
  .hero {
    background-size: auto 48svh;
  }

  .announcement {
    padding-block: 2.5rem 13rem;
  }

  h1 {
    font-size: clamp(4.25rem, 21vw, 5.25rem);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .announcement,
  .brand,
  .footer {
    animation: enter 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  .announcement {
    animation-delay: 80ms;
  }

  .footer {
    animation-delay: 160ms;
  }
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (forced-colors: active) {
  .hero {
    background-image: none;
  }

  .footer__line {
    background: CanvasText;
  }
}
