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

:root {
  --ivory: #FBF5EA;
  --ivory-raised: #fdfcfa;
  --ink: #1c1b19;
  --ink-soft: #5a564f;
  --muted: #857f75;
  --gold: #B8894A;
  --gold-deep: #9A7038;
  --line: #d4cfc4;
  --display: "Playfair Display", "Times New Roman", serif;
  --body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: var(--body);
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Soft paper grain and a faint warm wash */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(158, 116, 36, 0.08), transparent 60%),
    radial-gradient(800px 500px at 100% 100%, rgba(28, 27, 25, 0.04), transparent 55%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
}

.frame {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(158, 116, 36, 0.35);
  pointer-events: none;
  z-index: 2;
}

.frame::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(158, 116, 36, 0.18);
}

.masthead, main, footer {
  position: relative;
  z-index: 1;
}

.masthead {
  padding: 2.25rem 1.75rem 0;
  display: flex;
  justify-content: center;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-decoration: none;
  color: inherit;
}

.logo {
  display: block;
  width: min(220px, 72vw);
  height: auto;
}

main {
  max-width: 36rem;
  margin: 0 auto;
  padding: 2.75rem 1.75rem 2.25rem;
  text-align: center;
  flex: 1;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

h1 {
  margin: 0 0 1.15rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2rem, 7.2vw, 3.15rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.lead {
  margin: 0 auto 2.25rem;
  max-width: 32rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.promises {
  list-style: none;
  margin: 0 auto 2.5rem;
  padding: 0;
  max-width: 26rem;
  text-align: left;
}

.promises li {
  position: relative;
  padding: 0.95rem 0 0.95rem 1.35rem;
  border-top: 1px solid var(--line);
  font-size: 1.02rem;
  color: var(--ink);
}

.promises li:last-child {
  border-bottom: 1px solid var(--line);
}

.promises li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.4rem;
  width: 0.5rem;
  height: 1px;
  background: var(--gold);
}

form {
  max-width: 28rem;
  margin: 0 auto;
}

.row {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

input[type="email"] {
  width: 100%;
  appearance: none;
  border: 1px solid var(--line);
  background: var(--ivory-raised);
  color: var(--ink);
  font: 400 1rem/1.4 var(--body);
  padding: 0.95rem 1rem;
  border-radius: 0;
}

input[type="email"]::placeholder {
  color: var(--muted);
}

input[type="email"]:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-color: var(--gold);
}

button[type="submit"] {
  appearance: none;
  border: 1px solid var(--gold-deep);
  background: var(--gold);
  color: #fdfcfb;
  font: 600 0.92rem/1 var(--body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1.05rem 1.25rem;
  cursor: pointer;
  border-radius: 0;
  transition: background 0.15s ease, border-color 0.15s ease;
}

button[type="submit"]:hover:not(:disabled) {
  background: var(--gold-deep);
}

button[type="submit"]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: wait;
}

.privacy {
  margin: 0.9rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.status {
  min-height: 1.4em;
  margin: 0.85rem 0 0;
  font-size: 0.95rem;
  color: var(--ink);
}

.status.is-error { color: #8a2c1f; }
.status.is-success { color: #2f4a32; }

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

.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;
}

footer {
  text-align: center;
  padding: 0 1.75rem 2.75rem;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

footer p { margin: 0; }

@media (min-width: 640px) {
  .frame { inset: 20px; }
  .masthead { padding-top: 2.75rem; }
  .row {
    flex-direction: row;
    align-items: stretch;
  }
  input[type="email"] { flex: 1; }
  button[type="submit"] { flex: 0 0 auto; padding-inline: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  button[type="submit"] { transition: none; }
}
