:root {
  --cream: #FFF6E6;
  --cream-2: #FBE9C9;
  --coral: #FF6B5B;
  --coral-deep: #E04A39;
  --sun: #FFC857;
  --sea: #2EC4B6;
  --sea-deep: #178A80;
  --sky: #A7D8F5;
  --sand: #F2D8A7;
  --ink: #1A1F2E;
  --ink-soft: #3a4255;
  --line: #1A1F2E;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Decorative sun gradient + grain */
.sun {
  position: fixed;
  top: -180px; right: -180px;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--sun) 0%, var(--coral) 55%, transparent 75%);
  filter: blur(2px);
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
}
.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

main, header { position: relative; z-index: 2; }

/* Nav */
.nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 28px;
  max-width: 1200px; margin: 0 auto;
}
.logo {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.nav-link {
  font-weight: 700; font-size: 14px;
  text-decoration: none; color: var(--ink);
  background: var(--cream-2);
  border: 2px solid var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.nav-link:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }

/* Hero */
.hero {
  max-width: 1100px;
  margin: 32px auto 64px;
  padding: 0 28px;
}
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.18em;
  font-weight: 700;
  background: var(--ink); color: var(--cream);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 22px;
}
h1 {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: clamp(44px, 8.5vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
}
h1 em {
  font-style: italic;
  font-weight: 700;
  color: var(--coral);
}
.hero-stack { display: block; }
.underline-wave {
  position: relative;
  display: inline-block;
  color: var(--sea-deep);
}
.underline-wave::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 14px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 14' preserveAspectRatio='none'><path d='M0 7 Q 15 0 30 7 T 60 7 T 90 7 T 120 7' fill='none' stroke='%232EC4B6' stroke-width='3'/></svg>") repeat-x;
  background-size: 60px 14px;
}
.lede {
  font-size: clamp(17px, 1.6vw, 21px);
  max-width: 640px;
  color: var(--ink-soft);
  margin: 0 0 32px;
}
.cta-row {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-bottom: 36px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 16px;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  min-height: 48px;
}
.btn-primary {
  background: var(--coral); color: var(--cream);
  box-shadow: 4px 4px 0 var(--ink);
}
.btn-primary:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn-primary:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }
.btn-ghost {
  background: transparent; color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  background: var(--cream);
}
.btn-ghost:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }

.counter {
  display: inline-flex; align-items: baseline; gap: 10px;
  background: var(--cream-2);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 10px 18px;
  box-shadow: 3px 3px 0 var(--ink);
}
.counter-num {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: 26px;
  color: var(--coral-deep);
}
.counter-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

