:root {
  --bg: #fdf7f4;
  --surface: #ffffff;
  --accent: #d1a894;
  --accent-dark: #a97154;
  --text: #2f2b29;
  --muted: #746d68;
  --border: #ead7cc;
  --display-font: "Playfair Display", Georgia, serif;
  --body-font: "Raleway", Arial, sans-serif;
  --font-scale: 1;
  --max-width: 1040px;
  --radius: 18px;
  --shadow: 0 18px 55px rgba(67, 43, 31, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body-font);
  font-size: calc(16px * var(--font-scale));
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; width: 100%; }
button, input, select, textarea { font: inherit; }

.language-switcher {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 10;
  display: flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(255,255,255,.7);
  background: rgba(255,255,255,.82);
  box-shadow: 0 8px 30px rgba(0,0,0,.08);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}
.language-switcher button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
}
.language-switcher button.active {
  background: var(--accent);
  color: white;
}

.hero {
  min-height: 92vh;
  display: grid;
  place-items: center;
  padding: 72px 20px;
  background:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,.96), transparent 30%),
    radial-gradient(circle at 85% 80%, rgba(218,181,160,.22), transparent 34%),
    linear-gradient(145deg, #fffaf7, #f7e9e1);
  position: relative;
  overflow: hidden;
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(185,132,102,.25);
  border-radius: 50%;
}
.hero::before { width: 280px; height: 280px; top: -100px; left: -80px; }
.hero::after { width: 380px; height: 380px; right: -150px; bottom: -170px; }
.hero-inner {
  width: min(100%, var(--max-width));
  display: grid;
  grid-template-columns: 1.2fr .9fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.couple-names {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(3rem, 8vw, 5.8rem);
  font-weight: 500;
  line-height: .98;
  letter-spacing: .02em;
}
.couple-names span { display: block; }
.couple-names .ampersand {
  margin: .14em 0;
  color: var(--accent-dark);
  font-size: .48em;
  font-style: italic;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 14px;
  color: var(--muted);
}
.hero-message { max-width: 610px; font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.deadline { margin-top: 12px; color: var(--muted); font-size: .86rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--accent); color: white; box-shadow: 0 12px 30px rgba(169,113,84,.25); }
.button-primary:hover { background: var(--accent-dark); }
.button-secondary { color: var(--accent-dark); background: rgba(255,255,255,.58); }

.summary-card, .card {
  background: rgba(255,255,255,.93);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.summary-card { padding: 28px; backdrop-filter: blur(10px); }
.summary-card h2, .section h2, .section h3, .section h4 { font-family: var(--display-font); }
.summary-card h2 { margin: 0 0 16px; font-size: 1.5rem; }
.summary-card dl { margin: 0; }
.summary-card dl > div {
  display: grid;
  grid-template-columns: minmax(92px, .8fr) 1.4fr;
  gap: 18px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}
.summary-card dt { color: var(--muted); }
.summary-card dd { margin: 0; text-align: right; }

main { padding: 64px 20px 82px; }
.section { width: min(100%, var(--max-width)); margin: 0 auto 72px; scroll-margin-top: 22px; }
.section-heading-wrap { max-width: 700px; margin: 0 auto 28px; text-align: center; }
.section-heading-wrap h2 { margin: 0 0 8px; font-size: clamp(2rem, 5vw, 3rem); }
.section-heading-wrap p:last-child { margin: 0; color: var(--muted); }
.card { padding: 28px; }
.two-column, .location-grid, .rsvp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.section h3 { margin: 0 0 14px; font-size: 1.35rem; }
.section h4 { margin: 22px 0 8px; font-size: 1.08rem; }
.muted { color: var(--muted); }

.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 1px solid var(--border); }
.timeline li { position: relative; padding: 0 0 18px 12px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -23px;
  top: 8px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: white;
}
.timeline time { font-weight: 600; }
.timeline strong { display: block; }
.timeline span { display: block; color: var(--muted); font-size: .88rem; }

.location-grid { align-items: stretch; }
#venue-address { white-space: pre-line; color: var(--muted); }
.map-wrap { min-height: 340px; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }
.text-link { display: inline-block; margin-top: 14px; color: var(--accent-dark); font-weight: 600; }


.rsvp-grid { grid-template-columns: 1.15fr .85fr; }
form { display: grid; gap: 14px; }
.field label { display: block; margin-bottom: 5px; color: var(--muted); font-size: .88rem; font-weight: 600; }
input, select, textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #ddc9bb;
  border-radius: 10px;
  background: white;
  color: var(--text);
}
textarea { min-height: 95px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(209,168,148,.32); border-color: var(--accent); }
.form-status { min-height: 1.5em; margin: 0; font-weight: 600; }
.form-status.success { color: #2c7452; }
.form-status.error { color: #9a3d3d; }
.contact-panel { padding: 8px 4px; }
.contact-panel a { color: var(--accent-dark); }
.demo-note { margin-top: 18px; padding: 12px 14px; background: #fff7df; border-radius: 10px; color: #685727; font-size: .85rem; }

footer { padding: 30px 20px 44px; text-align: center; color: var(--muted); }
footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; margin-bottom: 8px; }
footer a { text-decoration: none; }

@media (max-width: 820px) {
  .hero { min-height: auto; padding-top: 92px; }
  .hero-inner, .two-column, .location-grid, .rsvp-grid { grid-template-columns: 1fr; }
  .summary-card { order: 2; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .couple-names { font-size: 3.3rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .card, .summary-card { padding: 21px; }
  .gallery { grid-template-columns: 1fr; }
  .summary-card dl > div { grid-template-columns: 1fr; gap: 2px; }
  .summary-card dd { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
