/* Anh & Marco — shared wedding site styles */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Inter:wght@400;500;600&display=swap');

:root {
  /* Fall palette: warm ivory, espresso, terracotta & burnt sienna */
  --bg: #f7efe3;
  --paper: rgba(253, 247, 239, 0.88);
  --paper-strong: #fdf7ef;
  --ink: #3a2a1d;
  --muted: #7b5d46;
  --accent: #b56333;
  --accent-dark: #8a481f;
  --accent-soft: #edd3b6;
  --line: rgba(120, 82, 50, 0.18);
  --shadow: 0 30px 80px rgba(77, 47, 34, 0.13);
  --shadow-soft: 0 18px 50px rgba(51, 32, 24, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.95), transparent 32%),
    radial-gradient(circle at bottom right, rgba(232, 202, 186, 0.45), transparent 30%),
    linear-gradient(180deg, #f8f1eb 0%, #f2e5db 100%);
  background-attachment: fixed;
}

a {
  color: var(--accent-dark);
}

/* ---------- Language picker overlay (first visit) ---------- */
.lang-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(253, 248, 241, 0.92);
  backdrop-filter: blur(8px);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  opacity: 0;
  animation: overlayIn 0.5s ease forwards;
}

@keyframes overlayIn {
  to { opacity: 1; }
}

.lang-overlay.leaving {
  animation: overlayOut 0.35s ease forwards;
}

@keyframes overlayOut {
  to { opacity: 0; pointer-events: none; }
}

.lang-overlay-card {
  text-align: center;
  max-width: 440px;
  width: 100%;
}

.lang-overlay-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 8vw, 4.5rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #352721;
  line-height: 1;
  margin: 0 0 1.25rem;
}

.lang-overlay-invite {
  font-size: clamp(1.25rem, 3.5vw, 1.6rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 1.75rem;
}

.lang-overlay-couple {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #352721;
  line-height: 1;
  margin: 0 0 0.5rem;
  white-space: nowrap;
}


.lang-overlay-hint {
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.9;
}

.lang-overlay-choices {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.lang-choice-btn {
  display: block;
  width: 100%;
  padding: 1rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 251, 247, 0.85);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.lang-choice-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.lang-choice-btn .lang-native {
  display: block;
  font-size: 1.1rem;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: none;
  margin-bottom: 0.15rem;
  color: inherit;
}

/* ---------- Language switcher ---------- */
.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 4rem 1rem 1.75rem;
  background: transparent;
  text-align: center;
}

.site-header .brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(3.5rem, 9vw, 6.5rem);
  letter-spacing: 0.05em;
  line-height: 1;
  color: #352721;
  text-decoration: none;
}

.site-header .brand-sub {
  margin-top: 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Header sits in the same spot (a bit below the top) on every page */
body.floral .site-header {
  padding-top: 16vh;
  padding-bottom: 0.5rem;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.6rem;
}

.tabs a {
  position: relative;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  padding: 0.35rem 0.1rem;
  transition: color 0.2s ease;
}

.tabs a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.tabs a:hover,
.tabs a.active {
  color: var(--accent-dark);
}

.tabs a.active::after,
.tabs a:hover::after {
  transform: scaleX(1);
}

/* ---------- Layout ---------- */
.page {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.page-header {
  text-align: center;
  padding: 3rem 1rem 2.25rem;
}

.kicker,
.section-kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.38em;
  color: var(--muted);
}

.page-header h1 {
  margin: 1rem 0 0.5rem;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 4rem);
  letter-spacing: 0.03em;
  color: #352721;
}

.page-header p {
  margin: 0 auto;
  max-width: 34rem;
  color: var(--muted);
  line-height: 1.7;
}

h2 {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #352721;
}

.panel {
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 28px;
  padding: 2.2rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #fffaf6;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.btn.btn-ghost {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(184, 137, 116, 0.4);
  color: var(--accent-dark);
}

