/* ── Fonts ──────────────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=Poppins:wght@300;400;500&display=swap');

/* ── Variables ──────────────────────────────────────────────────────────────── */
:root {
  --bg: #FAFAF7;
  --surface: #FFFFFF;
  --border: #E8E3DC;
  --border-light: #F0EDE8;
  --text: #1A1A18;
  --text-muted: #7A7468;
  --text-light: #ADA89F;
  --accent: #B8965A;
  --accent-light: #E8D5B0;
  --accent-dark: #8C6E3A;
  --tagline: #7A7468;
  --radius: 2px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.08);
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Poppins', -apple-system, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ───────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--accent-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

/* ── Typography ─────────────────────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.2; letter-spacing: 0.01em; }
.serif { font-family: var(--serif); }
.text-muted { color: var(--text-muted); }
.text-light { color: var(--text-light); }
.text-accent { color: var(--accent); }
.text-center { text-align: center; }
.uppercase { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72em; font-weight: 500; }

/* ── Divider ─────────────────────────────────────────────────────────────────── */
.divider {
  display: flex; align-items: center; gap: 16px; margin: 12px 0;
  color: var(--accent); font-size: 0.8rem;
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.ornament { color: var(--accent); font-size: 1.2em; }

/* ── Nav ─────────────────────────────────────────────────────────────────────── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 48px;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
  background: rgba(250,250,247,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: background var(--transition);
}
.nav-logo { font-family: var(--serif); font-size: 1.1rem; color: var(--text); letter-spacing: 0.05em; line-height: 1.25; white-space: nowrap; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); font-weight: 500; transition: color var(--transition); }
.nav-links a:hover { color: var(--accent); }

/* ── Hero ────────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  padding: 80px 24px 60px;
  background: var(--bg);
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: opacity var(--transition);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(250,250,247,0.35) 0%, rgba(250,250,247,0.75) 70%, var(--bg) 100%);
}
.hero-content {
  position: relative; z-index: 1;
  text-align: center; max-width: 720px; margin: 0 auto;
}
.hero-eyebrow {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.25em;
  color: var(--accent); margin-bottom: 16px; font-weight: 500;
}
.hero-title {
  font-family: var(--serif); font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 400; line-height: 1.1; color: var(--text);
  margin-bottom: 16px;
}
.hero-title em { font-style: italic; color: var(--accent-dark); }
.hero-ampersand { font-size: 0.7em; color: var(--accent); display: inline; }
.hero-date {
  font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--text); font-weight: 400; margin-bottom: 32px; letter-spacing: 0.02em;
}
.hero-tagline { font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.6rem); font-style: italic; color: var(--text-muted); margin-top: 24px; }
.hero-meta { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; margin-bottom: 52px; }
.hero-meta-item { text-align: center; }
.hero-meta-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--text-light); margin-bottom: 4px; }
.hero-meta-value { font-family: var(--serif); font-size: 1.1rem; color: var(--text); }
.hero-scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-light); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.15em;
  animation: bounce 2s infinite;
}
.hero-scroll svg { width: 20px; height: 20px; stroke: currentColor; fill: none; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ── Section ─────────────────────────────────────────────────────────────────── */
.section { padding: 96px 24px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--accent); margin-bottom: 16px; font-weight: 500; }
.section-title { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); font-weight: 300; }
.section-subtitle { font-family: var(--serif); font-style: italic; color: var(--text-muted); margin-top: 12px; font-size: 1.1rem; }

/* ── Event Cards ─────────────────────────────────────────────────────────────── */
.events-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2px; }
.event-card {
  background: var(--surface);
  overflow: hidden;
  position: relative;
  cursor: default;
  transition: transform var(--transition), box-shadow var(--transition);
}
.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.event-card-image {
  height: 260px; background: var(--border-light);
  overflow: hidden; position: relative;
}
.event-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.event-card:hover .event-card-image img { transform: scale(1.04); }
.event-card-image-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--border-light) 0%, var(--accent-light) 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 3rem; color: var(--accent);
}
.event-card-body { padding: 28px 32px 32px; }
.event-card-number {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--accent); margin-bottom: 10px; font-weight: 500;
}
.event-card-name { font-family: var(--serif); font-size: 1.6rem; margin-bottom: 8px; }
.event-card-subtitle { color: var(--text-muted); font-style: italic; font-family: var(--serif); margin-bottom: 20px; font-size: 1rem; }
.event-card-details { display: flex; flex-direction: column; gap: 8px; }
.event-detail { display: flex; align-items: flex-start; gap: 12px; font-size: 0.875rem; color: var(--text-muted); }
.event-detail-icon { color: var(--accent); flex-shrink: 0; margin-top: 1px; }
.event-description { margin-top: 16px; font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }
.event-description p { margin-bottom: 8px; }

