:root {
  --page-background: #ffffff;
  --ink: #000000;
}

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

html {
  min-height: 100%;
  background: var(--page-background);
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--page-background);
  color: var(--ink);
  font-family: "atrament-web", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--ink);
  opacity: 0;
}

body.flash::before {
  animation: screen-flash 210ms steps(2, end);
}

.teaser {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(24px, 4vw, 72px);
}

.teaser-trigger {
  display: grid;
  justify-items: start;
  gap: clamp(14px, 2vw, 24px);
  width: fit-content;
  max-width: calc(100vw - 48px);
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
  appearance: none;
  animation: slam-in 680ms cubic-bezier(0.18, 0.89, 0.32, 1.28) both;
}

.teaser-trigger:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 10px;
}

.headline {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  color: var(--ink);
  font-family: "atrament-web", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(92px, 11.25vw, 214px);
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.72;
  text-align: left;
  text-transform: uppercase;
}

.teaser-trigger:hover .headline,
.teaser-trigger:focus-visible .headline {
  animation: dirty-shiver 180ms steps(2, end) infinite;
  text-shadow: 5px 0 0 rgba(0, 0, 0, 0.16), -3px 2px 0 rgba(0, 0, 0, 0.12);
}

.headline span {
  display: block;
  white-space: nowrap;
}

.whisper {
  min-height: 1em;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(13px, 1.05vw, 17px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  opacity: 0;
  text-transform: uppercase;
  transform: translateY(-4px);
  transition: opacity 120ms ease, transform 120ms ease;
}

.teaser-trigger:hover .whisper,
.teaser-trigger:focus-visible .whisper,
.teaser-trigger:active .whisper {
  opacity: 1;
  transform: translateY(0);
}

body.flash .whisper {
  opacity: 1;
  transform: translateY(0);
}

@keyframes slam-in {
  0% {
    opacity: 0;
    transform: scale(1.18) rotate(-1deg);
  }

  54% {
    opacity: 1;
    transform: scale(0.97) rotate(0.4deg);
  }

  72% {
    transform: scale(1.015) rotate(-0.2deg);
  }

  100% {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

@keyframes dirty-shiver {
  0%,
  100% {
    transform: translate(0, 0) rotate(0);
  }

  25% {
    transform: translate(2px, -1px) rotate(-0.2deg);
  }

  50% {
    transform: translate(-1px, 2px) rotate(0.2deg);
  }

  75% {
    transform: translate(1px, 1px) rotate(-0.1deg);
  }
}

@keyframes screen-flash {
  0%,
  100% {
    opacity: 0;
  }

  32% {
    opacity: 1;
  }

  54% {
    opacity: 0;
  }
}

@media (max-width: 900px) {
  .teaser {
    align-items: center;
    justify-items: center;
    padding: 24px;
  }

  .teaser-trigger {
    max-width: calc(100vw - 48px);
  }

  .headline {
    font-size: clamp(58px, 15.2vw, 96px);
    line-height: 0.77;
  }

  .whisper {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 390px) {
  .headline {
    font-size: clamp(58px, 18vw, 70px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
