:root {
  --bg: #0f1115;
  --ink: #f4efe6;
  --muted: #b7b0a4;
  --line: rgba(244, 239, 230, 0.12);
  --accent: #e3a24b;
  --accent-ink: #1a1206;
  --card: rgba(255, 255, 255, 0.03);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  font-family: "Outfit", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(227, 162, 75, 0.12), transparent 50%),
    var(--bg);
  overflow-x: hidden;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

.glow {
  pointer-events: none;
  position: fixed;
  width: 42rem;
  height: 42rem;
  left: 50%;
  top: 18%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(227, 162, 75, 0.08), transparent 65%);
  z-index: 0;
}

.top,
.stage,
footer {
  position: relative;
  z-index: 1;
}

.top {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1.5rem 1.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--muted);
}

.mark {
  width: 0.7rem;
  height: 0.7rem;
  background: var(--accent);
  transform: rotate(45deg);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: rotate(45deg) scale(1);
  }
  50% {
    opacity: 0.45;
    transform: rotate(45deg) scale(0.86);
  }
}

.stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 38rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  text-align: center;
}

.kicker {
  display: inline-flex;
  align-self: center;
  margin-bottom: 1.25rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2.4rem, 8vw, 4.4rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.lede {
  margin: 1.25rem auto 2rem;
  max-width: 28rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

form {
  display: flex;
  gap: 0.6rem;
  width: min(100%, 26rem);
  margin: 0 auto;
}

.hidden {
  display: none;
}

.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;
}

.field {
  flex: 1;
}

input[type="email"] {
  width: 100%;
  height: 3rem;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font: inherit;
  outline: none;
}

input[type="email"]::placeholder {
  color: #7d776e;
}

input[type="email"]:focus {
  border-color: rgba(227, 162, 75, 0.55);
  box-shadow: 0 0 0 3px rgba(227, 162, 75, 0.14);
}

button {
  height: 3rem;
  padding: 0 1.15rem;
  border: 0;
  border-radius: 0.7rem;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

button:hover {
  filter: brightness(1.06);
}

button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.back {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.back:hover {
  text-decoration: underline;
}

footer {
  padding: 1.25rem 1.75rem 1.75rem;
  color: #6f6a62;
  font-size: 0.85rem;
}

@media (max-width: 540px) {
  form {
    flex-direction: column;
  }

  button {
    width: 100%;
  }
}
