:root {
  --gold: #E8B86A; --gold-light: #FFF0C8; --cream: #F6E6D2;
  --plum: #5E3A55; --night: #1B1024;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh; min-height: 100dvh;
  background: radial-gradient(ellipse at 50% 30%, var(--plum) 0%, #3A2238 45%, var(--night) 100%) fixed;
  color: var(--cream);
  font-family: "Cormorant Garamond", Georgia, serif;
  overflow-x: hidden;
}
.sky { position: fixed; inset: 0; pointer-events: none; }
.sky::before, .sky::after {
  content: ""; position: absolute; width: 2px; height: 2px; border-radius: 50%; background: transparent;
  box-shadow: 8vw 12vh #fff6, 22vw 6vh #fff9, 35vw 18vh #fff5, 48vw 9vh #fff8, 61vw 15vh #fff6, 74vw 5vh #fff9,
    88vw 13vh #fff5, 12vw 34vh #fff7, 27vw 41vh #fff4, 53vw 38vh #fff8, 79vw 36vh #fff6, 93vw 44vh #fff5,
    5vw 62vh #fff6, 19vw 71vh #fff8, 41vw 66vh #fff5, 67vw 69vh #fff7, 84vw 63vh #fff6, 96vw 78vh #fff5,
    14vw 88vh #fff7, 38vw 93vh #fff5, 58vw 86vh #fff8, 76vw 91vh #fff6;
  animation: twinkle 5s ease-in-out infinite;
}
.sky::after { transform: translate(3vw, 4vh); animation-delay: -2.5s; opacity: .7; }
@keyframes twinkle { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

main {
  position: relative; max-width: 440px; margin: 0 auto; text-align: center;
  padding: max(28px, env(safe-area-inset-top)) 16px max(32px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: center;
}
.logo { width: min(260px, 70vw); height: auto; filter: drop-shadow(0 0 18px #E8B86A55); }
h1 {
  margin: 22px 0 8px; font-weight: 600; line-height: 1.12; color: var(--gold-light);
  font-size: clamp(30px, 8.6vw, 44px); text-wrap: balance;
}
.lead { text-wrap: balance; margin: 0 0 20px; font-size: clamp(18px, 5vw, 22px); color: var(--cream); opacity: .85; }

.card { position: relative; margin: 30px 0 0; width: min(290px, 78vw); filter: drop-shadow(0 12px 32px #0008); }
.card img { display: block; width: 100%; height: auto; border-radius: 14px; }
.card figcaption {
  position: absolute; left: 15%; right: 15%; top: 61%; text-align: left;
  font-style: italic; font-size: clamp(13px, 3.8vw, 16px); line-height: 1.3; color: var(--cream);
}

form { display: flex; flex-direction: column; gap: 12px; width: 100%; }
input[type=email] {
  width: 100%; height: 52px; padding: 0 20px; border-radius: 26px;
  border: 1px solid #E8B86A99; background: #1B102499; color: var(--gold-light);
  font: 400 20px "Cormorant Garamond", Georgia, serif; text-align: center;
}
input[type=email]::placeholder { color: #F6E6D2aa; }
input[type=email]:focus { outline: 2px solid var(--gold); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
button {
  height: 56px; border: 0; cursor: pointer; color: #2A1830;
  font: 600 21px "Cormorant Garamond", Georgia, serif; letter-spacing: .02em;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 16px 100%, 0 50%);
  box-shadow: 0 0 24px #E8B86A66;
}
button:disabled { opacity: .6; cursor: default; }
button:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
#msg { min-height: 1.4em; margin: 12px 0 0; font-size: 18px; color: #FFB8A8; }
#msg.done { color: var(--gold-light); font-size: 26px; font-weight: 600; margin-top: 0; }
.note { margin: 4px 0 0; font-size: 16px; opacity: .7; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }
[hidden] { display: none !important; }
