:root {
  --bg: #F6EFA4;
  --ink: #23252F;
  --sea: #7C5C86;
  --sage: #8C8058;
  --line: #E4DA84;
  --paper: #FBF7DE;
  --cream: #FFFDF2;
}

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

body { visibility: hidden; }
body.authed { visibility: visible; }

/* ---------- Password gate ---------- */
.pw-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  visibility: visible;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  text-align: center;
}
.pw-gate h2 {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 28px;
  margin: 0;
  color: var(--sea);
}
.pw-gate p {
  color: var(--sage);
  font-size: 14px;
  margin: 0;
  max-width: 40ch;
}
.pw-gate input[type="password"] {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 2px;
  width: 220px;
  text-align: center;
}
.pw-gate button {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  background: var(--sea);
  color: var(--cream);
  border: none;
  padding: 12px 26px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.pw-gate button:hover { background: #234455; }
.pw-gate .pw-error {
  color: #B3433D;
  font-size: 13px;
  min-height: 16px;
}

html, body {
  min-height: 100%;
}

body {
  position: relative;
  margin: 0;
  padding: 64px;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.border-band {
  position: absolute;
  z-index: 500;
  pointer-events: none;
}
.border-top, .border-bottom {
  left: 0;
  right: 0;
  height: 64px;
  background-image: url('images/border-h.svg');
  background-repeat: repeat-x;
  background-position: center;
}
.border-top { top: 0; }
.border-bottom { bottom: 0; transform: scaleY(-1); }
.border-left, .border-right {
  top: 0;
  bottom: 0;
  width: 64px;
  background-image: url('images/border-v.svg');
  background-repeat: repeat-y;
  background-position: center;
}
.border-left { left: 0; }
.border-right { right: 0; transform: scaleX(-1); }

@media (max-width: 700px) {
  body { padding: 36px 20px; }
  .border-top, .border-bottom { height: 36px; background-size: 120px 36px; }
  .border-left, .border-right { width: 20px; background-size: 20px 64px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

a { color: var(--sea); }
img { max-width: 100%; display: block; }

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 28px;
}

.wrap-wide {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Nav ---------- */
.site-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 0 24px 0;
  position: relative;
}
.nav-home {
  font-family: 'Mrs Saint Delafield', cursive;
  font-style: normal;
  font-size: 24px;
  color: var(--sea);
  text-decoration: none;
  white-space: nowrap;
}

.nav-burger {
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-links {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 6px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  min-width: 200px;
  padding: 10px 0;
  z-index: 600;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.nav-links.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-links a {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  padding: 10px 20px;
  border-left: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.nav-links a:hover { color: var(--sea); background: var(--bg); }
.nav-links a.active {
  color: var(--sea);
  border-left-color: var(--sea);
}

/* Nav variant sitting on top of the hero photo */
.site-nav--on-photo { position: absolute; top: 0; left: 0; right: 0; z-index: 2; padding: 26px 28px; }
.site-nav--on-photo .nav-home { color: var(--cream); }
.site-nav--on-photo .nav-burger span { background: var(--cream); }

/* ---------- Hero with cover photo ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 28px;
  background-color: var(--ink);
  background-image: linear-gradient(180deg, rgba(20,24,27,0.42) 0%, rgba(20,24,27,0.58) 100%), url('images/cover-v3.jpg');
  background-size: cover;
  background-position: center;
  color: var(--cream);
  opacity: 0;
  animation: rise 1.1s ease forwards 0.15s;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,253,242,0.8);
  margin-bottom: 22px;
}

.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(48px, 10vw, 96px);
  line-height: 1.05;
  margin: 0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cream);
}

.hero h1 em {
  font-family: 'Mrs Saint Delafield', cursive;
  font-style: normal;
  font-weight: 400;
  font-size: 0.55em;
  color: #A98BB0;
  padding: 0 0.08em;
}

.hero-meta {
  margin-top: 30px;
  font-size: 16px;
  color: var(--cream);
}

.hero-meta .divider-dot {
  color: #D9C489;
  margin: 0 10px;
}

.hero-links {
  margin-top: 46px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-links a {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--cream);
  text-decoration: none;
  border: 1px solid rgba(255,251,240,0.5);
  padding: 10px 18px;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.hero-links a:hover { background: rgba(255,251,240,0.12); border-color: var(--cream); }

/* ---------- Page intro (used on interior pages, non-hero) ---------- */
.page-top-space { padding-top: 64px; }

/* ---------- Section rhythm ---------- */
section {
  padding: 96px 0;
}

.wrap > section:first-of-type,
.wrap-wide > section:first-of-type {
  border-top: none;
}

section p {
  max-width: 60ch;
  font-size: 17px;
}

/* -- heading variant: italic kicker, centered, rule below (Our Story) -- */
.head-story { text-align: center; margin-bottom: 40px; }
.head-story .kicker {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 18px;
  color: var(--sea);
  margin: 0 0 10px 0;
}
.head-story h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(32px, 5vw, 44px);
  margin: 0 auto 18px auto;
}
.head-story .rule {
  width: 48px;
  height: 1px;
  background: var(--sea);
  margin: 0 auto;
}

.story p { color: #3A4148; margin-left: auto; margin-right: auto; text-align: left; }
.story .placeholder {
  margin: 28px auto 0 auto;
  padding: 22px 24px;
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: 2px;
  font-size: 15px;
  color: var(--sage);
  text-align: left;
}
.story .placeholder strong { color: var(--ink); font-weight: 500; }

/* -- heading variant: small serif kicker top-left, headline left (Schedule) -- */
.head-schedule .kicker {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 20px;
  color: var(--sea);
  margin: 0 0 8px 0;
}
.head-schedule h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(30px, 5vw, 40px);
  margin: 0 0 32px 0;
  letter-spacing: -0.01em;
}

.schedule-list { display: flex; flex-direction: column; }
.schedule-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 20px;
  align-items: baseline;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.schedule-row:first-child { border-top: none; }
.schedule-time { font-family: 'Cormorant Garamond', serif; font-size: 20px; color: var(--sea); white-space: nowrap; }
.schedule-name { font-size: 17px; }
.schedule-name .sub { display: block; font-size: 14px; color: var(--sage); margin-top: 3px; }
.venue-line { margin-top: 36px; font-size: 15px; color: var(--sage); }

/* -- heading variant: bordered label badge (Travel intro) -- */
.head-travel {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--sea);
  color: var(--sea);
  font-size: 13px;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}
.travel h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(30px, 5vw, 40px);
  margin: 0 0 32px 0;
}
.travel-box {
  padding: 40px 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  text-align: center;
}
.travel-box p { margin: 0 auto; color: var(--sage); font-size: 15px; max-width: 46ch; }

/* -- heading variant: right-aligned kicker with pin mark (Hotels) -- */
.head-hotels { text-align: right; margin-bottom: 36px; }
.head-hotels .kicker {
  font-size: 13px;
  color: var(--sage);
  letter-spacing: 0.02em;
}
.head-hotels .kicker::before { content: '⌖  '; color: var(--sea); }
.head-hotels h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(30px, 5vw, 40px);
  margin: 8px 0 0 0;
  text-align: left;
}

.hotel-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.hotel-card:first-of-type { border-top: none; }
.hotel-name { font-family: 'Cormorant Garamond', serif; font-size: 21px; margin: 0 0 4px 0; }
.hotel-price { font-size: 15px; color: var(--sea); margin: 0 0 4px 0; }
.hotel-note { font-size: 14px; color: var(--sage); margin: 0; }
.hotel-map-link {
  white-space: nowrap;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid var(--sea);
  color: var(--sea);
  padding: 9px 16px;
  transition: background 0.15s ease, color 0.15s ease;
}
.hotel-map-link:hover { background: var(--sea); color: var(--cream); }

/* -- heading variant: centered, photo-strip accent (Gallery) -- */
.head-gallery { text-align: center; margin-bottom: 40px; }
.strip { display: flex; justify-content: center; gap: 6px; margin-bottom: 18px; }
.strip span { width: 22px; height: 3px; background: var(--sea); opacity: 0.35; }
.strip span:nth-child(2) { opacity: 0.6; }
.strip span:nth-child(3) { opacity: 1; }
.head-gallery h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(30px, 5vw, 40px);
  margin: 0 0 10px 0;
}
.head-gallery p { margin: 0 auto; text-align: center; color: var(--sage); font-size: 15px; }

.dropzone {
  margin-top: 40px;
  border: 2px dashed var(--line);
  background: var(--paper);
  padding: 52px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.dropzone.dragover {
  border-color: var(--sea);
  background: #DEEFF7;
}
.dropzone .dz-icon {
  font-size: 26px;
  color: var(--sea);
  margin-bottom: 12px;
}
.dropzone p {
  margin: 0;
  color: var(--sage);
  font-size: 15px;
  line-height: 1.5;
}
.dropzone input[type="file"] {
  display: none;
}

.dz-filelist {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.dz-filelist span {
  font-size: 13px;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 5px 12px;
  border-radius: 2px;
  color: var(--ink);
}

.dz-submit {
  display: block;
  margin: 20px auto 0 auto;
}

.upload-success {
  margin-top: 40px;
  padding: 28px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  text-align: center;
}

.gallery-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.gallery-item {
  aspect-ratio: 1 / 1;
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item .gallery-placeholder {
  font-size: 12px;
  color: var(--sage);
  text-align: center;
  padding: 8px;
}

/* -- heading variant: bold sans, action-oriented (RSVP) -- */
.head-rsvp { margin-bottom: 36px; }
.head-rsvp .kicker {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--sage);
  margin: 0 0 10px 0;
}
.head-rsvp h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(28px, 5vw, 36px);
  margin: 0;
  letter-spacing: -0.01em;
}

form.rsvp-form { margin-top: 36px; display: flex; flex-direction: column; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; color: var(--sage); }
.field input[type="text"],
.field input[type="email"],
.field input[type="number"],
.field textarea,
.field select {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 2px;
}
.field textarea { resize: vertical; min-height: 90px; }
.radio-group { display: flex; gap: 20px; }
.radio-group label { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink); }

.rsvp-submit {
  align-self: flex-start;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  background: var(--sea);
  color: var(--cream);
  border: none;
  padding: 13px 28px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.rsvp-submit:hover { background: #234455; }

.rsvp-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--sage);
}

/* -- heading variant: label beside headline (Additional Information) -- */
.head-info {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.head-info .kicker {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--sea);
  border-bottom: 1px solid var(--sea);
  padding-bottom: 2px;
  white-space: nowrap;
}
.head-info h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(28px, 5vw, 36px);
  margin: 0;
}

.info-list { display: flex; flex-direction: column; }
.info-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.info-row:first-child { border-top: none; }
.info-label {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--sea);
}
.info-text { margin: 0; font-size: 15px; color: var(--ink); }

@media (max-width: 480px) {
  .info-row { grid-template-columns: 1fr; gap: 6px; }
}

/* ---------- Footer ---------- */
footer {
  padding: 64px 0 80px 0;
  text-align: center;
  border-top: 1px solid var(--line);
}
footer .names {
  font-family: 'Mrs Saint Delafield', cursive;
  font-style: normal;
  font-size: 30px;
  color: var(--sea);
}
footer .date { margin-top: 8px; font-size: 13px; color: var(--sage); letter-spacing: 0.03em; }
footer .footer-nav {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
footer .footer-nav a {
  font-size: 13px;
  color: var(--sage);
  text-decoration: none;
}
footer .footer-nav a:hover { color: var(--sea); }

@media (max-width: 480px) {
  .schedule-row { grid-template-columns: 76px 1fr; }
  section { padding: 72px 0; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .hotel-card { grid-template-columns: 1fr; }
  .hotel-map-link { justify-self: start; }
  .head-hotels { text-align: left; }
  .head-hotels h2 { text-align: left; }
  .site-nav { padding: 20px 20px 18px 20px; }
}
