:root {
  --lake: #2a5d83;
  --sky: #5a8db5;
  --sky-soft: #9bb9d1;
  --sky-wash: #eaf2f8;
  --ink: #2d3e50;
  --body: #3a3a3a;
  --sunset: #c98a4b;
  --label: #5e7384;
  --bg: #faf7f2;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); }
body {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  background-image:
    radial-gradient(circle at 0% 0%, rgba(155, 185, 209, 0.12), transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(201, 138, 75, 0.08), transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* Top nav */
nav.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(155, 185, 209, 0.3);
  padding: 14px 20px;
}
nav.top .nav-inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
nav.top .brand {
  font-family: "Lora", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 20px;
  color: var(--lake);
  text-decoration: none;
  letter-spacing: 0.2px;
}
nav.top .brand .amp { color: var(--sunset); }
nav.top .links {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}
nav.top .links a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--label);
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 999px;
  transition: background .15s, color .15s;
}
nav.top .links a:hover { color: var(--lake); background: var(--sky-wash); }
nav.top .links a.active { color: var(--lake); background: var(--sky-wash); font-weight: 600; }
nav.top .links a.rsvp-cta {
  background: var(--lake);
  color: #fff;
  font-weight: 600;
  padding: 7px 16px;
}
nav.top .links a.rsvp-cta:hover { background: #1d4a6e; color: #fff; }

/* Page container */
.page { max-width: 820px; margin: 0 auto; padding: 40px 22px 80px; }
.page-narrow { max-width: 620px; margin: 0 auto; padding: 28px 18px 70px; }

/* Hero */
.hero-img {
  display: flex;
  justify-content: center;
  margin: 0 0 18px;
}
.hero-img img {
  max-width: 320px;
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(45, 62, 80, 0.14);
}
.eyebrow {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--sky);
  text-transform: uppercase;
  margin: 16px 0 6px;
}
h1.title {
  font-family: "Lora", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 52px;
  color: var(--lake);
  text-align: center;
  margin: 0 0 4px;
  line-height: 1.05;
}
h2.section {
  font-family: "Lora", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 30px;
  color: var(--lake);
  margin: 36px 0 6px;
  text-align: center;
}
.sub {
  font-family: "Lora", Georgia, serif;
  font-style: italic;
  font-size: 15px;
  color: var(--body);
  text-align: center;
  margin: 0 0 22px;
  line-height: 1.5;
}
.wave-svg { display: block; margin: 14px auto 8px; width: 80px; height: 12px; }

/* Cards */
.card {
  background: #fff;
  border: 1px solid var(--sky-soft);
  border-radius: 14px;
  padding: 22px 24px;
  margin: 0 0 16px;
  box-shadow: 0 2px 12px rgba(45, 62, 80, 0.04);
}
.card h3 {
  font-family: "Lora", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 22px;
  color: var(--lake);
  margin: 0 0 8px;
}
.card p, .card li { color: var(--body); font-size: 14.5px; line-height: 1.6; }
.card .label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--lake);
  text-transform: uppercase;
  margin-top: 12px;
  margin-bottom: 2px;
}
.card a { color: var(--lake); }
.card a:hover { color: var(--sunset); }
.card.tinted { background: var(--sky-wash); }

/* Section row with image left, text right */
.row { display: grid; grid-template-columns: 1fr; gap: 22px; align-items: center; margin: 22px 0; }
.row.has-img { grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .row.has-img { grid-template-columns: 320px 1fr; }
}
.row img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(45, 62, 80, 0.10);
}

/* Schedule */
.timeline {
  background: #fff;
  border: 1px solid var(--sky-soft);
  border-radius: 14px;
  overflow: hidden;
}
.tl-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--sky-wash);
  align-items: flex-start;
}
.tl-row:last-child { border-bottom: 0; }
.tl-time {
  font-weight: 700;
  color: var(--lake);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
}
.tl-event .ev-title { font-weight: 600; font-size: 15px; color: var(--ink); }
.tl-event .ev-loc { font-size: 13px; color: var(--label); margin-top: 2px; }

