:root {
  --cream: #f7f3ed;
  --paper: #fffdf9;
  --ink: #2e2a27;
  --muted: #786f68;
  --accent: #9b765d;
  --accent-dark: #71523e;
  --line: rgba(46, 42, 39, 0.14);
  --success: #386641;
  --danger: #9b3434;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Noto Sans Georgian", sans-serif;
  line-height: 1.7;
}

.hero {
  min-height: 92vh;
  position: relative;
  display: grid;
  place-items: center;
  padding: 2rem;
  color: white;
  text-align: center;
  background:
    linear-gradient(rgba(25, 20, 17, .45), rgba(25, 20, 17, .5)),
    url("https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&w=1800&q=85") center/cover;
}

.overlay { position: absolute; inset: 0; }

.nav {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 4vw, 3rem);
  padding: 1.35rem;
  background: linear-gradient(rgba(0,0,0,.35), transparent);
}

.nav a { color: white; text-decoration: none; font-size: .9rem; }

.hero-content { position: relative; z-index: 1; max-width: 850px; }

.hero h1 {
  margin: .25rem 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(3.2rem, 10vw, 7.7rem);
  font-weight: 500;
  line-height: 1;
}

.hero h1 span { font-style: italic; font-size: .65em; }
.eyebrow { text-transform: uppercase; letter-spacing: .24em; font-size: .75rem; font-weight: 600; }
.eyebrow.dark { color: var(--accent-dark); }
.date { font-size: 1.05rem; letter-spacing: .12em; margin-bottom: 2.2rem; }

.primary-btn {
  display: inline-block;
  border: 1px solid white;
  padding: .9rem 1.45rem;
  color: white;
  background: rgba(255,255,255,.08);
  text-decoration: none;
  font: inherit;
  cursor: pointer;
  transition: .2s ease;
}

.primary-btn:hover { background: white; color: var(--ink); }

.section { padding: clamp(4.5rem, 9vw, 8rem) 1.25rem; }
.section-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.narrow { max-width: 720px; }

h2 {
  margin: .35rem 0 1.1rem;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.15rem, 5vw, 3.7rem);
  font-weight: 500;
  line-height: 1.2;
}

.intro { background: var(--paper); }
.intro p:last-child, .section-copy { color: var(--muted); }

.details { background: var(--cream); }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 3rem; }
.detail-card { padding: 2.7rem 1.5rem; background: var(--paper); border: 1px solid var(--line); }
.icon { font-size: 2rem; color: var(--accent); }
.detail-card h3 { font-family: "Playfair Display", serif; font-size: 1.7rem; margin: .5rem 0; }
.detail-card p { margin: .25rem 0; color: var(--muted); }
.detail-card .detail-strong { color: var(--ink); font-weight: 600; }
.detail-card a { display: inline-block; margin-top: 1rem; color: var(--accent-dark); }

.rsvp { color: white; background: var(--accent-dark); }
.rsvp-form { margin-top: 2.4rem; text-align: left; display: grid; gap: 1.3rem; }
.rsvp-form label, legend { font-size: .92rem; }
input[type="text"], textarea {
  width: 100%;
  margin-top: .45rem;
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(255,255,255,.08);
  color: white;
  padding: .9rem 1rem;
  font: inherit;
  border-radius: 0;
}
input::placeholder, textarea::placeholder { color: rgba(255,255,255,.6); }
fieldset { border: 1px solid rgba(255,255,255,.35); padding: 1rem; }
.radio-row { display: flex; align-items: center; gap: .65rem; margin-top: .65rem; }
.radio-row input { accent-color: white; }
.optional { opacity: .7; }
.form-btn { justify-self: start; }
.form-btn:disabled { opacity: .6; cursor: wait; }
.form-status { min-height: 1.5rem; margin: 0; }

.guests { background: var(--paper); }
.guest-summary { display: flex; justify-content: center; gap: 3rem; margin: 2rem 0 2.5rem; }
.guest-summary div { display: grid; }
.guest-summary strong { font-family: "Playfair Display", serif; font-size: 2.8rem; color: var(--accent-dark); }
.guest-summary span { color: var(--muted); font-size: .85rem; }

.guest-list { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--line); text-align: left; }
.guest-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem .4rem;
  border-bottom: 1px solid var(--line);
}
.guest-name { font-weight: 500; }
.guest-status { white-space: nowrap; font-size: .9rem; }
.guest-status.yes { color: var(--success); }
.guest-status.no { color: var(--danger); }
.loading, .empty { text-align: center; color: var(--muted); padding: 2rem; }

footer { padding: 2.5rem 1rem; text-align: center; background: var(--ink); color: white; }

@media (max-width: 700px) {
  .hero { min-height: 82vh; }
  .nav { gap: 1rem; padding-inline: .6rem; }
  .nav a { font-size: .78rem; }
  .cards { grid-template-columns: 1fr; }
  .guest-summary { gap: 2rem; }
  .guest-item { align-items: flex-start; }
}
