@import url("https://fonts.googleapis.com/css2?family=Dancing+Script:wght@600;700&family=Lora:wght@400;500&display=swap");

:root {
  --background: hsl(43 51% 92%);
  --foreground: hsl(0 0% 4%);
  --card: hsl(43 45% 87%);
  --primary: hsl(155 24% 23%);
  --primary-foreground: hsl(0 0% 100%);
  --secondary: hsl(44 54% 54%);
  --muted: hsl(43 41% 85%);
  --muted-foreground: hsl(27 16% 36%);
  --accent: hsl(12 39% 62%);
  --border: hsl(42 30% 76%);
  --white: hsl(0 0% 100%);
  --shadow: 0 18px 45px hsl(155 24% 10% / 0.18);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Lora", Georgia, serif;
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 {
  margin: 0;
  font-family: "Dancing Script", cursive;
  font-weight: 700;
  line-height: 1;
}
.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  transform: translateY(-150%);
  background: var(--white);
  border: 2px solid var(--primary);
  border-radius: 4px;
  padding: 0.65rem 0.85rem;
}
.skip-link:focus { transform: translateY(0); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  padding: 0 6vw;
  color: var(--white);
  transition: background 220ms ease, border-color 220ms ease, color 220ms ease;
}
.site-header.is-scrolled {
  background: hsl(43 51% 92% / 0.96);
  border-bottom: 1px solid var(--border);
  color: var(--foreground);
  box-shadow: 0 3px 18px hsl(155 24% 12% / 0.08);
  backdrop-filter: blur(12px);
}
.brand { width: 156px; display: inline-flex; align-items: center; }
.brand img { width: 100%; height: auto; filter: drop-shadow(0 2px 8px hsl(0 0% 0% / 0.2)); }
.site-header.is-scrolled .brand img { filter: none; }
.site-nav { display: flex; align-items: center; gap: clamp(1.25rem, 2.2vw, 2rem); }
.site-nav a {
  color: inherit;
  font-size: 0.84rem;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--secondary); }
