:root {
  --ink: #344039;
  --muted: #687269;
  --cream: #fffaf1;
  --paper: #fffefb;
  --sage: #8f9b79;
  --sage-dark: #687356;
  --sage-light: #e5eadb;
  --blush: #e9c6bd;
  --peach: #f3d8c3;
  --gold: #d5ae68;
  --line: rgba(52, 64, 57, 0.14);
  --shadow: 0 20px 55px rgba(62, 70, 62, 0.12);
  --radius: 28px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  line-height: 1.6;
}

a { color: inherit; }
button, input, textarea, select { font: inherit; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  padding: .75rem 1rem;
  background: var(--ink);
  color: white;
  border-radius: .5rem;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.setup-banner {
  padding: .65rem 1rem;
  text-align: center;
  background: #3c3028;
  color: #fff8e9;
  font-size: .9rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  background: rgba(255, 250, 241, .88);
  border-bottom: 1px solid rgba(52, 64, 57, .08);
  backdrop-filter: blur(16px);
}
.brand {
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.02rem;
  font-style: italic;
}
nav { display: flex; align-items: center; gap: 1.25rem; }
nav a { text-decoration: none; font-size: .9rem; font-weight: 700; }
.nav-rsvp { padding: .55rem .9rem; border-radius: 999px; background: var(--sage); color: white; }

.hero {
  position: relative;
  min-height: min(780px, 88vh);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 5rem 1.25rem 8rem;
  background:
    radial-gradient(circle at 16% 18%, rgba(233, 198, 189, .6), transparent 24%),
    radial-gradient(circle at 80% 15%, rgba(229, 234, 219, .95), transparent 28%),
    linear-gradient(155deg, #fffaf1 0%, #f9f0e5 55%, #f3e8db 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .26;
  background-image: radial-gradient(rgba(52,64,57,.22) .7px, transparent .7px);
  background-size: 18px 18px;
  pointer-events: none;
}
.hero-card {
  position: relative;
  z-index: 2;
  width: min(780px, 100%);
  text-align: center;
  padding: clamp(2.3rem, 7vw, 5.5rem) clamp(1.4rem, 7vw, 5rem);
  background: rgba(255, 254, 251, .77);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 42px 42px 110px 110px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.eyebrow {
  margin: 0 0 .75rem;
  color: var(--sage-dark);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
h1, h2, h3 { margin-top: 0; }
h1 {
  margin-bottom: 1rem;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 10vw, 7.6rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.045em;
}
#parent-names {
  display: block;
  white-space: pre-line;
  line-height: .92;
}
h1 small {
  display: block;
  margin: .55rem 0;
  font-family: var(--sans);
  font-size: .18em;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
h1 em {
  display: block;
  padding-bottom: .12em;
  color: var(--sage-dark);
  font-size: .62em;
  font-weight: 400;
  line-height: 1.18;
}
.hero-copy { margin: 1.4rem auto; max-width: 38rem; color: var(--muted); font-size: 1.07rem; }
.hero-date { display: flex; justify-content: center; flex-wrap: wrap; gap: .55rem; font-weight: 800; }
.dot { color: var(--gold); }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .8rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.button-primary { background: var(--sage); color: white; box-shadow: 0 10px 24px rgba(104,115,86,.2); }
.button-primary:hover { background: var(--sage-dark); }
.button-secondary { background: rgba(255,255,255,.7); border-color: var(--line); color: var(--ink); }

.decor { position: absolute; z-index: 1; pointer-events: none; }
.decor-left { left: clamp(-1rem, 2vw, 2rem); bottom: 10%; width: 210px; height: 280px; }
.balloon { position: absolute; display: block; width: 82px; height: 102px; border-radius: 50% 50% 46% 46%; box-shadow: inset -12px -12px 20px rgba(0,0,0,.04); }
.balloon::after { content: ""; position: absolute; left: 50%; top: 98px; width: 1px; height: 120px; background: rgba(52,64,57,.25); transform: rotate(6deg); }
.balloon-one { left: 8px; top: 24px; background: var(--blush); transform: rotate(-8deg); }
.balloon-two { left: 87px; top: 0; background: var(--sage-light); transform: rotate(8deg); }
.balloon-three { left: 65px; top: 112px; width: 65px; height: 82px; background: var(--peach); }
.balloon-three::after { top: 80px; height: 75px; }
.decor-right { right: clamp(1rem, 5vw, 6rem); top: 18%; display: grid; gap: 2.2rem; color: var(--gold); font-size: clamp(1.3rem, 3vw, 2.2rem); transform: rotate(10deg); }
.wave { position: absolute; left: -5%; right: -5%; bottom: -76px; height: 150px; background: var(--cream); border-radius: 50% 50% 0 0 / 45% 45% 0 0; }

.section { padding: clamp(4.5rem, 9vw, 8rem) clamp(1.25rem, 6vw, 6rem); }
.section-heading { max-width: 780px; margin: 0 auto 2.4rem; text-align: center; }
.section-heading.narrow { max-width: 670px; }
h2 { margin-bottom: .7rem; font-family: var(--serif); font-size: clamp(2.4rem, 6vw, 4.5rem); font-weight: 400; line-height: 1.05; letter-spacing: -.035em; }
h3 { font-family: var(--serif); font-size: 1.35rem; font-weight: 400; }

.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; max-width: 1120px; margin: 0 auto; }
.detail-card { padding: 2rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 35px rgba(62,70,62,.06); }
.detail-card .icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 1.4rem; background: var(--sage-light); border-radius: 50%; color: var(--sage-dark); font-size: 1.25rem; }
.detail-card p { color: var(--muted); }
.detail-card strong { color: var(--ink); }
.text-link { font-weight: 800; text-underline-offset: 4px; }
.hosted-by { margin: 2.5rem 0 0; text-align: center; color: var(--muted); font-style: italic; }

.countdown-section { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 2.8rem clamp(1.25rem, 8vw, 8rem); background: var(--sage-dark); color: white; }
.countdown-section .eyebrow { color: #e7e9d9; }
.countdown-section h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.6rem); }
.countdown { display: flex; gap: clamp(.7rem, 3vw, 2rem); }
.countdown div { min-width: 86px; text-align: center; }
.countdown strong { display: block; font-family: var(--serif); font-size: clamp(2rem, 5vw, 4rem); line-height: 1; font-weight: 400; }
.countdown span { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }

.registry-section { background: #f4eadf; text-align: center; }
.registry-section .section-heading { margin-bottom: 0; }
.registry-section #registry-message { max-width: 650px; margin-right: auto; margin-left: auto; color: var(--muted); }
.registry-button { display: inline-flex; margin-top: 1rem; }

.rsvp-section { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(2rem, 6vw, 6rem); max-width: 1320px; margin: 0 auto; align-items: start; }
.rsvp-intro { position: sticky; top: 110px; }
.rsvp-intro p { color: var(--muted); }
.form-shell { min-height: 620px; overflow: hidden; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.form-shell iframe { width: 100%; min-height: 820px; border: 0; }

.faq-section { background: var(--paper); }
.faq-list { max-width: 850px; margin: 0 auto; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { display: flex; justify-content: space-between; gap: 1rem; padding: 1.35rem .2rem; cursor: pointer; list-style: none; font-weight: 800; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--sage-dark); font-size: 1.35rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: -.3rem 0 1.5rem; color: var(--muted); }

footer { display: flex; justify-content: space-between; gap: 1rem; padding: 2rem clamp(1.25rem, 6vw, 6rem); background: var(--ink); color: #edf0ea; }
footer a { text-underline-offset: 4px; }
.noscript { position: fixed; inset: auto 0 0; z-index: 999; padding: 1rem; text-align: center; background: #6b2f2f; color: white; }

@media (max-width: 860px) {
  .detail-grid { grid-template-columns: 1fr; }
  .countdown-section { align-items: flex-start; flex-direction: column; }
  .rsvp-section { grid-template-columns: 1fr; }
  .rsvp-intro { position: static; }
}

@media (max-width: 620px) {
  .site-header { justify-content: center; }
  .brand { display: none; }
  nav { width: 100%; justify-content: space-around; gap: .4rem; }
  .hero { min-height: 760px; padding-top: 3rem; }
  .hero-card { border-radius: 34px 34px 72px 72px; }
  .decor-left { opacity: .55; transform: scale(.75); transform-origin: bottom left; }
  .decor-right { opacity: .5; }
  .countdown div { min-width: 70px; }
  footer { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