/* Marquee strip */
.strip {
  display: flex;
  gap: 40px;
  background: var(--ink);
  color: var(--cream);
  padding: 18px 0;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 22px;
  white-space: nowrap;
  overflow: hidden;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  animation: scroll 30s linear infinite;
}
.strip span { flex: none; }
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* What grid */
.what {
  max-width: 1100px;
  margin: 80px auto;
  padding: 0 28px;
}
.what-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.card {
  border: 2px solid var(--ink);
  border-radius: 22px;
  padding: 28px;
  box-shadow: 6px 6px 0 var(--ink);
  position: relative;
  overflow: hidden;
}
.card-num {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.2em;
  margin-bottom: 14px;
  opacity: 0.7;
}
.card h3 {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: 26px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.card p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.card-coral { background: #FFD7CF; }
.card-sea   { background: #B8EFE8; }
.card-sand  { background: #FBE9C9; }
.card-sky   { background: #D6ECFB; }

/* Details */
.details {
  max-width: 1100px;
  margin: 0 auto 80px;
  padding: 0 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 2px dashed var(--ink);
  border-bottom: 2px dashed var(--ink);
}
.detail {
  padding: 22px 8px;
  display: flex; flex-direction: column; gap: 4px;
  border-bottom: 1px dashed rgba(26,31,46,0.25);
}
.detail:nth-child(odd) { border-right: 1px dashed rgba(26,31,46,0.25); }
.detail:nth-last-child(-n+2) { border-bottom: none; }
.detail-key {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em;
  font-weight: 700; color: var(--coral-deep);
}
.detail-val {
  font-family: 'Fraunces', serif;
  font-weight: 700; font-size: 18px;
}

/* RSVP */
.rsvp {
  background: linear-gradient(180deg, var(--coral) 0%, var(--coral-deep) 100%);
  padding: 80px 28px;
  position: relative;
  border-top: 2px solid var(--ink);
}
.rsvp::before {
  content: "";
  position: absolute; top: -2px; left: 0; right: 0; height: 22px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 22' preserveAspectRatio='none'><path d='M0 22 L0 10 Q 15 -4 30 10 T 60 10 L60 22 Z' fill='%23FFF6E6' stroke='%231A1F2E' stroke-width='2'/></svg>") repeat-x top;
  background-size: 60px 22px;
}
.rsvp-inner {
  max-width: 560px; margin: 24px auto 0;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 28px;
  padding: 40px 32px;
  box-shadow: 8px 8px 0 var(--ink);
}
.rsvp h2 {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: clamp(36px, 6vw, 56px);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.rsvp-sub { margin: 0 0 28px; color: var(--ink-soft); }

.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field span {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.16em;
  font-weight: 700; color: var(--ink);
}
.field input {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  padding: 14px 16px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: white;
  color: var(--ink);
  outline: none;
  transition: box-shadow .15s ease, transform .15s ease;
  width: 100%;
  min-height: 48px;
}
.field input:focus { box-shadow: 4px 4px 0 var(--ink); transform: translate(-1px,-1px); }
.input-prefix {
  display: flex; align-items: center;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: white;
  overflow: hidden;
  transition: box-shadow .15s ease, transform .15s ease;
}
.input-prefix:focus-within { box-shadow: 4px 4px 0 var(--ink); transform: translate(-1px,-1px); }
.input-prefix .prefix {
  padding: 0 12px 0 16px;
  font-weight: 700; color: var(--coral-deep);
  font-size: 18px;
}
.input-prefix input {
  border: none;
  border-radius: 0;
  flex: 1;
  padding-left: 0;
}
.input-prefix input:focus { box-shadow: none; transform: none; }
.btn-submit { margin-top: 8px; }
.btn-submit[disabled] { opacity: 0.6; cursor: not-allowed; }
.form-note { margin: 0; font-size: 13px; color: var(--coral-deep); min-height: 18px; }

.success { text-align: center; padding: 8px 0; }
.success-mark { font-size: 56px; }
.success h3 {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: 32px;
  margin: 8px 0;
}
.success p { color: var(--ink-soft); margin: 0 0 20px; }

/* Foot */
.foot {
  text-align: center;
  padding: 40px 28px 60px;
  color: var(--ink-soft);
  font-size: 14px;
}
.foot a { color: var(--coral-deep); font-weight: 700; }
.foot .tiny { font-size: 12px; opacity: 0.7; margin-top: 6px; }

/* Mobile */
@media (max-width: 720px) {
  .nav { padding: 18px 20px; }
  .hero { margin: 18px auto 48px; padding: 0 20px; }
  .what { margin: 56px auto; padding: 0 20px; }
  .what-grid { grid-template-columns: 1fr; gap: 16px; }
  .card { padding: 22px; box-shadow: 4px 4px 0 var(--ink); }
  .details { padding: 0 20px; margin-bottom: 56px; }
  .detail { padding: 18px 6px; }
  .rsvp { padding: 60px 20px; }
  .rsvp-inner { padding: 28px 22px; box-shadow: 5px 5px 0 var(--ink); }
  .strip { font-size: 18px; gap: 28px; }
  .sun { width: 380px; height: 380px; top: -160px; right: -200px; }
  .counter { padding: 8px 14px; }
  .counter-num { font-size: 22px; }
}