.btn.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.9);
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 7rem 1.5rem 6rem;
  color: #fff8f2;
  background-image:
    linear-gradient(180deg, rgba(38, 25, 19, 0.28) 0%, rgba(38, 25, 19, 0.52) 100%),
    var(--hero-image);
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 1.25rem;
  border: 1px solid rgba(255, 250, 245, 0.4);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero .kicker {
  color: rgba(255, 248, 242, 0.85);
}

.hero h1 {
  margin: 1.25rem 0 0;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(3.6rem, 11vw, 8rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.28);
}

.hero-date {
  margin-top: 1.4rem;
  font-size: clamp(0.82rem, 2.4vw, 1.05rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 248, 242, 0.92);
}

.scroll-cue {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 1px solid rgba(255, 250, 245, 0.6);
  border-radius: 999px;
  z-index: 1;
}

.scroll-cue::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 3px;
  height: 8px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: rgba(255, 250, 245, 0.85);
  animation: scrollcue 1.6s ease-in-out infinite;
}

@keyframes scrollcue {
  0% { opacity: 0; transform: translateY(0); }
  50% { opacity: 1; }
  100% { opacity: 0; transform: translateY(12px); }
}

/* ---------- Monogram intro ---------- */
.intro {
  text-align: center;
  padding: 3.75rem 1.5rem 1rem;
}

.intro .monogram-lg {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 8vw, 4.5rem);
  letter-spacing: 0.06em;
  line-height: 1;
  color: #4c372e;
}

.intro .intro-date {
  margin-top: 1rem;
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
}

.intro .intro-place {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.intro .btn {
  margin-top: 1.75rem;
}

/* ---------- Centered section (wedding day) ---------- */
.section-center {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 0;
}

.section-center h2 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  margin-top: 0.5rem;
}

.section-center .wd-date {
  margin-top: 0.9rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  color: #382923;
}

.section-center .wd-welcome {
  margin: 1.25rem auto 0;
  max-width: 40rem;
  color: var(--muted);
  line-height: 1.9;
  font-size: 1.05rem;
}

.divider {
  width: 64px;
  height: 1px;
  margin: 2.5rem auto;
  background: var(--accent);
  opacity: 0.5;
}

.schedule-center {
  max-width: 600px;
  margin: 1.5rem auto 0;
  text-align: left;
}

.sched {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 2.25rem;
  align-items: start;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.sched:last-child {
  border-bottom: 1px solid var(--line);
}

.sched-time {
  text-align: right;
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.5;
  color: #5f4c42;
}

.sched-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #382923;
  margin-bottom: 0.5rem;
}

.sched-loc {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--muted);
}

.note-center {
  margin: 2.5rem auto 0;
  max-width: 34rem;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

.note-center strong {
  color: var(--accent-dark);
}

.center-actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
}

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 42vh;
  padding: 4.5rem 1.5rem;
  color: #fff;
  background-image:
    linear-gradient(180deg, rgba(38, 25, 19, 0.32), rgba(38, 25, 19, 0.55)),
    var(--hero-image);
  background-size: cover;
  background-position: center;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(255, 250, 245, 0.35);
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
}

.page-hero .kicker {
  color: rgba(255, 248, 242, 0.85);
}

.page-hero h1 {
  margin: 0.85rem 0 0.5rem;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  letter-spacing: 0.03em;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.26);
}

.page-hero p {
  margin: 0 auto;
  max-width: 34rem;
  color: rgba(255, 248, 242, 0.9);
  line-height: 1.7;
}

/* ---------- Warm ivory + floral corners (all main pages) ---------- */
body.floral {
  background-color: #FFD7C7;
  background-image:
    url('/assets/hero-top-left.webp'),
    url('/assets/hero-top-right.webp'),
    url('/assets/hero-bottom-left.webp'),
    url('/assets/hero-bottom-right.webp');
  background-repeat: no-repeat;
  background-position: left top, right top, left bottom, right bottom;
  background-size: 40% auto;
  background-attachment: scroll;
}

.home-hero {
  text-align: center;
  padding: 6rem 1.5rem 2.25rem;
}

.home-hero .couple-names {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(3rem, 9vw, 6rem);
  line-height: 1;
  letter-spacing: 0.04em;
  color: #352721;
}