/* ── Host Message ────────────────────────────────────────────────────────────── */
.host-message-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.host-message-inner { max-width: 680px; margin: 0 auto; text-align: center; }
.host-message-text {
  font-family: var(--serif); font-size: 1.3rem; font-style: italic;
  line-height: 1.8; color: var(--text-muted); margin-bottom: 32px;
}
.host-signature { font-family: var(--serif); font-size: 1.4rem; color: var(--text); }

/* ── Footer ─────────────────────────────────────────────────────────────────── */
.site-footer {
  padding: 48px 24px; text-align: center;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.footer-names { font-family: var(--serif); font-size: 1.8rem; margin-bottom: 8px; }
.footer-note { font-size: 0.82rem; color: var(--text-light); letter-spacing: 0.05em; }

/* ── RSVP Lookup (Home) ──────────────────────────────────────────────────────── */
.rsvp-lookup-section { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.rsvp-lookup-card { padding: 40px; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; text-align: center; }
.rsvp-lookup-label { font-family: var(--serif); font-size: 1.4rem; margin-bottom: 12px; color: var(--text); }
.rsvp-lookup-hint { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 28px; line-height: 1.6; }
.rsvp-lookup-form { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.rsvp-lookup-input { max-width: 360px; text-align: center; border-radius: 100px; }

/* ── RSVP Page ───────────────────────────────────────────────────────────────── */
.rsvp-page { padding: 100px 24px 80px; min-height: 100vh; }
.rsvp-inner { max-width: 760px; margin: 0 auto; }
.rsvp-greeting {
  text-align: center; margin-bottom: 64px; padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
.rsvp-greeting-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--accent); margin-bottom: 12px; }
.rsvp-greeting-name { font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 3.5rem); margin-bottom: 16px; font-weight: 300; }
.rsvp-greeting-msg { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--text-muted); line-height: 1.7; }

.rsvp-event-block { margin-bottom: 48px; }
.rsvp-event-block > *:first-child { border-radius: 10px 10px 0 0; }
.rsvp-event-block > *:last-child { border-radius: 0 0 10px 10px; }
.rsvp-event-header {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 24px; background: var(--surface); border: 1px solid var(--border);
  border-bottom: none;
}
.rsvp-event-header-image { width: 80px; height: 80px; object-fit: cover; flex-shrink: 0; border-radius: 6px; }
.rsvp-event-info { flex: 1; }
.rsvp-event-name { font-family: var(--serif); font-size: 1.5rem; margin-bottom: 4px; }
.rsvp-event-meta { font-size: 0.82rem; color: var(--text-muted); display: flex; flex-wrap: wrap; gap: 12px; }
.rsvp-event-meta span { display: flex; align-items: center; gap: 4px; }

.rsvp-person-block {
  border: 1px solid var(--border); border-top: none;
  padding: 28px 28px 24px; background: var(--surface);
}
.rsvp-person-block + .rsvp-person-block { border-top: 1px solid var(--border-light); }
.rsvp-person-name { font-family: var(--serif); font-size: 1.15rem; margin-bottom: 20px; color: var(--text); }
.rsvp-person-name .relation-tag { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-left: 10px; font-family: var(--sans); }

