*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

:root {
  --color-bg: #fafafa;
  --color-text: #1a1a1a;
  --color-muted: #666;
  --color-border: #ddd;
  --color-accent: #000;
  --color-accent-hover: #333;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', Monaco, 'Cascadia Code', monospace;
}

html {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

main {
  max-width: 480px;
  width: 100%;
  text-align: center;
}

h1 {
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.tagline {
  color: var(--color-muted);
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
}

.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.input-group {
  display: flex;
  gap: 0.5rem;
}

input[type="email"] {
  flex: 1;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: white;
  transition: border-color 0.15s ease;
}

input[type="email"]:focus {
  outline: none;
  border-color: var(--color-accent);
}

input[type="email"]::placeholder {
  color: #999;
}

button[type="submit"] {
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 500;
  background: var(--color-accent);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

button[type="submit"]:hover {
  background: var(--color-accent-hover);
}

button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Honeypot field - hidden but accessible to bots */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  z-index: -1;
  pointer-events: none;
}

.message {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  display: none;
}

.message.success {
  display: block;
  background: #e8f5e9;
  color: #2e7d32;
}

.message.error {
  display: block;
  background: #ffebee;
  color: #c62828;
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }

  .input-group {
    flex-direction: column;
  }

  button[type="submit"] {
    width: 100%;
  }
}