.home-hero .couple-sub {
  margin-top: 1.35rem;
  font-size: clamp(0.8rem, 2.2vw, 1rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

.home-intro {
  text-align: center;
  padding: 1rem 1.5rem;
}

.home-intro .dl-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  align-items: center;
  gap: 2rem;
  max-width: 780px;
  margin: 0 auto;
}

.home-intro .dl-date,
.home-intro .dl-place {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #352721;
}

.home-intro .dl-date a,
.home-intro .dl-place a {
  color: inherit;
  text-decoration: none;
}

.home-intro .dl-date a:hover,
.home-intro .dl-place a:hover {
  opacity: 0.7;
}

.home-intro .dl-date {
  text-align: center;
}

.home-intro .dl-place {
  text-align: center;
}

.home-intro .dl-rule {
  width: 1px;
  align-self: stretch;
  min-height: 7rem;
  background: rgba(125, 102, 90, 0.3);
}

.section-center .wd-welcome .translation {
  display: block;
  margin-top: 0.95rem;
  font-style: italic;
  opacity: 0.85;
}

/* ---------- Schedule ---------- */
.content {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.details-copy {
  margin-top: 1rem;
  color: var(--muted);
  line-height: 1.8;
  font-size: 1rem;
}

.details-copy .translation {
  display: block;
  margin-top: 0.75rem;
  font-style: italic;
  opacity: 0.8;
}

.schedule {
  margin-top: 1.75rem;
  display: grid;
  gap: 1rem;
}

.schedule-item {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.schedule-item:last-child {
  border-bottom: 1px solid var(--line);
}

.time {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 0.15rem;
}

.event-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  margin-bottom: 0.2rem;
  color: #382923;
}

.event-copy {
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.98rem;
}

.note {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

.note strong {
  color: var(--accent-dark);
}

/* ---------- Location card ---------- */
.place-card {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  background:
    linear-gradient(180deg, rgba(55, 38, 31, 0.24), rgba(55, 38, 31, 0.55)),
    url('https://images.unsplash.com/photo-1519225421980-715cb0215aed?auto=format&fit=crop&w=1400&q=80') center/cover no-repeat;
  color: #fffaf6;
}

.place-card::after {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(255, 250, 245, 0.28);
  border-radius: 22px;
  pointer-events: none;
}

.place-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100%;
}

.place-card h2 {
  color: inherit;
}

.place-card .section-kicker {
  color: rgba(255, 245, 237, 0.74);
}

.address {
  margin-top: 1.25rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  line-height: 1.15;
}

.address-note {
  margin-top: 0.9rem;
  max-width: 18rem;
  line-height: 1.7;
  color: rgba(255, 245, 237, 0.82);
}

.map-link {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 1.75rem;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fffaf6;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.map-link:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

/* ---------- Photo gallery ---------- */
.timeline-era {
  text-align: center;
}

.gallery {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1.25rem;
  max-width: 100%;
}

.gallery figure {
  position: relative;
  width: 270px;
  flex: 0 0 270px;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: var(--accent-soft);
  cursor: zoom-in;
  text-align: left;
}

.gallery img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.35s ease;
}

.gallery figure:hover img {
  transform: scale(1.03);
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
}

.timeline-era {
  position: relative;
  margin-bottom: 3.5rem;
}

.timeline-year-label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.timeline-year-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--paper-strong);
  flex-shrink: 0;
}

.timeline-year-label h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #352721;
  margin: 0;
  line-height: 1;
}

.timeline-year-label .year-rule {
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(28, 18, 12, 0.92);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-size: 2rem;
  color: rgba(255,250,245,0.8);
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}

@media (max-width: 640px) {
  .gallery figure {
    flex: 0 0 calc(50% - 0.375rem);
    max-width: calc(50% - 0.375rem);
  }
}

