@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&display=swap');

:root {
  --ink: #f4f4ed;
  --paper: #090a08;
  --crimson: #dc143c;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
}

main {
  min-height: 100svh;
  padding: clamp(1.25rem, 3vw, 3rem);
  display: grid;
  place-items: center;
}

.hero { width: min(100%, 92rem); }

h1 {
  margin: 0;
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: clamp(3.8rem, 13.25vw, 13rem);
  font-weight: 900;
  line-height: .73;
  letter-spacing: -.075em;
  text-transform: uppercase;
}

.word {
  display: block;
  width: max-content;
  white-space: nowrap;
}

.word:nth-child(2) {
  margin-left: 7.3vw;
  color: var(--crimson);
}

.letters { display: inline-flex; }

.glyph {
  display: inline-block;
  overflow: visible;
  opacity: 0;
  filter: blur(7px);
  transform: translateY(.9em) skewY(7deg) scaleY(.72);
  transform-origin: 50% 100%;
}

.ink {
  display: inline-block;
}

.ready .glyph {
  animation: enter 1s cubic-bezier(.16,1,.3,1) forwards;
  animation-delay: calc(.08s + var(--i) * 55ms);
}

@keyframes enter {
  72% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(-.035em) skewY(-.6deg) scaleY(1.025);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) skewY(0) scaleY(1);
  }
}

@media (max-width: 650px) {
  main { padding: 1.2rem; }
  h1 { font-size: clamp(3.55rem, 20.5vw, 7rem); line-height: .79; }
  .word:nth-child(2) { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0ms !important;
  }

  .glyph {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }
}