/* RSVP button anywhere */
.btn-primary {
  display: inline-block;
  background: var(--lake);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 999px;
  transition: background .15s, transform .1s;
}
.btn-primary:hover { background: #1d4a6e; }
.btn-primary:active { transform: translateY(1px); }
.center { text-align: center; }

/* Lists */
ul.bullets { padding-left: 18px; margin: 6px 0; }
ul.bullets li { margin-bottom: 4px; }

/* Footer */
.footer {
  text-align: center;
  font-family: "Lora", Georgia, serif;
  font-style: italic;
  font-size: 13px;
  color: var(--label);
  padding: 36px 16px 28px;
  border-top: 1px solid rgba(155, 185, 209, 0.3);
  margin-top: 40px;
}

/* Form */
form, .thanks {
  background: #fff;
  border: 1px solid var(--sky-soft);
  border-radius: 14px;
  padding: 22px 22px 26px;
  box-shadow: 0 2px 12px rgba(45, 62, 80, 0.05);
}
.field { margin-bottom: 18px; }
label.field-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--lake);
  text-transform: uppercase;
  margin-bottom: 8px;
}
input[type=text], input[type=number], input[type=email], textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--sky-wash);
  border: 1.5px solid transparent;
  border-radius: 8px;
  padding: 11px 14px;
  transition: border-color .15s, background .15s;
  -webkit-appearance: none;
}
input:focus, textarea:focus { outline: none; background: #fff; border-color: var(--sky); }
.radio-group { display: flex; flex-direction: column; gap: 8px; }
.radio-option {
  display: flex; align-items: center;
  padding: 12px 14px;
  background: var(--sky-wash);
  border: 1.5px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  font-size: 15px;
}
.radio-option:hover { background: #dfeaf3; }
.radio-option input[type=radio] {
  margin-right: 12px; accent-color: var(--lake);
  transform: scale(1.15); flex-shrink: 0;
}
.radio-option.selected { background: #fff; border-color: var(--lake); }
.radio-option em {
  display: block; font-style: normal;
  color: var(--label); font-size: 12.5px; margin-top: 2px;
}
.party-group { display: none; }
.party-group.visible { display: block; animation: fadeIn .25s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.party-group input[type=number] { max-width: 110px; }
button[type=submit] {
  width: 100%; font: inherit; font-weight: 600; font-size: 15px;
  letter-spacing: 0.5px; padding: 14px; margin-top: 8px;
  background: var(--lake); color: #fff; border: 0; border-radius: 8px;
  cursor: pointer; transition: background .15s, transform .1s;
}
button[type=submit]:hover { background: #1d4a6e; }
button[type=submit]:active { transform: translateY(1px); }
.rsvp-by {
  text-align: center;
  font-family: "Lora", Georgia, serif;
  font-style: italic;
  font-size: 14px;
  color: var(--sunset);
  font-weight: 600;
  margin-top: 22px;
}
.thanks { text-align: center; padding: 40px 22px; display: none; }
.thanks.show { display: block; }
.thanks h2 {
  font-family: "Lora", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 34px;
  color: var(--lake);
  margin: 0 0 14px;
}
.hp { display: none; }

@media (min-width: 600px) {
  .page { padding-top: 56px; }
  h1.title { font-size: 64px; }
  .hero-img img { max-width: 380px; }
}


/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin: 22px 0;
}
.gallery-grid .ph {
  aspect-ratio: 4 / 5;
  background: var(--sky-wash);
  border: 1px dashed var(--sky-soft);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--label);
  font-style: italic;
  font-family: "Lora", Georgia, serif;
  font-size: 14px;
  text-align: center;
  padding: 14px;
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(45,62,80,.10);
}

/* FAQ accordion */
.faq-item {
  background: #fff;
  border: 1px solid var(--sky-soft);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: box-shadow .15s;
}
.faq-item:hover { box-shadow: 0 2px 10px rgba(45,62,80,.06); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  color: var(--lake);
  padding: 16px 44px 16px 18px;
  cursor: pointer;
  position: relative;
}
.faq-q::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--sky);
  transition: transform .2s;
}
.faq-item.open .faq-q::after { content: "−"; }
.faq-a {
  display: none;
  padding: 0 18px 16px;
  color: var(--body);
  font-size: 14.5px;
  line-height: 1.6;
}
.faq-item.open .faq-a { display: block; }

/* Wedding party */
.party-section {
  background: #fff;
  border: 1px solid var(--sky-soft);
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 18px;
}
.party-section h3 {
  font-family: "Lora", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 22px;
  color: var(--lake);
  margin: 0 0 6px;
  text-align: center;
}
.party-section .side-tag {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--sky);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.party-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.party-member {
  text-align: center;
  padding: 14px 12px;
  background: var(--sky-wash);
  border-radius: 10px;
}
.party-member .role {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--sunset);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.party-member .name {
  font-family: "Lora", Georgia, serif;
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
}
.party-member .note {
  font-style: italic;
  font-size: 12.5px;
  color: var(--label);
  margin-top: 2px;
}

/* Story page */
.story-section {
  background: #fff;
  border: 1px solid var(--sky-soft);
  border-radius: 14px;
  padding: 26px 28px;
  margin-bottom: 18px;
}
.story-section h3 {
  font-family: "Lora", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 24px;
  color: var(--lake);
  margin: 0 0 12px;
  text-align: center;
}
.story-section p {
  font-family: "Lora", Georgia, serif;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 12px;
}
.story-section .placeholder {
  font-style: italic;
  color: var(--label);
}

.edit-hint {
  background: rgba(201, 138, 75, 0.08);
  border-left: 3px solid var(--sunset);
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--body);
  margin: 14px 0;
}
.edit-hint b { color: var(--sunset); }