.rsvp-attending { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.rsvp-radio { display: none; }
.rsvp-label {
  padding: 10px 24px; border: 1px solid var(--border); cursor: pointer;
  font-size: 0.875rem; letter-spacing: 0.05em; transition: all var(--transition);
  user-select: none; color: var(--text-muted); border-radius: 6px;
}
.rsvp-radio:checked + .rsvp-label {
  background: var(--text); color: var(--bg); border-color: var(--text);
}
.rsvp-radio[value="attending"]:checked + .rsvp-label { background: var(--accent-dark); border-color: var(--accent-dark); color: white; }
.rsvp-radio[value="not_attending"]:checked + .rsvp-label { background: var(--text-muted); border-color: var(--text-muted); color: white; }

.rsvp-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rsvp-meal-options { display: flex; gap: 10px; flex-wrap: wrap; }
.rsvp-meal-option { display: flex; align-items: center; gap: 0; }
.rsvp-meal-option input[type="radio"] { display: none; }
.rsvp-meal-option input[type="radio"] + span,
.rsvp-meal-option { padding: 8px 18px; border: 1px solid var(--border); cursor: pointer; font-size: 0.875rem; color: var(--text-muted); transition: all var(--transition); user-select: none; border-radius: 6px; }
.rsvp-meal-option:has(input[type="radio"]:checked) { background: var(--accent); border-color: var(--accent); color: white; }
.rsvp-fields .form-group.full { grid-column: 1 / -1; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
label.form-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); font-weight: 500; }
input.form-input, select.form-input, textarea.form-input {
  border: 1px solid var(--border); background: var(--bg);
  padding: 10px 14px; font-size: 0.9rem; color: var(--text);
  border-radius: 6px; outline: none; font-family: var(--sans);
  transition: border-color var(--transition);
  width: 100%;
}
textarea.form-input { resize: vertical; min-height: 80px; }
input.form-input:focus, select.form-input:focus, textarea.form-input:focus { border-color: var(--accent); }

.rsvp-faq-block {
  border: 1px solid var(--border); border-top: none;
  padding: 20px 28px; background: var(--surface);
}
.rsvp-faq-item {
  border-bottom: 1px solid var(--border-light); cursor: pointer;
  padding: 12px 0;
}
.rsvp-faq-item:last-child { border-bottom: none; }
.rsvp-faq-question {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; font-size: 0.9rem; font-weight: 500; color: var(--text);
}
.rsvp-faq-answer {
  font-size: 0.875rem; color: var(--text-muted); line-height: 1.7;
  padding-top: 8px;
}
.rsvp-song-block {
  border: 1px solid var(--border); border-top: none;
  padding: 24px 28px; background: var(--surface);
}

.rsvp-deadline-note {
  margin-top: 20px; font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--accent);
}
.rsvp-event-subtitle {
  font-style: italic; color: var(--text-muted); font-family: var(--serif); margin-bottom: 8px;
}
.rsvp-event-description {
  font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 10px;
}
.rsvp-deadline-bar {
  padding: 8px 28px; background: var(--border-light);
  border-top: 1px solid var(--border); font-size: 0.78rem; color: var(--text-muted);
}
.rsvp-deadline-bar .closed { color: var(--text-light); }
.rsvp-closed-summary {
  padding: 24px 28px; background: var(--surface);
  border: 1px solid var(--border); border-top: none;
  color: var(--text-muted); font-size: 0.9rem; font-style: italic;
}
.rsvp-faq-label {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--accent); margin-bottom: 12px; font-weight: 500;
}
.rsvp-submit-note {
  font-family: var(--serif); font-style: italic;
  color: var(--text-muted); margin-bottom: 24px; font-size: 1.05rem;
}
.rsvp-submit-hint {
  margin-top: 20px; font-size: 0.78rem; color: var(--text-light);
}
.host-message-section .section-label { margin-bottom: 24px; }