.nav-rsvp { border: 1px solid currentColor; border-radius: 2px; padding: 0.35rem 0.85rem; }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
}
.nav-toggle span:not(.sr-only) { display: block; width: 22px; height: 2px; margin: 5px auto; background: currentColor; }
.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  place-items: center;
  isolation: isolate;
}
.hero-image, .hero-overlay, .rsvp-cta > img, .cta-overlay, .rsvp-hero > img, .rsvp-hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-image, .rsvp-cta > img, .rsvp-hero > img { object-fit: cover; z-index: -3; }
.hero-image { object-position: center; }
.hero-overlay {
  z-index: -2;
  background: linear-gradient(to bottom, hsl(155 24% 14% / 0.7), hsl(155 24% 14% / 0.55), hsl(155 24% 14% / 0.82));
}
.hero-content { width: min(860px, 92vw); padding: 7rem 0 5rem; text-align: center; color: var(--white); }
.eyebrow { margin: 0 0 0.85rem; color: var(--accent); font-size: 0.78rem; letter-spacing: 0.3em; text-transform: uppercase; }
.hero .eyebrow, .rsvp-cta .eyebrow, .rsvp-page .eyebrow { color: var(--secondary); }
.hero h1 { font-size: clamp(4.5rem, 13vw, 8.5rem); }
.hero-rule { display: flex; align-items: center; justify-content: center; gap: 0.85rem; margin: 0.5rem auto 2.4rem; color: hsl(0 0% 100% / 0.8); }
.hero-rule span { width: 48px; height: 1px; background: hsl(44 54% 54% / 0.65); }
.hero-rule p { margin: 0; font-size: 1rem; letter-spacing: 0.18em; text-transform: uppercase; }
.hero-rule b { margin: 0 0.35rem; color: var(--secondary); }
.countdown { display: flex; align-items: start; justify-content: center; gap: clamp(0.8rem, 3vw, 2.5rem); margin-bottom: 2.8rem; }
.countdown div:not(.countdown-dot) { min-width: 72px; }
.countdown strong { display: block; color: var(--secondary); font-family: "Dancing Script", cursive; font-size: clamp(2.8rem, 7vw, 4.8rem); line-height: 0.95; }
.countdown span { display: block; color: hsl(0 0% 100% / 0.64); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; }
.countdown-dot { color: hsl(44 54% 54% / 0.55); font-family: "Dancing Script", cursive; font-size: 3rem; line-height: 1; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.95rem 2.5rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 0.84rem;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 180ms ease, opacity 180ms ease, border-color 180ms ease;
}
.button-gold { background: var(--secondary); color: var(--primary); }
.button-gold:hover, .button-gold:focus-visible { background: hsl(44 54% 48%); }
.button-primary { width: 100%; background: var(--primary); color: var(--primary-foreground); }
.button-primary:hover, .button-primary:focus-visible { background: hsl(155 24% 18%); }
.button:disabled { cursor: wait; opacity: 0.62; }
.scroll-cue { position: absolute; left: 50%; bottom: 2rem; width: 1px; height: 42px; background: hsl(0 0% 100% / 0.32); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.42; } }
.quick-details { display: flex; align-items: center; justify-content: center; gap: clamp(1.2rem, 4vw, 4rem); padding: 2rem 6vw; background: var(--primary); color: var(--primary-foreground); text-align: center; }
.detail-chip { display: flex; align-items: center; gap: 0.7rem; }
.detail-chip span { color: var(--secondary); }
.detail-chip p, .quick-details a { margin: 0; color: hsl(0 0% 100% / 0.82); font-size: 0.84rem; letter-spacing: 0.16em; text-transform: uppercase; }
.quick-details a { color: var(--secondary); text-decoration: none; border-bottom: 1px solid hsl(44 54% 54% / 0.45); }
.detail-divider { width: 1px; height: 28px; background: hsl(44 54% 54% / 0.32); }
.section { padding: clamp(5rem, 9vw, 7rem) 6vw; }
.story-section { display: grid; grid-template-columns: minmax(280px, 0.88fr) minmax(300px, 1fr); align-items: center; gap: clamp(3rem, 7vw, 6rem); max-width: 1160px; margin: 0 auto; }
.image-frame { position: relative; }
.image-frame::before { content: ""; position: absolute; inset: -1rem 1rem 1rem -1rem; border: 1px solid hsl(44 54% 54% / 0.36); }
.image-frame img { position: relative; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 2px; box-shadow: var(--shadow); }
.story-copy { display: grid; gap: 1.2rem; }
.story-copy h2, .section-heading h2, .rsvp-cta h2, .rsvp-page h2 { color: var(--primary); font-size: clamp(4rem, 8vw, 6rem); }
.story-copy p:not(.eyebrow), .travel-grid p, .rsvp-cta p, .rsvp-hero p:not(.eyebrow) { margin: 0; color: var(--muted-foreground); }
.small-rule { width: 48px; height: 1px; background: var(--secondary); }
.rsvp-cta { position: relative; display: grid; min-height: 520px; place-items: center; overflow: hidden; isolation: isolate; text-align: center; }
.cta-overlay { z-index: -2; background: linear-gradient(135deg, hsl(155 24% 23% / 0.86), hsl(155 24% 14% / 0.9)); }
.cta-content { width: min(680px, 90vw); color: var(--white); }
.heart { display: block; margin-bottom: 1rem; color: var(--secondary); font-size: 2.4rem; }
.rsvp-cta h2 { color: var(--white); }
.rsvp-cta p { margin: 1.2rem auto 2.2rem; color: hsl(0 0% 100% / 0.78); }
.travel-section { background: var(--muted); }
.section-heading { text-align: center; }
.section-heading .small-rule { margin: 1rem auto 0; }
.travel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; max-width: 1120px; margin: 3rem auto 0; }
.travel-grid article { display: grid; align-content: start; gap: 0.9rem; min-height: 300px; padding: 2rem; border: 1px solid var(--border); border-radius: 2px; background: var(--card); transition: box-shadow 180ms ease; }
.travel-grid article:hover { box-shadow: 0 10px 24px hsl(155 24% 14% / 0.12); }
.travel-grid span { color: var(--secondary); font-size: 1.4rem; }
.travel-grid h3, .rsvp-form h3 { color: var(--foreground); font-family: "Lora", Georgia, serif; font-size: 1.05rem; font-weight: 500; }
.rsvp-page { background: var(--background); }
.rsvp-hero { position: relative; display: grid; min-height: 430px; place-items: center; overflow: hidden; padding: 8rem 6vw 4rem; text-align: center; isolation: isolate; }
.rsvp-hero-overlay { z-index: -2; background: hsl(155 24% 23% / 0.9); }
.rsvp-hero > div { width: min(620px, 90vw); }
.rsvp-hero h2 { color: var(--white); }
.rsvp-hero .small-rule { margin: 1rem auto; }
.rsvp-hero p:not(.eyebrow) { color: hsl(0 0% 100% / 0.72); }
.rsvp-form { display: grid; gap: 2.8rem; width: min(720px, 90vw); margin: 0 auto; padding: 4.5rem 0 5.5rem; }
.rsvp-form section { display: grid; gap: 1.3rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.rsvp-form label { display: grid; gap: 0.5rem; color: var(--muted-foreground); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; }
.rsvp-form label span, .rsvp-form label > span { color: var(--accent); }
input, textarea { width: 100%; min-height: 52px; border: 1px solid var(--border); border-radius: 2px; background: var(--card); color: var(--foreground); padding: 0.85rem 1rem; font-size: 0.95rem; letter-spacing: 0; text-transform: none; }
textarea { min-height: 118px; resize: vertical; text-transform: none; }
input:focus, textarea:focus { outline: none; border-color: var(--primary); }
input[readonly] { color: var(--muted-foreground); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.rsvp-form section.is-muted { opacity: 0.68; }
.attendance-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.attendance-options label { position: relative; min-height: 76px; }
.attendance-options input { position: absolute; opacity: 0; pointer-events: none; }
.attendance-options span { display: grid; height: 100%; min-height: 76px; place-items: center; border: 1px solid var(--border); border-radius: 2px; background: var(--card); color: var(--foreground); padding: 1rem; text-align: center; transition: border-color 180ms ease, background 180ms ease, color 180ms ease; }
.attendance-options input:checked + span { border-color: var(--primary); background: var(--primary); color: var(--white); }
.form-status { min-height: 1.5rem; margin: 0; color: var(--primary); font-weight: 500; text-align: center; }
.site-footer { display: grid; justify-items: center; gap: 0.5rem; padding: 3rem 6vw; background: var(--primary); color: var(--primary-foreground); text-align: center; }
.site-footer img { width: 72px; height: auto; opacity: 0.9; }
.footer-names { margin: 0.4rem 0 0; color: var(--secondary); font-family: "Dancing Script", cursive; font-size: 2.2rem; line-height: 1; }
.site-footer p:not(.footer-names) { margin: 0; color: hsl(0 0% 100% / 0.72); font-size: 0.85rem; letter-spacing: 0.16em; text-transform: uppercase; }
.site-footer .small-rule { margin: 0.7rem 0; background: hsl(44 54% 54% / 0.45); }
.site-footer .footer-note { color: hsl(0 0% 100% / 0.52); font-size: 0.76rem; font-style: italic; letter-spacing: 0; text-transform: none; }
@media (max-width: 900px) {
  .site-header { min-height: 72px; }
  .brand { width: 138px; }
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: 72px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 0.8rem 6vw 1.2rem; background: hsl(43 51% 92% / 0.98); color: var(--foreground); border-bottom: 1px solid var(--border); }
  .site-nav.is-open { display: flex; }
  .site-nav a { min-height: 48px; display: flex; align-items: center; }
  .nav-rsvp { border: 0; padding: 0; }
  .quick-details, .story-section, .travel-grid { grid-template-columns: 1fr; }
  .quick-details { flex-direction: column; gap: 1rem; }
  .detail-divider { display: none; }
  .story-media { max-width: 520px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .site-header { padding: 0 1rem; }
  .site-nav { padding-left: 1rem; padding-right: 1rem; }
  .hero-content { padding-top: 6rem; }
  .hero-rule { align-items: center; gap: 0.6rem; }
  .hero-rule span { width: 28px; }
  .hero-rule p { font-size: 0.82rem; }
  .countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.3rem; }
  .countdown-dot { display: none; }
  .countdown div:not(.countdown-dot) { min-width: 0; }
  .section, .rsvp-form { width: auto; padding-left: 1rem; padding-right: 1rem; }
  .form-grid, .attendance-options { grid-template-columns: 1fr; }
  .travel-grid article { min-height: auto; }
}
