@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Great+Vibes&family=Jost:wght@400;500&display=swap');

:root {
  --ivory: #f6efe4;
  --ivory-deep: #ece2d0;
  --ink: #2b2622;
  --burgundy: #6e1f2a;
  --burgundy-deep: #4c151d;
  --gold: #a9813f;
  --line: rgba(43, 38, 34, 0.18);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: 'Jost', sans-serif;
}

body {
  min-height: 100vh;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(43,38,34,0.03), transparent 40%),
    radial-gradient(circle at 85% 90%, rgba(43,38,34,0.03), transparent 40%);
}

a { color: inherit; }

/* ---------- Nav ---------- */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  padding: 18px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--ivory);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-nav a {
  text-decoration: none;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink);
  opacity: 0.7;
  padding: 8px 12px;
  border-bottom: 1px solid transparent;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}

.site-nav a:hover,
.site-nav a.active {
  opacity: 1;
  border-bottom-color: var(--gold);
}

.site-nav a.nav-rsvp {
  color: var(--burgundy);
  opacity: 1;
  font-weight: 500;
}

.lang-toggle {
  margin-left: 10px;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: none;
  border: 1px solid var(--gold);
  color: var(--burgundy);
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-toggle:hover {
  background: var(--burgundy);
  color: var(--ivory);
}

/* ---------- Page layout ---------- */
.page-wrap {
  display: flex;
  justify-content: center;
  padding: 40px 20px 80px;
}

.card {
  width: 100%;
  max-width: 620px;
  background: var(--ivory);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(43,38,34,0.05), 0 20px 60px rgba(43,38,34,0.08);
  padding: 56px 44px 48px;
  position: relative;
}

.card.wide { max-width: 760px; }

.card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid var(--line);
  pointer-events: none;
}

.eyebrow {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 11px;
  color: var(--burgundy);
  margin-bottom: 18px;
}

.page-title {
  font-family: 'Cormorant Garamond', serif;
  text-align: center;
  font-size: 38px;
  line-height: 1.15;
  font-weight: 500;
  margin: 0 0 6px;
}

.page-subtitle {
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 16px;
  opacity: 0.75;
  margin: 0 0 28px;
}

.rule {
  width: 64px;
  height: 1px;
  background: var(--gold);
  margin: 22px auto 28px;
}

/* ---------- Names / index-only bits ---------- */
.names {
  font-family: 'Cormorant Garamond', serif;
  text-align: center;
  font-size: 44px;
  line-height: 1.15;
  font-weight: 500;
  margin: 0 0 4px;
}

.and {
  font-family: 'Great Vibes', cursive;
  display: block;
  font-size: 30px;
  color: var(--burgundy);
  margin: 2px 0;
}

.photo-wrap { margin: 8px auto 28px; width: 100%; max-width: 420px; }
.photo-frame { border: 1px solid var(--line); padding: 10px; background: var(--ivory-deep); }
.photo-frame img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 4 / 5; object-fit: cover;
  filter: sepia(6%) saturate(92%);
}
.photo-caption {
  text-align: center; font-style: italic; font-family: 'Cormorant Garamond', serif;
  font-size: 15px; opacity: 0.7; margin-top: 10px;
}

.details {
  text-align: center; font-size: 14px; letter-spacing: 0.04em;
  color: var(--ink); opacity: 0.85; margin-bottom: 34px;
}

.details .venue {
  font-weight: 500;
  color: var(--burgundy);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 1px;
  transition: opacity 0.15s ease;
}
.details .venue:hover, .details .venue:focus-visible { opacity: 0.75; }

.countdown-label {
  text-align: center; text-transform: uppercase; letter-spacing: 0.3em;
  font-size: 11px; color: var(--burgundy); margin-bottom: 20px;
}

.seals { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }

.seal {
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--burgundy) 0%, var(--burgundy-deep) 70%);
  box-shadow: inset 0 3px 6px rgba(0,0,0,0.35), inset 0 -4px 8px rgba(0,0,0,0.25), 0 6px 14px rgba(43,38,34,0.25);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--ivory); position: relative;
}
.seal::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(246,239,228,0.35); border-radius: 50%; }
.seal .num { font-family: 'Cormorant Garamond', serif; font-weight: 600; line-height: 1; }
.seal .unit { text-transform: uppercase; opacity: 0.85; margin-top: 4px; }

.seal-solo { width: 132px; height: 132px; }
.seal-solo .num { font-size: 44px; }
.seal-solo .unit { font-size: 10px; }

.footer-note {
  text-align: center; margin-top: 40px; font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-size: 15px; opacity: 0.75;
}

/* ---------- Section headers ---------- */
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--burgundy-deep);
  margin: 36px 0 16px;
  text-align: left;
}
.section-title:first-of-type { margin-top: 0; }

