:root {
  --ink: #232a35;
  --paper: #f6f3ee;
  --card: #ffffff;
  --accent: #2f6f4f;
  --accent-dark: #24573d;
  --error: #a02c2c;
  --muted: #5a6270;
  --border: #d8d2c8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background: var(--paper);
  color: var(--ink);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 2rem 1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 8px 24px rgba(35, 42, 53, 0.08);
}

h1 {
  font-size: 1.75rem;
  margin: 0 0 0.5rem;
}

.lede {
  color: var(--muted);
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

label {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  font-weight: bold;
}

.row {
  display: flex;
  gap: 0.6rem;
}

input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 0.7rem 0.8rem;
  font: inherit;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--ink);
  background: var(--card);
}

input[type="email"]:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

button {
  padding: 0.7rem 1.4rem;
  font: inherit;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  white-space: nowrap;
}

button:hover:not(:disabled) { background: var(--accent-dark); }

button:disabled {
  background: var(--muted);
  cursor: not-allowed;
}

.message {
  margin: 1rem 0 0;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  line-height: 1.45;
}

.message.ok {
  background: #e7f2ec;
  color: #1d4d34;
  border: 1px solid #bcdcc9;
}

.message.err {
  background: #f9e9e9;
  color: var(--error);
  border: 1px solid #e5c3c3;
}

@media (max-width: 420px) {
  .card { padding: 1.5rem 1.25rem; }
  .row { flex-direction: column; }
  button { width: 100%; }
}
