@font-face {
  font-family: "Novar";
  src: url("fonts/Novar.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  color: #19191b;
  background: #fefffe;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  margin: 0;
  /* Ellipse extends below the page to match the soft lower glow in sample.png. */
  background: radial-gradient(
    ellipse 104.3% 98.8% at 51.2% 124.75%,
    #615e6f 25%,
    #8d8b98 37.5%,
    #babac2 50%,
    #dddee1 62.5%,
    #f1f2f2 75%,
    #fafbfa 87.5%,
    #fefffe 100%
  );
}

main {
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(16px, 4vh, 64px) clamp(24px, 4vw, 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, min(4vw, 5vh), 56px);
}

h1 {
  margin: 0;
  max-width: 100%;
  font-family: "Novar", system-ui, sans-serif;
  font-size: clamp(24px, 16px + 2vw, 48px);
  font-weight: 400;
  font-synthesis: none;
  line-height: 1.25;
  text-align: center;
}

h1 span {
  display: block;
}

@media (prefers-reduced-motion: no-preference) {
  h1 {
    overflow: clip;
    mask-image: linear-gradient(to bottom, #000 25%, transparent 75%);
    mask-size: 100% 400%;
    mask-repeat: no-repeat;
    animation: text-reveal 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  h1 span {
    animation: text-rise 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
}

@keyframes text-reveal {
  from {
    mask-position: 0 100%;
  }
  to {
    mask-position: 0 0;
  }
}

@keyframes text-rise {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.qr {
  width: clamp(78px, 60px + 5.25vw, 135px);
  max-width: 100%;
}

.qr:focus-visible {
  outline: 2px solid #19191b;
  outline-offset: 4px;
  border-radius: 4px;
}

.qr img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  /* Normalize the PNG's off-white margin before blending it into the gradient. */
  filter: brightness(1.01);
  mix-blend-mode: multiply;
  opacity: 0.8;
}

@media (hover: hover) and (pointer: fine) {
  .qr img {
    opacity: 0.25;
  }

  .qr:hover img,
  .qr:focus img {
    opacity: 0.8;
  }
}
