:root {
  --paper: #faf8f2;
  --ink: #2c2a26;
  --ink-muted: #6b6559;
  --grove-green: #3a7d44;
  --grove-green-dark: #2f6438;
  --border: #e3ddd0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1e1c19;
    --ink: #e8e4dc;
    --ink-muted: #a39d8f;
    --grove-green: #4f9c5a;
    --grove-green-dark: #63b16d;
    --border: #38352f;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

main {
  width: 100%;
  max-width: 640px;
  padding: 4rem 1.5rem;
  text-align: center;
}

h1 {
  font-size: 2.5rem;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.tagline {
  font-size: 1.15rem;
  color: var(--ink);
  margin: 0 0 0.75rem;
}

.floor {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin: 0 0 2.5rem;
}

form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

input[type="email"] {
  width: 100%;
  max-width: 360px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
}

input[type="email"]:focus {
  outline: 2px solid var(--grove-green);
  outline-offset: 1px;
}

button {
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: var(--grove-green);
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

button:hover {
  background: var(--grove-green-dark);
}

#result {
  min-height: 1.25em;
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin: 0;
}
