html,
body {
  min-height: 100%;
  margin: 0;
  background-color: #29274c;
}

body {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
}

.starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.star {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: #f2fdff;
  opacity: 0.15;
  animation: twinkle var(--duration) ease-in-out var(--delay) infinite;
}

.star--spark {
  border-radius: 0;
  background: #f5d98b;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.12;
  }

  50% {
    opacity: 0.65;
  }
}

main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

main::before {
  width: min(199px, 100vw);
  aspect-ratio: 443 / 424;
  background: url("Logo.svg") center / contain no-repeat;
  content: "";
}

nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-self: center;
  justify-items: center;
  margin-top: 80px;
  width: min(100%, 480px);
}

a {
  white-space: nowrap;
  color: #f2fdff;
  font-family: "Instrument Serif", "Jost", sans-serif;
  font-size: clamp(16px, 4vw, 24px);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

.submit-link {
  color: #f5d98b;
}

.submit-link::after {
  display: inline-block;
  width: 0.65em;
  height: 0.65em;
  margin-left: 0.3em;
  background: url("arrow.svg") center / contain no-repeat;
  content: "";
  vertical-align: 0.05em;
}

a:hover,
a:focus-visible {
  color: #f5d98b;
  text-decoration-color: currentColor;
}

@media (prefers-reduced-motion: reduce) {
  .star {
    animation: none;
    opacity: 0.3;
  }
}