.rsvp-submit-block { margin-top: 48px; text-align: center; }
.btn-primary {
  display: inline-block; padding: 14px 48px;
  background: var(--accent); color: #ffffff;
  font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.18em;
  font-weight: 500; cursor: pointer; border: none;
  border-radius: 100px;
  transition: background var(--transition), transform var(--transition);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-outline {
  display: inline-block; padding: 14px 40px;
  border: 1px solid var(--border); color: var(--text-muted);
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.15em;
  font-weight: 500; cursor: pointer; background: transparent;
  border-radius: 100px;
  transition: all var(--transition);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ── Confirmed Page ──────────────────────────────────────────────────────────── */
.confirmed-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 80px 24px; }
.confirmed-inner { max-width: 600px; text-align: center; }
.confirmed-icon { font-size: 3rem; margin-bottom: 24px; }
.confirmed-title { font-family: var(--serif); font-size: 3rem; font-weight: 300; margin-bottom: 16px; }
.confirmed-msg { font-family: var(--serif); font-style: italic; color: var(--text-muted); font-size: 1.1rem; line-height: 1.7; margin-bottom: 40px; }
.confirmed-events { text-align: left; border: 1px solid var(--border); margin-bottom: 40px; }
.confirmed-event-row { padding: 16px 24px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-light); font-size: 0.9rem; }
.confirmed-event-row:last-child { border-bottom: none; }

/* ── Timeline ────────────────────────────────────────────────────────────────── */
.timeline-section { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.timeline { position: relative; padding: 0; max-width: 1000px; margin: 0 auto; }
.timeline::before {
  content: ''; position: absolute; left: 50%; top: 0; bottom: 0;
  width: 1px; background: var(--border); transform: translateX(-50%);
}
.timeline-item {
  display: grid; grid-template-columns: 1fr 48px 1fr;
  gap: 0; margin-bottom: 64px; position: relative;
}
.timeline-item:last-child { margin-bottom: 0; }

/* Dot on the line */
.timeline-dot {
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 32px; position: relative; z-index: 1;
}
.timeline-dot::after {
  content: '✦';
  color: var(--accent); font-size: 0.9rem; line-height: 1;
  background: var(--surface); padding: 6px; display: block;
}

/* Content cards */
.timeline-content {
  padding: 0 40px;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.timeline-content.visible { opacity: 1; transform: translateY(0); }

/* Left side: content on the left, empty on the right */
.timeline-item.left .timeline-content { grid-column: 1; text-align: right; }
.timeline-item.left .timeline-dot { grid-column: 2; }
.timeline-item.left .timeline-spacer { grid-column: 3; }

/* Right side: empty on the left, content on the right */
.timeline-item.right .timeline-spacer { grid-column: 1; }
.timeline-item.right .timeline-dot { grid-column: 2; }
.timeline-item.right .timeline-content { grid-column: 3; text-align: left; }

.timeline-date {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--accent); margin-bottom: 10px; font-weight: 500;
}
.timeline-title {
  font-family: var(--serif); font-size: 1.7rem; font-weight: 400;
  margin-bottom: 6px; line-height: 1.2; color: var(--accent-dark);
}
.timeline-subtitle {
  font-family: var(--serif); font-style: italic; color: var(--text-muted);
  margin-bottom: 16px; font-size: 1rem;
}
.timeline-image {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  margin-bottom: 16px; display: block; border-radius: 6px;
}
.timeline-item.left .timeline-image { margin-left: auto; }
.timeline-text {
  font-size: 0.925rem; color: var(--text-muted); line-height: 1.8;
}
.timeline-text p { margin-bottom: 10px; }
.timeline-text p:last-child { margin-bottom: 0; }

/* Mobile timeline — single column */
@media (max-width: 768px) {
  .timeline::before { left: 16px; }
  .timeline-item { grid-template-columns: 32px 1fr; gap: 0; }
  .timeline-item.left .timeline-content,
  .timeline-item.right .timeline-content { grid-column: 2; grid-row: 1; text-align: left; padding: 0 0 0 24px; }
  .timeline-item.left .timeline-dot,
  .timeline-item.right .timeline-dot { grid-column: 1; grid-row: 1; padding-top: 4px; }
  .timeline-spacer { display: none; }
}

/* ── 404 ─────────────────────────────────────────────────────────────────────── */
.page-404 { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; }
.page-404 h1 { font-family: var(--serif); font-size: 5rem; color: var(--accent); }

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .site-nav { padding: 0 20px; }
  .nav-links { display: none; }
  .events-grid { grid-template-columns: 1fr; gap: 0; }
  .rsvp-fields { grid-template-columns: 1fr; }
  .rsvp-event-header { flex-direction: column; }
}