/* ---------- Timeline (schedule page) ---------- */
.timeline-day { margin-bottom: 34px; }
.timeline-day-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px; font-style: italic; color: var(--burgundy);
  margin-bottom: 14px; text-align: center;
}
.timeline { position: relative; padding-left: 26px; border-left: 1px solid var(--gold); }
.timeline-event { position: relative; padding-bottom: 22px; }
.timeline-event:last-child { padding-bottom: 0; }
.timeline-event::before {
  content: "";
  position: absolute; left: -31px; top: 4px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--burgundy);
  box-shadow: 0 0 0 3px var(--ivory);
}
.timeline-time {
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--burgundy); margin-bottom: 2px;
}
.timeline-title { font-weight: 500; margin-bottom: 2px; }
.timeline-desc { font-size: 14px; opacity: 0.8; line-height: 1.5; }

/* ---------- Transportation / FAQ blocks ---------- */
.info-block { margin-bottom: 26px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.info-block:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.info-q {
  font-weight: 500; margin-bottom: 6px; display: flex; gap: 10px; align-items: baseline;
}
.info-q .tag {
  flex: none; font-family: 'Cormorant Garamond', serif; color: var(--gold); font-size: 20px; line-height: 1;
}
.info-a { font-size: 14px; line-height: 1.6; opacity: 0.88; padding-left: 30px; }
.info-a ul { margin: 6px 0 0; padding-left: 18px; }
.info-a li { margin-bottom: 4px; }

/* ---------- FAQ accordion ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-of-type { border-top: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; padding: 16px 4px; font-weight: 500; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-family: 'Cormorant Garamond', serif; font-size: 22px; color: var(--gold);
  transition: transform 0.15s ease; flex: none;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-answer { padding: 0 4px 18px; font-size: 14px; line-height: 1.6; opacity: 0.88; }

/* ---------- Map page ---------- */
#map { width: 100%; height: 360px; border: 1px solid var(--line); }
.map-legend { margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.place-item { display: flex; gap: 12px; align-items: baseline; }
.place-item .dot {
  flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--burgundy); margin-top: 5px;
}
.place-item .place-name { font-weight: 500; }
.place-item .place-desc { font-size: 13.5px; opacity: 0.8; }

/* ---------- Forms (RSVP) ---------- */
.form-group { margin-bottom: 22px; }
.form-group label.field-label {
  display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--burgundy); margin-bottom: 8px;
}
input[type="text"], input[type="email"], input[type="number"], select, textarea {
  width: 100%; font-family: 'Jost', sans-serif; font-size: 14px;
  padding: 11px 12px; border: 1px solid var(--line); background: var(--ivory-deep);
  color: var(--ink); border-radius: 2px;
}
textarea { resize: vertical; min-height: 80px; }
input:focus, select:focus, textarea:focus { outline: 1px solid var(--gold); }

.choice-row { display: flex; gap: 10px; flex-wrap: wrap; }
.choice-pill {
  border: 1px solid var(--line); padding: 9px 16px; border-radius: 999px;
  font-size: 13.5px; cursor: pointer; user-select: none; background: var(--ivory-deep);
}
.choice-pill input { position: absolute; opacity: 0; pointer-events: none; }
.choice-pill:has(input:checked) { border-color: var(--burgundy); background: var(--burgundy); color: var(--ivory); }

.hint { font-size: 12px; opacity: 0.65; margin-top: 6px; }
.conditional-section { display: none; }
.conditional-section.visible { display: block; }

.submit-btn {
  width: 100%; padding: 14px; margin-top: 8px;
  background: var(--burgundy); color: var(--ivory); border: none;
  font-family: 'Jost', sans-serif; text-transform: uppercase; letter-spacing: 0.14em; font-size: 13px;
  cursor: pointer; transition: background 0.15s ease;
}
.submit-btn:hover { background: var(--burgundy-deep); }

.form-note {
  background: var(--ivory-deep); border: 1px solid var(--line); padding: 14px 16px;
  font-size: 13px; line-height: 1.5; margin-bottom: 28px;
}

.confirmation {
  display: none; text-align: center; padding: 30px 10px;
  font-family: 'Cormorant Garamond', serif; font-size: 18px;
}
.confirmation.visible { display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
  .card { padding: 40px 22px 36px; }
  .names { font-size: 34px; }
  .seal-solo { width: 108px; height: 108px; }
  .seal-solo .num { font-size: 36px; }
  .page-title { font-size: 30px; }
  .site-nav { gap: 2px 4px; padding: 14px 10px; }
  .site-nav a { font-size: 11px; padding: 7px 9px; }
}
