:root {
  --bg: #050505;
  --fg: #f4f4f5;
  --muted: #a1a1aa;
  --line: rgba(255, 255, 255, 0.12);
  --purple: #8b5cf6;
  --purple-deep: #6d28d9;
  --font-sans: "Outfit", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
}

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

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

.glow {
  pointer-events: none;
  position: fixed;
  inset: 50% auto auto 50%;
  width: 640px;
  height: 640px;
  transform: translate(-50%, -56%);
  background: radial-gradient(
    circle,
    rgba(109, 40, 217, 0.28),
    transparent 68%
  );
}

main {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

h1 {
  font-family: var(--font-serif);
  font-size: clamp(40px, 8vw, 64px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 12px;
}

.lede {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
  max-width: 36em;
  margin-bottom: 36px;
}

form {
  display: flex;
  gap: 8px;
  width: min(100%, 420px);
}

input {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(12, 12, 12, 0.8);
  color: var(--fg);
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease;
}

input::placeholder {
  color: #52525b;
}

input:focus {
  border-color: var(--purple);
}

button {
  height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--purple);
  color: white;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.15s ease;
}

button:hover {
  background: var(--purple-deep);
}

button:active {
  transform: translateY(1px);
}

button:disabled {
  opacity: 0.7;
  cursor: default;
}

.form-status {
  margin-top: 16px;
  margin-bottom: 0;
  min-height: 1.2em;
  font-size: 14px;
}

.form-status.ok {
  color: #c4b5fd;
}

.form-status.err {
  color: #fca5a5;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 520px) {
  form {
    flex-direction: column;
  }

  button {
    width: 100%;
  }
}
