/* Wedding Weather Witches — Coming Soon
   Design tokens and layout per design_handoff_coming_soon/README.md */

:root {
  --parchment: #F4ECDC;
  --ink: #3A1F3D;
  --ink-soft: #6b4f6e;
  --gold: #E9B33D;
  --bronze: #B89968;
  --eyebrow: #8E7449;
  --error: #A0522D;
  --input-bg: rgba(250, 244, 230, 0.9);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-ui: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html, body { margin: 0; padding: 0; }

body {
  background: var(--parchment);
  font-family: var(--font-ui);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* Full-page grain overlay — above content, non-interactive */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='5'/><feColorMatrix values='0 0 0 0 0.23, 0 0 0 0 0.12, 0 0 0 0 0.24, 0 0 0 0.18 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.42;
  mix-blend-mode: multiply;
}

.stage {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px 88px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Soft sun halo behind the brand mark */
.halo {
  position: absolute;
  top: 12%;
  left: 50%;
  width: 520px;
  height: 520px;
  margin-left: -260px;
  pointer-events: none;
  background: radial-gradient(circle,
    rgba(233, 179, 61, 0.16) 0%,
    rgba(233, 179, 61, 0.06) 40%,
    rgba(233, 179, 61, 0) 65%);
}

.content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 640px;
  width: 100%;
}

/* --- Brand mark --- */

.mark {
  position: relative;
  animation: float-slow 6s ease-in-out infinite;
  margin-bottom: 28px;
}

.witch {
  position: absolute;
  top: -6px;
  left: 50%;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  animation: witch-fly 9s ease-in-out infinite;
}

.witch__bob { animation: witch-bob 2.6s ease-in-out infinite; }

@keyframes float-slow {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

@keyframes witch-fly {
  0%   { transform: translateX(-110px) translateY(6px); opacity: 0; }
  12%  { opacity: 0.85; }
  35%  { transform: translateX(-20px) translateY(-14px); }
  65%  { transform: translateX(50px) translateY(-2px); }
  88%  { opacity: 0.85; }
  100% { transform: translateX(150px) translateY(-16px); opacity: 0; }
}

@keyframes witch-bob {
  0%, 100% { transform: rotate(-3deg); }
  50%      { transform: rotate(4deg) translateY(-4px); }
}

/* --- Type --- */

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--eyebrow);
  margin-bottom: 22px;
}

.headline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(44px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
  color: var(--ink);
  text-wrap: balance;
}

.headline em {
  font-style: italic;
  color: var(--gold);
}

.sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 21px;
  line-height: 1.55;
  margin: 0 0 40px;
  color: var(--ink-soft);
  max-width: 46ch;
  text-wrap: pretty;
}

/* --- Email capture --- */

.capture {
  width: 100%;
  max-width: 460px;
}

.signup {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 460px;
  flex-wrap: wrap;
  justify-content: center;
}

.signup__input {
  flex: 1 1 240px;
  min-width: 220px;
  padding: 14px 20px;
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--ink);
  background: var(--input-bg);
  border: 1px solid rgba(58, 31, 61, 0.22);
  border-radius: 999px;
  outline: none;
}

.signup__input::placeholder {
  color: rgba(58, 31, 61, 0.4);
  font-style: italic;
}

.signup__input:focus {
  border-color: var(--bronze);
  box-shadow: 0 0 0 3px rgba(184, 153, 104, 0.18);
}

.signup__button {
  padding: 14px 28px;
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--parchment);
  background: var(--ink);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 160ms ease;
}

.signup__button:hover { background: var(--ink-soft); }

.signup__button:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 3px;
}

.signup__button[disabled] { cursor: default; }

/* Netlify honeypot — never shown to humans */
.hp { position: absolute; left: -9999px; opacity: 0; }

.error {
  margin-top: 12px;
  font-size: 13px;
  color: var(--error);
}

.success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 32px;
  background: rgba(184, 153, 104, 0.1);
  border: 1px solid rgba(184, 153, 104, 0.35);
  border-radius: 12px;
}

.success__title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--ink);
}

.success__note {
  font-size: 13px;
  color: var(--ink-soft);
}

/* --- Guarantee + footer --- */

.guarantee {
  margin-top: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(13px, 3.6vw, 17px);
  white-space: nowrap;
  color: var(--ink-soft);
}

.guarantee span[aria-hidden] {
  color: var(--gold);
  font-style: normal;
  font-size: 13px;
}

.footer {
  position: absolute;
  bottom: 24px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: center;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(58, 31, 61, 0.45);
}

[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .mark, .witch, .witch__bob { animation: none; }
  .witch { display: none; }
  .signup__button { transition: none; }
}
