/* ---------- Theme ---------- */
:root {
  --paper: #fdf9fb;
  --blush: #f8e8ee;
  --blush-deep: #ecbfce;
  --rose: #b86f89;
  --rose-dark: #9b5a72;
  --lavender: #efeaf7;
  --lavender-deep: #a993c9;
  --plum: #4a3856;
  --ink: #3d3346;
  --muted: #776a80;
  --line: #ebdfe8;
  --white: #ffffff;
  --ok: #4f8a6b;
  --danger: #b5485d;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(74, 56, 86, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--rose-dark); text-underline-offset: 3px; }
a:hover { color: var(--plum); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--plum);
  line-height: 1.15;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); font-weight: 400; }
h2 { font-size: clamp(2rem, 4.5vw, 2.8rem); }
h3 { font-size: 1.6rem; }

p { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: .9rem;
}

.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 40px); margin-inline: auto; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(253, 249, 251, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}
.monogram {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--plum);
  text-decoration: none;
  letter-spacing: .04em;
  white-space: nowrap;
}
.monogram span { color: var(--rose); font-style: italic; padding: 0 .15em; }

.nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav a {
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 999px;
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--plum); background: var(--lavender); }
.nav a[aria-current="page"] { color: var(--plum); background: var(--blush); }
.nav a.nav-rsvp { color: var(--white); background: var(--rose); }
.nav a.nav-rsvp:hover, .nav a.nav-rsvp[aria-current="page"] { background: var(--rose-dark); color: var(--white); }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font: inherit;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--plum);
  cursor: pointer;
}

@media (max-width: 920px) {
  .menu-toggle { display: inline-block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 10px 20px 20px;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; font-size: .85rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(80px, 14vw, 150px) 20px clamp(70px, 12vw, 130px);
  background:
    radial-gradient(ellipse at 15% 20%, rgba(236, 191, 206, .45), transparent 55%),
    radial-gradient(ellipse at 85% 80%, rgba(169, 147, 201, .35), transparent 55%),
    var(--paper);
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  width: clamp(150px, 26vw, 300px);
  aspect-ratio: 1;
  background: url("../images/floral-corner.svg") no-repeat center / contain;
  opacity: .9;
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero::before { top: 0; left: 0; }
.hero::after { bottom: 0; right: 0; transform: rotate(180deg); }

.hero .names { margin-bottom: .2em; }
.hero .names .amp { font-style: italic; color: var(--rose); font-size: .7em; padding: 0 .15em; }
.hero .date {
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--plum);
  margin: 1.2em 0 .3em;
}
.hero .place { color: var(--muted); letter-spacing: .08em; }
.hero .actions { margin-top: 2.2rem; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.countdown {
  display: flex;
  justify-content: center;
  gap: clamp(10px, 3vw, 28px);
  margin-top: 2.6rem;
}
.countdown div {
  min-width: 74px;
  padding: 12px 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .6);
}
.countdown strong {
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  color: var(--plum);
  line-height: 1.1;
}
.countdown span { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* ---------- Page header (inner pages) ---------- */
.page-head {
  text-align: center;
  padding: clamp(56px, 9vw, 96px) 20px 24px;
  background: linear-gradient(180deg, var(--blush) 0%, var(--paper) 100%);
}
.page-head p { color: var(--muted); max-width: 560px; margin: 0 auto; }

.divider {
  height: 40px;
  width: 240px;
  max-width: 80%;
  margin: 22px auto;
  background: url("../images/floral-divider.svg") no-repeat center / contain;
}

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 8vw, 84px) 0; }
.section.alt { background: var(--lavender); }
.section-title { text-align: center; margin-bottom: 2.4rem; }

.btn {
  display: inline-block;
  font: inherit;
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: 999px;
  border: 1px solid var(--rose);
  background: var(--rose);
  color: var(--white);
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--rose-dark); border-color: var(--rose-dark); color: var(--white); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--rose-dark); }
.btn.ghost:hover { background: var(--blush); color: var(--plum); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn.small { padding: 9px 18px; font-size: .72rem; }

.grid { display: grid; gap: 24px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .3em; }
.card .meta { color: var(--muted); font-size: .92rem; }
.card.center { text-align: center; }

.note {
  font-size: .9rem;
  color: var(--muted);
  font-style: italic;
}

/* ---------- Story ---------- */
.story-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 60px);
  align-items: center;
  margin-bottom: clamp(48px, 8vw, 80px);
}
.story-block:nth-child(even) .story-photo { order: 2; }
.story-photo {
  aspect-ratio: 4 / 5;
  border-radius: 200px 200px var(--radius) var(--radius);
  overflow: hidden;
  background: linear-gradient(160deg, var(--blush), var(--lavender));
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: .85rem;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.story-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 720px) {
  .story-block { grid-template-columns: 1fr; }
  .story-block:nth-child(even) .story-photo { order: 0; }
  .story-photo { max-width: 360px; width: 100%; margin: 0 auto; }
}

