:root {
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --bg: #FAFAF7;
  --ink: #1F2A4D;
  --ink-soft: #2E3F6E;
  --muted: #5F5E5A;
  --border: #DDDBD3;
  --white: #FFFFFF;
  --success: #2D5F3F;
  --error: #8B2929;
  --focus-ring: rgba(31, 42, 77, 0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

main {
  max-width: 480px;
  width: 100%;
  text-align: center;
  animation: fade-in 1.2s ease-out;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.brand {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 12vw, 5.5rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 1.25rem;
}

.tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.125rem, 3.5vw, 1.5rem);
  font-weight: 400;
  color: var(--muted);
  line-height: 1.4;
  margin-bottom: 2rem;
}

.lead {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--muted);
  max-width: 380px;
  margin: 0 auto 0.9rem;
}

.lead--soft {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  margin-bottom: 0;
}

.ornament {
  width: 48px;
  height: 1px;
  background: var(--border);
  margin: 2.25rem auto 2.25rem;
}

#subscribe-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 420px;
  margin: 0 auto;
}

#email {
  flex: 1;
  min-width: 0;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  background: var(--white);
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  border-radius: 2px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#email:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

#email::placeholder {
  color: #999;
}

.honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

#submit-btn {
  padding: 0.875rem 1.5rem;
  background: var(--ink);
  color: var(--bg);
  border: none;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

#submit-btn:hover { background: var(--ink-soft); }
#submit-btn:active { transform: scale(0.98); }
#submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }
#submit-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.status {
  margin-top: 1.5rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.5;
}

.success { color: var(--success); }
.error { color: var(--error); }

footer {
  margin-top: 4rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  opacity: 0.6;
}

@media (max-width: 480px) {
  body { padding: 1rem; }
  #subscribe-form { flex-direction: column; }
  #submit-btn { width: 100%; }
  footer { margin-top: 3rem; }
  .ornament { margin: 1.75rem auto; }
}

@media (prefers-reduced-motion: reduce) {
  main { animation: none; }
  * { transition: none !important; }
}
