@font-face {
  font-family: "Space Grotesk";
  src: url("/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --electric: #673BDE;
  --ink: #211A33;
  --paper: #F6F4FA;
  --rainbow: #E40303, #F27200, #D9A400, #008A2E, #0F5BFF, #750787, #E40303;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html,
body {
  height: 100%;
  margin: 0;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Space Grotesk", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  min-height: 100%;
  min-height: 100dvh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: clamp(32px, 6vmin, 56px);
  padding: 32px 16px;
  text-align: center;
}

h1 {
  margin: 0;
  line-height: 0;
}

.logo {
  display: block;
  width: clamp(200px, 38vmin, 360px);
  height: auto;
  overflow: visible;
}

.mark {
  fill: var(--electric);
}

.wordmark {
  fill: var(--ink);
}

/* Two clipped layers: a white glint (500% wide, so it is on screen for a
   quarter of each cycle) over a repeating rainbow (150% wide, one period
   per cycle). Both end where they started, so the loop has no seam. */
.soon {
  margin: 0;
  font-size: clamp(24px, 5vmin, 40px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--electric);
  background-image:
    linear-gradient(100deg, transparent 44%, rgb(255 255 255 / 0.7) 50%, transparent 56%),
    linear-gradient(90deg, var(--rainbow));
  background-size: 500% 100%, 150% 100%;
  background-repeat: no-repeat, repeat-x;
  background-position: 100% 0, 0 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (prefers-reduced-motion: no-preference) {
  .mark {
    transform-box: fill-box;
    transform-origin: 50% 100%;
    animation: rise 1.2s var(--ease-out) both;
  }

  .wordmark {
    animation: fade 1s var(--ease-out) 0.3s both;
  }

  .soon {
    animation:
      fade 1s var(--ease-out) 0.6s both,
      shimmer 8s linear infinite;
  }
}

@keyframes shimmer {
  to {
    background-position: 0 0, -300% 0;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8%) scaleY(0.92);
  }
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}