/* ---------- Schedule ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 138px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--blush-deep);
}
.timeline li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 36px;
  padding: 0 0 40px;
  position: relative;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 133px;
  top: 10px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--rose);
}
.timeline time {
  text-align: right;
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--rose-dark);
  padding-right: 4px;
}
.timeline h3 { margin-bottom: .15em; }
.timeline .meta { color: var(--muted); font-size: .95rem; margin-bottom: .4em; }
@media (max-width: 600px) {
  .timeline::before { left: 6px; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; padding-left: 32px; }
  .timeline li::before { left: 1px; }
  .timeline time { text-align: left; }
}

/* ---------- FAQ ---------- */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 6px 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--plum);
  padding: 16px 40px 16px 0;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-size: 1.4rem;
  color: var(--rose);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--ink); padding-right: 40px; }

/* ---------- Photos ---------- */
.gallery {
  columns: 3 260px;
  column-gap: 16px;
}
.gallery figure {
  margin: 0 0 16px;
  break-inside: avoid;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
}
.gallery img { width: 100%; height: auto; transition: transform .4s; }
.gallery figure:hover img { transform: scale(1.03); }
.gallery .placeholder {
  cursor: default;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  background: linear-gradient(150deg, var(--blush), var(--lavender));
}
.gallery .placeholder.tall { aspect-ratio: 3 / 4; }
.gallery .placeholder.wide { aspect-ratio: 4 / 3; }
.gallery .placeholder.square { aspect-ratio: 1; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(45, 34, 54, .88);
  display: none;
  place-items: center;
  padding: 24px;
  cursor: zoom-out;
}
.lightbox.open { display: grid; }
.lightbox img { max-height: 90vh; max-width: 100%; border-radius: 8px; }

/* ---------- Forms ---------- */
.form-card { max-width: 620px; margin: 0 auto; }
.field { margin-bottom: 22px; }
.field > label, .field > .label {
  display: block;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--plum);
  margin-bottom: 8px;
}
.field .hint { font-size: .88rem; color: var(--muted); margin-top: 6px; }
input[type="text"], input[type="number"], input[type="search"], select, textarea {
  width: 100%;
  font: inherit;
  font-weight: 300;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #dccfdb;
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--lavender-deep);
  box-shadow: 0 0 0 3px rgba(169, 147, 201, .25);
}
textarea { min-height: 96px; resize: vertical; }

.choice-group { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .choice-group { grid-template-columns: 1fr; } }
.choice {
  position: relative;
  display: block;
  border: 1px solid #dccfdb;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice strong { display: block; font-family: var(--serif); font-size: 1.3rem; font-weight: 500; color: var(--plum); }
.choice span { font-size: .85rem; color: var(--muted); }
.choice:has(input:checked) { border-color: var(--rose); background: var(--blush); }
.choice:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(169, 147, 201, .35); }

.alert {
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 18px;
  font-size: .95rem;
}
.alert.error { background: #fbe9ec; color: var(--danger); border: 1px solid #f1c7cf; }
.alert.info { background: var(--lavender); color: var(--plum); border: 1px solid #ddd2f0; }
.alert.success { background: #e9f4ee; color: var(--ok); border: 1px solid #cbe4d6; }

.party-list { list-style: none; padding: 0; margin: 0 0 1.2em; }
.party-list li { padding: 4px 0; }
.party-list li::before { content: "❀"; color: var(--blush-deep); margin-right: 10px; }

.match-list { display: grid; gap: 12px; }
.match-list button {
  font: inherit;
  text-align: left;
  background: var(--white);
  border: 1px solid #dccfdb;
  border-radius: 12px;
  padding: 16px 18px;
  cursor: pointer;
  color: var(--ink);
}
.match-list button:hover { border-color: var(--rose); background: var(--blush); }
.match-list strong { display: block; font-family: var(--serif); font-size: 1.3rem; font-weight: 500; color: var(--plum); }

.hidden { display: none !important; }

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 48px 20px 56px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
}
.site-footer .monogram { font-size: 2rem; display: inline-block; margin-bottom: 4px; }
