:root {
  --bg: #f4efe8;
  --ink: #2e2a27;
  --gold: #b88a45;
  --wine: #7c2f45;
  --pine: #244844;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(184,138,69,.15), transparent 36%),
    radial-gradient(circle at 90% 90%, rgba(124,47,69,.15), transparent 38%),
    var(--bg);
}
.bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image: linear-gradient(rgba(46,42,39,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(46,42,39,.12) 1px, transparent 1px);
  background-size: 36px 36px;
}
.page {
  max-width: 880px;
  margin: 0 auto;
  padding: 26px 16px 48px;
  display: grid;
  gap: 14px;
  position: relative;
}
.music-toggle {
  position: sticky;
  top: 10px;
  justify-self: end;
  z-index: 20;
  border: 1px solid rgba(184,138,69,.45);
  background: rgba(255,255,255,.88);
  color: #4e3b2c;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.music-toggle.is-on {
  background: linear-gradient(135deg, #1f6f67, #2ea184);
  color: #fff;
  border-color: rgba(27,92,85,.6);
}
.card {
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(184,138,69,.35);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(38,26,20,.09);
  backdrop-filter: blur(4px);
}
.hero {
  text-align: center;
  padding-top: 24px;
  padding-bottom: 24px;
}
.hero-photo {
  width: min(100%, 460px);
  margin: 0 auto 14px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(184,138,69,.45);
  box-shadow: 0 14px 30px rgba(24,18,14,.2);
}
.hero-photo img {
  width: 100%;
  height: clamp(180px, 34vw, 270px);
  object-fit: cover;
  display: block;
}
.mini {
  margin: 0;
  letter-spacing: .18em;
  font-size: 11px;
  color: var(--wine);
}
h1, h2, h3, h4 {
  font-family: "Cinzel", serif;
  margin: 0;
}
h1 { margin-top: 8px; font-size: clamp(30px, 5.6vw, 52px); color: var(--wine); }
h2 { margin-top: 8px; font-size: clamp(30px, 5vw, 44px); color: var(--pine); }
h3 { margin-top: 6px; font-size: clamp(24px, 4.4vw, 36px); color: #4e3a2f; }
.lead {
  margin: 10px auto 8px;
  max-width: 70ch;
  color: #5f5248;
}
.quick {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.quick span {
  background: #fff;
  border: 1px solid rgba(184,138,69,.45);
  color: #4f3a2b;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 600;
}
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.photo-frame {
  margin-bottom: 10px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(184,138,69,.4);
  box-shadow: 0 10px 22px rgba(36,24,18,.14);
}
.photo-frame img {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
}
h4 {
  margin-bottom: 8px;
  font-size: 18px;
  color: var(--wine);
}
p { margin: 7px 0; }
a {
  color: var(--pine);
  font-weight: 600;
}
.cols {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.timeline {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.timeline li {
  border-left: 3px solid rgba(124,47,69,.4);
  padding: 8px 10px;
  background: rgba(255,255,255,.6);
  border-radius: 8px;
}
.timeline span {
  font-weight: 700;
  color: var(--wine);
  margin-right: 8px;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.gallery figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(184,138,69,.35);
  box-shadow: 0 8px 18px rgba(36,24,18,.12);
}
.gallery img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}
.rsvp .actions {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.rsvp .actions a {
  text-align: center;
  text-decoration: none;
  border-radius: 10px;
  padding: 10px;
}
#rsvpLink {
  background: linear-gradient(135deg, var(--wine), #a84d66);
  color: #fff;
}
#whatsAppLink {
  background: linear-gradient(135deg, #1f6f67, #2ea184);
  color: #fff;
}
@media (max-width: 760px) {
  .split,
  .cols,
  .rsvp .actions,
  .gallery { grid-template-columns: 1fr; }
  .gallery img { height: 200px; }
}
