@font-face {
  font-family: "Montserrat";
  src: url("Montserrat-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #111111;
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  text-align: center;
  padding: 1.5rem;
}

main {
  position: relative;
  z-index: 1;
}

.js main {
  visibility: hidden;
}

.bg-glow {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 90vmax;
  height: 90vmax;
  margin: -45vmax 0 0 -45vmax;
  background: radial-gradient(
    circle,
    rgb(216 28 34 / 0.16) 0%,
    rgb(216 28 34 / 0.06) 30%,
    transparent 60%
  );
  pointer-events: none;
  z-index: 0;
}

.js .bg-glow {
  opacity: 0;
}

.bg-spotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 900px;
  height: 900px;
  margin: -450px 0 0 -450px;
  background: radial-gradient(
    circle,
    rgb(255 255 255 / 0.06) 0%,
    rgb(255 255 255 / 0.02) 35%,
    transparent 65%
  );
  pointer-events: none;
  opacity: 0;
  z-index: 0;
}

@media (hover: none), (pointer: coarse) {
  .bg-spotlight {
    display: none;
  }
}

.bg-grain {
  --grain-opacity: 0.05;
  position: fixed;
  inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: var(--grain-opacity);
  pointer-events: none;
  z-index: 2;
  animation: grain 0.8s steps(4) infinite;
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); }
  75% { transform: translate(-2%, -1%); }
  100% { transform: translate(0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .bg-grain {
    animation: none;
  }
}

h1 {
  --glow: 0.35;
  --line: 1;
  position: relative;
  margin: 0 0 clamp(2.25rem, 5vw, 3rem);
  font-size: clamp(2rem, 1rem + 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  color: #d81c22;
  filter: drop-shadow(0 0 28px rgb(216 28 34 / var(--glow)));
  text-transform: uppercase;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

h1::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1.25rem;
  width: 4rem;
  height: 2px;
  background: #d81c22;
  transform: translateX(-50%) scaleX(var(--line));
}

h1.is-sheen {
  background: linear-gradient(110deg, #d81c22 0%, #d81c22 45%, #ffb3b5 50%, #d81c22 55%, #d81c22 100%);
  background-size: 300% 100%;
  background-position: 100% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  margin: 0 0 clamp(2rem, 5vw, 3rem);
  font-size: clamp(1.25rem, 0.9rem + 1.8vw, 2rem);
  font-weight: 600;
}

p {
  margin: 0;
  font-weight: 400;
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.2rem);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
  line-height: 1.5;
}
