:root {
  --cream: #fbf6ee;
  --ink: #2b2118;
  --accent: #b5734a;
  --accent-dark: #8f5634;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--sans); color: var(--ink); background: #1a130d; }

/* ---------- Top bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: calc(1rem + env(safe-area-inset-top, 0px)) clamp(1rem, 4vw, 2.5rem) 1rem;
  background: linear-gradient(to bottom, rgba(20,14,8,.55), rgba(20,14,8,0));
}
.brand {
  font-family: var(--serif); font-size: 1.5rem; font-style: italic;
  color: #fff; text-decoration: none; letter-spacing: .02em;
}
.nav { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; justify-content: flex-end; }
.nav a.link {
  color: #fff; text-decoration: none; font-size: .85rem; letter-spacing: .14em;
  text-transform: uppercase; padding: .6rem .4rem; opacity: .9;
}
.nav a.link:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

.btn {
  display: inline-block; border: 0; cursor: pointer; font: inherit;
  font-size: .85rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  padding: .8rem 1.6rem; border-radius: 999px;
  background: var(--cream); color: var(--ink); text-decoration: none;
  box-shadow: 0 4px 18px rgba(0,0,0,.25); transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); background: #fff; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-dark); }

/* ---------- Fullscreen hero ---------- */
.hero {
  position: fixed; inset: 0; overflow: hidden;
}
.hero img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
  display: block; max-width: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,14,8,.55) 0%, rgba(20,14,8,0) 40%);
  pointer-events: none;
}
.hero-text {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
  padding: 0 1rem calc(2.5rem + env(safe-area-inset-bottom, 0px));
  text-align: center; color: #fff;
}
.hero-text h1 {
  font-family: var(--serif); font-weight: 500; font-style: italic;
  font-size: clamp(2.4rem, 7vw, 5rem); margin: 0; line-height: 1.05;
  text-shadow: 0 2px 20px rgba(0,0,0,.4);
}
.hero-text p {
  margin: .6rem 0 0; font-size: .85rem; letter-spacing: .3em; text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(0,0,0,.5);
}

/* ---------- RSVP modal ---------- */
dialog {
  border: 0; padding: 0; border-radius: 18px; width: min(520px, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem); background: var(--cream); color: var(--ink);
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
dialog::backdrop { background: rgba(20,14,8,.6); backdrop-filter: blur(3px); }
.modal { padding: 2rem clamp(1.25rem, 5vw, 2.25rem); position: relative; }
.modal h2 { font-family: var(--serif); font-weight: 500; font-size: 2.4rem; margin: 0 0 .25rem; }
.modal .sub { margin: 0 0 1.5rem; color: #6b5a4b; }
.close {
  position: absolute; top: .75rem; right: .75rem; width: 2.5rem; height: 2.5rem;
  border: 0; background: none; font-size: 1.6rem; cursor: pointer; color: #6b5a4b; border-radius: 50%;
}
.close:hover { background: rgba(0,0,0,.06); }

form { display: grid; gap: 1rem; }
label { display: grid; gap: .35rem; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #5a4a3c; }
input, select, textarea {
  font: inherit; font-size: 1rem; text-transform: none; letter-spacing: normal; font-weight: 400;
  padding: .7rem .85rem; border: 1px solid #d9cbb8; border-radius: 10px; background: #fff; color: var(--ink);
  width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
textarea { min-height: 5rem; resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 480px) { .row { grid-template-columns: 1fr; } }

fieldset { border: 0; padding: 0; margin: 0; }
legend { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #5a4a3c; margin-bottom: .5rem; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: block; text-align: center; padding: .8rem; border: 1px solid #d9cbb8; border-radius: 10px;
  background: #fff; cursor: pointer; text-transform: none; letter-spacing: normal; font-weight: 500; font-size: .95rem;
}
.choice input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.status { min-height: 1.2em; margin: 0; font-size: .95rem; }
.status.error { color: #a33; }
.thanks { text-align: center; padding: 1rem 0; }
.thanks p { font-size: 1.05rem; }

/* ---------- Honeymoon page ---------- */
.page {
  min-height: 100%; background: var(--cream);
  padding: calc(6rem + env(safe-area-inset-top, 0px)) 1rem 4rem;
}
.page .topbar { background: #2b2118; }
.card {
  max-width: 640px; margin: 0 auto; text-align: center;
}
.card h1 { font-family: var(--serif); font-weight: 500; font-style: italic; font-size: clamp(2.4rem, 7vw, 3.8rem); margin: 0 0 .5rem; }
.card p { font-size: 1.1rem; line-height: 1.65; color: #4e4034; }
.card .photo {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 30%;
  border-radius: 16px; margin: 1.5rem 0 2rem; box-shadow: 0 12px 40px rgba(43,33,24,.18);
}
.stripe-wrap { display: flex; justify-content: center; margin-top: 1.5rem; }
