:root {
  --bg: #f7f1fc;
  --fg: #1a0a2e;
  --muted: #6b5a80;
  --accent: #590896;
  --accent-contrast: #f7f1fc;
  --border: #e0d0f0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #2d0548;
    --fg: #f7f1fc;
    --muted: #a899b8;
    --accent: #f7f1fc;
    --accent-contrast: #2d0548;
    --border: #4a1e6b;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}

main {
  max-width: 34rem;
  width: 100%;
}

h1 {
  font-size: 2.25rem;
  line-height: 1.1;
  margin: 0 0 1.5rem;
  letter-spacing: -0.01em;
  color: var(--accent);
}

p.lede {
  font-size: 1.125rem;
  margin: 0 0 1rem;
}

p.lede + p.lede {
  margin-top: 0;
}

a {
  color: var(--accent);
}

form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

label {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}

input[type="text"],
input[type="email"] {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75rem 0.875rem;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  width: 100%;
}

input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

button {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: var(--accent-contrast);
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  margin-top: 0.25rem;
}

button:hover {
  opacity: 0.9;
}

.fine-print {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0;
}
