:root {
  --ink: #2b2420;
  --paper: #fdfaf5;
  --rose: #b76e79;
  --rose-dark: #8f4a55;
  --gold: #c8a45c;
  --line: #e7ddce;
  --muted: #766a5c;
  --danger: #b3261e;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(43, 36, 32, 0.08);
  --serif: "Georgia", "Times New Roman", serif;
  --sans: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
}

.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 620px; margin: 0 auto; padding: 0 20px; }

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
header.site .brand {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--rose-dark);
  text-decoration: none;
  letter-spacing: 0.02em;
}
header.site nav a {
  color: var(--ink);
  text-decoration: none;
  margin-left: 18px;
  font-size: 0.95rem;
}
header.site nav a.btn { margin-left: 18px; }

.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--rose);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--rose-dark); }
.btn.secondary { background: transparent; color: var(--rose-dark); border: 1px solid var(--rose); }
.btn.secondary:hover { background: #fbeff0; }
.btn.gold { background: var(--gold); }
.btn.gold:hover { background: #ad893f; }
.btn:disabled { background: #cfc7ba; cursor: not-allowed; }
.btn.small { padding: 7px 14px; font-size: 0.85rem; }
.btn.block { display: block; width: 100%; text-align: center; }

.hero {
  text-align: center;
  padding: 70px 20px 50px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: 2.6rem;
  margin: 0 0 14px;
  color: var(--rose-dark);
}
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; margin: 0 auto 30px; }
.hero .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.section { padding: 50px 20px; }
.section h2 {
  font-family: var(--serif);
  text-align: center;
  color: var(--rose-dark);
  font-size: 1.9rem;
  margin-bottom: 36px;
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 760px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.card h3 { font-family: var(--serif); margin-top: 0; color: var(--rose-dark); }
.card p { color: var(--muted); margin-bottom: 0; }

.price-card { text-align: center; max-width: 380px; margin: 0 auto; }
.price-card .price { font-family: var(--serif); font-size: 2.6rem; color: var(--gold); margin: 10px 0; }
.price-card ul { list-style: none; padding: 0; text-align: left; margin: 20px 0; }
.price-card ul li { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.price-card ul li:before { content: "✓ "; color: var(--rose); font-weight: 700; }

form .field { margin-bottom: 16px; }
form label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.92rem; }
form .hint { color: var(--muted); font-size: 0.82rem; margin-top: 4px; }
form input[type=text], form input[type=email], form input[type=password],
form input[type=date], form input[type=time], form input[type=url], form input[type=tel],
form textarea, form select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: var(--sans);
  background: #fff;
  color: var(--ink);
}
form input[type=file] { width: 100%; }
form input:focus, form textarea:focus, form select:focus { outline: 2px solid var(--rose); border-color: var(--rose); }
form .checkbox-field { display: flex; align-items: center; gap: 8px; }
form .checkbox-field label { margin: 0; font-weight: 600; }
form .errorlist { color: var(--danger); font-size: 0.85rem; list-style: none; padding: 0; margin: 4px 0 0; }

fieldset.formset-block {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}
fieldset.formset-block legend { padding: 0 8px; color: var(--rose-dark); font-weight: 700; }

.auth-box, .dashboard-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  margin: 30px 0;
}

.form-section {
  margin: 34px 0 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.form-section h3 { font-family: var(--serif); color: var(--rose-dark); margin-bottom: 4px; }
.form-section .sub { color: var(--muted); font-size: 0.88rem; margin-bottom: 14px; }

.status-banner {
  padding: 12px 18px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 0.92rem;
}
.status-banner.paid { background: #e7f6ec; color: #1e6b34; }
.status-banner.unpaid { background: #fdf1e3; color: #8a5a12; }
.status-banner.error { background: #fdeceb; color: var(--danger); }
.status-banner.success { background: #e7f6ec; color: #1e6b34; }

.messages { list-style: none; padding: 0; }
.messages li { padding: 10px 16px; border-radius: 8px; margin-bottom: 10px; background: #fdf1e3; color: #8a5a12; }

.checkout-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; }

footer.site {
  text-align: center;
  padding: 30px 20px;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
  margin-top: 40px;
}

/* Guest-facing invitation */
.invite-hero {
  text-align: center;
  padding: 60px 20px 40px;
  background: linear-gradient(180deg, #fff 0%, var(--paper) 100%);
}
.invite-hero img.couple-photo {
  width: 220px; height: 220px; border-radius: 50%; object-fit: cover;
  border: 6px solid #fff; box-shadow: var(--shadow); margin-bottom: 22px;
}
.invite-hero .names { font-family: var(--serif); font-size: 2.4rem; color: var(--rose-dark); }
.invite-hero .amp { color: var(--gold); margin: 0 10px; }
.invite-hero .intro { max-width: 560px; margin: 16px auto 0; color: var(--muted); font-size: 1.05rem; }
.invite-hero .datetime { margin-top: 20px; font-family: var(--serif); font-size: 1.3rem; }
.preview-banner {
  background: var(--gold); color: #fff; text-align: center; padding: 8px; font-size: 0.85rem; font-weight: 700;
}

.countdown { display: flex; justify-content: center; gap: 18px; margin: 26px 0; flex-wrap: wrap; }
.countdown .unit { text-align: center; }
.countdown .num { font-family: var(--serif); font-size: 2rem; color: var(--rose-dark); display: block; }
.countdown .label { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }

.venue-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 700px) { .venue-grid { grid-template-columns: 1fr; } }
.venue-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: center; }
.venue-card h4 { font-family: var(--serif); color: var(--rose-dark); margin-top: 0; }

.party-grid { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.party-member { text-align: center; width: 120px; }
.party-member img { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow); }
.party-member .title { font-size: 0.78rem; color: var(--muted); }
.party-member .name { font-weight: 600; font-size: 0.88rem; }

.rsvp-choice { display: flex; gap: 16px; margin-bottom: 14px; }
.rsvp-choice label { display: flex; align-items: center; gap: 6px; font-weight: 500; }

.wish-wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 700px) { .wish-wall { grid-template-columns: repeat(2, 1fr); } }
.wish-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.wish-card img { width: 100%; height: 140px; object-fit: cover; display: block; }
.wish-card .msg { padding: 10px; font-size: 0.85rem; }
.wish-card .msg .who { font-weight: 700; color: var(--rose-dark); }

.gift-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 700px) { .gift-grid { grid-template-columns: 1fr; } }
.gift-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.gift-card .iban { font-family: monospace; font-size: 1.05rem; letter-spacing: 0.03em; }

/* Slideshow */
body.slideshow-body { background: #111; color: #fff; height: 100vh; overflow: hidden; }
.slide-stage { position: relative; width: 100vw; height: 100vh; }
.slide-stage .slide {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  flex-direction: column; opacity: 0; transition: opacity 1.2s ease; background: #111;
}
.slide-stage .slide.active { opacity: 1; }
.slide-stage .slide img { max-width: 90vw; max-height: 78vh; object-fit: contain; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.slide-stage .slide .caption { margin-top: 18px; font-family: var(--serif); font-size: 1.4rem; text-align: center; max-width: 80vw; }
.slide-stage .slide .who { color: var(--gold); font-weight: 700; }
.slide-empty { display: flex; align-items: center; justify-content: center; height: 100vh; font-family: var(--serif); font-size: 1.6rem; color: #999; text-align: center; padding: 20px; }
