:root {
  --blush: #f7e3ea;
  --paper: #fdf6f8;
  --ink: #3a2230;
  --muted: #7d5568;
  --rule: #c45d78;
  --rose: #9e3a58;
  --notice: #f3d4df;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  background:
    radial-gradient(1100px 480px at 8% -12%, #f4c4d4 0%, transparent 56%),
    radial-gradient(700px 360px at 100% 0%, #f8d5e2 0%, transparent 52%),
    linear-gradient(180deg, var(--blush) 0%, var(--paper) 100%);
  color: var(--ink);
}

body {
  font-family: "Newsreader", "Iowan Old Style", Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.45;
}

main {
  max-width: 34rem;
  margin: 0 auto;
  padding: 12vh 1.5rem 4rem;
  animation: rise 0.7s ease both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.heart {
  position: fixed;
  top: -1.25rem;
  right: -1.25rem;
  width: 9.5rem;
  height: 9.5rem;
  z-index: 0;
  pointer-events: none;
}

h1 {
  font-family: "Fraunces", "Palatino Linotype", serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-size: clamp(2.15rem, 5.6vw, 3.25rem);
  line-height: 1.08;
  margin: 0 0 1.25rem;
}

hr {
  border: 0;
  border-top: 2px solid var(--rule);
  width: 4.5rem;
  margin: 0 0 1.5rem;
}

.lead {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.5;
}

.notice {
  margin: 0 0 2rem;
  padding: 0.9rem 0 0.9rem 1rem;
  border-left: 4px solid var(--rule);
  background: var(--notice);
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.4;
}

.notice strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: "Fraunces", serif;
  font-weight: 700;
}

form { display: grid; gap: 0.45rem; }

label {
  font-family: "Fraunces", serif;
  font-size: 1rem;
  margin-top: 0.85rem;
}

input {
  appearance: none;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  padding: 0.55rem 0 0.4rem;
}

input:focus {
  outline: none;
  border-bottom-width: 2px;
  border-bottom-color: var(--rule);
}

button {
  margin-top: 1.6rem;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--rose);
  color: var(--paper);
  border: 0;
  border-radius: 0;
  font-family: "Fraunces", serif;
  font-size: 1.05rem;
  padding: 0.7rem 1.15rem;
  cursor: pointer;
}

button:hover { background: #7e2c46; }
button:disabled { opacity: 0.55; cursor: wait; }

button svg {
  width: 1.15rem;
  height: 1.15rem;
}

#status {
  margin-top: 1.5rem;
  color: var(--rose);
}

#status[data-kind="error"] { color: var(--rule); }