/* ---------- Q + A accordion ---------- */
.faq {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 0 1.5rem;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  cursor: pointer;
  list-style: none;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  color: #382923;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-family: 'Inter', sans-serif;
  font-size: 1.4rem;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq .answer {
  padding: 0 0 1.4rem;
  color: var(--muted);
  line-height: 1.75;
}

.faq .answer a {
  color: var(--accent-dark);
}

/* ---------- Forms / RSVP ---------- */
.form-wrap {
  max-width: 620px;
  margin: 0 auto;
}

.field {
  margin-bottom: 1.25rem;
  text-align: left;
}

.field label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-strong);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184, 137, 116, 0.18);
}

.field textarea {
  min-height: 6rem;
  resize: vertical;
}

.inline-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.inline-form input[type="text"] {
  flex: 1 1 16rem;
  min-width: 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-strong);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
}

.inline-form input[type="text"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184, 137, 116, 0.18);
}

@media (max-width: 768px) {
  .inline-form {
    flex-direction: column;
  }

  .inline-form input[type="text"] {
    flex: 0 0 auto;
    width: 100%;
    font-size: 1.1rem;
    padding: 1rem 1.25rem;
  }

  .inline-form .btn {
    width: 100%;
    font-size: 1rem;
    padding: 1rem 1.25rem;
  }
}

.guest-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.guest-row:last-of-type {
  border-bottom: 1px solid var(--line);
}

.guest-row .plus-one-name {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-strong);
  color: var(--ink);
  width: 200px;
  min-width: 0;
  flex-shrink: 1;
}

.guest-row .plus-one-name:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184, 137, 116, 0.18);
}

.guest-row .guest-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  color: #382923;
}

.attendance {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.attendance label {
  margin: 0;
  padding: 0.5rem 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease;
}

.attendance input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.attendance input:checked + span {
  background: var(--accent);
  color: #fffaf6;
}

.attendance span {
  display: inline-block;
  padding: 0.55rem 1.05rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease;
}

.attendance label:first-child span {
  border-right: 1px solid var(--line);
}

.feedback {
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  line-height: 1.6;
  font-size: 0.98rem;
  display: none;
}

.feedback.show {
  display: block;
}

.feedback.error {
  background: rgba(184, 90, 74, 0.1);
  border: 1px solid rgba(184, 90, 74, 0.3);
  color: #8f4436;
}

.feedback.success {
  background: rgba(120, 150, 104, 0.14);
  border: 1px solid rgba(120, 150, 104, 0.35);
  color: #4f6a41;
}

.hidden {
  display: none !important;
}

.rsvp-checking {
  text-align: center;
  padding: 1.5rem 0;
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.rsvp-checking::after {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-left: 0.6rem;
  border: 2px solid var(--accent-soft);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2.5rem 1.5rem 3rem;
  color: var(--muted);
}

.site-footer .monogram {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  letter-spacing: 0.08em;
  color: #4c372e;
}

.site-footer p {
  margin: 0.75rem auto 0;
  max-width: 34rem;
  line-height: 1.7;
}

.site-footer.footer-photo {
  margin-top: 3rem;
  padding: 5.5rem 1.5rem;
  color: #fff8f2;
  background-image:
    linear-gradient(180deg, rgba(38, 25, 19, 0.45), rgba(38, 25, 19, 0.62)),
    var(--footer-image);
  background-size: cover;
  background-position: center;
}

.site-footer.footer-photo .monogram {
  color: #fff;
}

.site-footer.footer-photo p {
  color: rgba(255, 248, 242, 0.92);
}

.site-footer.footer-photo a {
  color: #fff;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .content {
    grid-template-columns: 1fr;
  }

  .place-card {
    min-height: 28rem;
  }
}

@media (max-width: 640px) {
  .page {
    width: min(100% - 1rem, 1100px);
    padding-top: 0.5rem;
  }

  .hero {
    min-height: 78vh;
    padding: 5rem 1.25rem;
  }

  .hero::after {
    inset: 0.85rem;
  }

  .page-hero {
    min-height: 34vh;
    padding: 3.5rem 1.25rem;
  }

  .panel {
    padding: 1.5rem;
    border-radius: 22px;
  }

  .schedule-item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .gallery {
    columns: 2 150px;
  }

  .guest-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
}
