:root {
  --bg: #0b0d0c;
  --fg: #e6e8e6;
  --muted: #8a908d;
  --line: #1c211f;
  --accent: #4ec9b0;
  --accent-fg: #06120f;
  --error: #f08a8a;
  --radius: 4px;
  --mono:
    ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
  max-width: 640px;
  margin: 0 auto;
}

.site-header {
  margin-bottom: 64px;
}

.wordmark {
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--fg);
}

main {
  flex: 1;
}

h1 {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}

.lede {
  color: var(--muted);
  margin: 0 0 40px;
  max-width: 56ch;
}

form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.label {
  font-size: 12px;
  color: var(--muted);
  text-transform: lowercase;
}

input[type="email"],
input[type="text"],
textarea {
  font: inherit;
  color: var(--fg);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  outline: none;
  width: 100%;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #5a615e;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

button {
  font: inherit;
  background: var(--accent);
  color: var(--accent-fg);
  border: 0;
  border-radius: var(--radius);
  padding: 10px 16px;
  cursor: pointer;
  align-self: flex-start;
  transition: opacity 120ms ease;
}

button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

button:not(:disabled):hover,
button:not(:disabled):focus-visible {
  opacity: 0.85;
}

.error {
  color: var(--error);
  margin: 0;
  font-size: 13px;
}

.success p {
  color: var(--accent);
  margin: 0;
}

footer {
  margin-top: 64px;
  color: var(--muted);
  font-size: 12px;
}
