:root {
  --cream: #f4f7f0;
  --paper: #fbfcf8;
  --sage: #ced9cb;
  --olive: #6f8068;
  --deep: #364252;
  --moss: #dfe7db;
  --clay: #997b68;
  --ink: #364252;
  --line: rgba(54, 66, 82, 0.22);
  --shadow: 0 20px 60px rgba(54, 66, 82, 0.12);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 20%, rgba(206, 217, 203, 0.42), transparent 28rem),
    linear-gradient(180deg, var(--sage), var(--cream) 42%, #edf2e8);
  font-family: "Libre Baskerville", Georgia, serif;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: rgba(206, 217, 203, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  font-size: clamp(1.2rem, 3vw, 1.65rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: clamp(0.8rem, 2.5vw, 2rem);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.desktop-nav a,
.text-link {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.desktop-nav a:hover,
.text-link:hover {
  border-color: currentColor;
}

.header-actions,
.gate-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-toggle,
.rsvp-link,
.button {
  display: inline-flex;
  min-height: 2.65rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--olive);
  border-radius: 999px;
  padding: 0 1rem;
  background: transparent;
  color: var(--deep);
  font: 700 0.72rem/1 "Libre Baskerville", Georgia, serif;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.button.primary,
.rsvp-link {
  background: var(--olive);
  color: var(--paper);
}

.button.large {
  min-width: 9rem;
  margin-top: 1.6rem;
}

.language-gate {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  background:
    linear-gradient(rgba(244, 247, 240, 0.92), rgba(244, 247, 240, 0.92)),
    radial-gradient(circle at center, var(--moss), transparent 34rem);
}

.language-gate.is-hidden {
  display: none;
}

.gate-panel {
  width: min(34rem, 100%);
  padding: clamp(2rem, 6vw, 4rem);
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.gate-panel h1,
.hero h1,
.section h2 {
  margin: 0;
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gate-panel h1 {
  font-size: clamp(2rem, 7vw, 3.8rem);
  margin-bottom: 1.7rem;
}

.kicker {
  margin: 0 0 0.65rem;
  color: var(--deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero {
  min-height: calc(100vh - 4.25rem);
  display: grid;
  place-items: center;
  padding: clamp(3rem, 6vw, 5.5rem) 1.25rem clamp(7rem, 15vw, 12rem);
  text-align: center;
}

.hero-inner {
  width: min(62rem, 100%);
  transform: translateY(clamp(3.8rem, 8.8vh, 6.4rem));
}

.hero h1 {
  display: grid;
  gap: 0.03em;
  color: var(--deep);
  font-size: clamp(2.35rem, 6.5vw, 4.55rem);
}

.hero h1 span {
  white-space: nowrap;
}

.hero .amp {
  color: var(--deep);
  font-size: 0.54em;
  font-style: italic;
}

.date,
.place {
  margin: 1rem 0 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.place {
  margin-top: 0.35rem;
  color: var(--deep);
}

.countdown {
  display: flex;
  justify-content: center;
  gap: clamp(0.75rem, 3vw, 1.25rem);
  margin-top: 1.7rem;
}

.countdown span {
  min-width: 5.4rem;
  padding: 0.85rem 0.7rem;
  background: rgba(251, 252, 248, 0.72);
  border: 1px solid var(--line);
}

.countdown strong {
  display: block;
  font-size: 2rem;
  font-weight: 400;
}

.countdown small {
  color: var(--deep);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section {
  padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 5vw, 5rem);
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 52rem;
  margin: 0 auto clamp(1.2rem, 3vw, 2rem);
  text-align: center;
}

.section h2 {
  color: var(--deep);
  font-size: clamp(2rem, 5vw, 3.8rem);
}

#travel h2 {
  white-space: nowrap;
}

.timeline,
.faq-list,
.venue-panel {
  width: min(54rem, 100%);
  margin-inline: auto;
}

.timeline {
  display: grid;
  gap: 0.8rem;
}

.timeline article,
.venue-panel,
.info-grid article,
.faq-list details {
  background: rgba(251, 252, 248, 0.76);
  border: 1px solid var(--line);
  box-shadow: 0 12px 36px rgba(55, 61, 45, 0.06);
}

.timeline article {
  display: grid;
  gap: 0.75rem;
  padding: clamp(1.2rem, 3vw, 1.8rem);
  text-align: center;
}

h3 {
  margin: 0 0 0.4rem;
  font-size: 1.7rem;
  font-weight: 400;
}

p {
  line-height: 1.65;
}

.timeline p,
.venue-panel p,
.info-grid p,
.faq-list p,
.copy-stack p {
  margin: 0;
}

.venue-panel {
  margin-top: 1rem;
  padding: clamp(1.2rem, 3vw, 1.8rem);
  text-align: center;
}

.attire,
.section-note,
.banner-copy {
  color: var(--deep);
}

.banner-copy {
  width: min(40rem, 100%);
  margin: 1.4rem auto 0;
  font-size: 0.9rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(15rem, 0.75fr) minmax(18rem, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

#travel.split {
  grid-template-columns: 1fr;
  gap: clamp(0.8rem, 2vw, 1.25rem);
}

#hotels.split {
  grid-template-columns: 1fr;
  gap: clamp(0.8rem, 2vw, 1.25rem);
}

#travel > div:first-child {
  max-width: 46rem;
  margin-inline: auto;
  text-align: center;
}

#travel .copy-stack,
#hotels .copy-stack {
  width: min(58rem, 100%);
  margin-inline: auto;
}

.muted {
  background: rgba(255, 253, 248, 0.42);
}

.copy-stack {
  display: grid;
  gap: 1rem;
  font-size: 1.03rem;
}

.travel-note {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.travel-note article {
  display: grid;
  gap: 0.9rem;
  align-content: start;
  padding: clamp(1.2rem, 3vw, 1.8rem);
  background: rgba(251, 252, 248, 0.76);
  border: 1px solid var(--line);
  box-shadow: 0 12px 36px rgba(55, 61, 45, 0.06);
}

.resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.2rem;
}

.resource-links a {
  display: inline-flex;
  min-height: 2.55rem;
  align-items: center;
  border: 1px solid var(--deep);
  border-radius: 999px;
  padding: 0.7rem 0.95rem;
  background: var(--deep);
  color: var(--paper);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
}

.resource-links a:hover {
  border-color: var(--deep);
  background: transparent;
  color: var(--deep);
}

html[lang="es"] .english-only {
  display: none;
}

.hotel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.hotel-card {
  display: grid;
  gap: 0.8rem;
  align-content: start;
  padding: 1.35rem;
  background: rgba(251, 252, 248, 0.82);
  border: 1px solid var(--line);
  box-shadow: 0 12px 36px rgba(55, 61, 45, 0.06);
}

.shuttle-card {
  grid-column: 1 / -1;
}

.hotel-button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--deep);
  border-radius: 999px;
  padding: 0.85rem 1.2rem;
  background: var(--deep);
  color: var(--paper);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(54, 66, 82, 0.12);
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.hotel-button:hover {
  transform: translateY(-1px);
  background: transparent;
  color: var(--deep);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.info-grid article,
.faq-list details {
  padding: 1.35rem;
}

.faq-list {
  display: grid;
  gap: 0.7rem;
}

.faq-list summary {
  cursor: pointer;
  font-size: 1.45rem;
}

.site-footer {
  padding: 3rem 1rem;
  color: var(--paper);
  background: var(--deep);
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 1.5rem;
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 20;
  min-height: 2.8rem;
  border: 1px solid var(--deep);
  border-radius: 999px;
  padding: 0 1rem;
  background: var(--deep);
  color: var(--paper);
  font: 700 0.72rem/1 "Libre Baskerville", Georgia, serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(54, 66, 82, 0.2);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.6rem);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.floral {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
  display: block;
  height: auto;
  max-width: 100vw;
  user-select: none;
}

.floral-top {
  top: 4.25rem;
  left: 0;
  width: 100%;
}

.floral-bottom {
  right: 0;
  bottom: 0;
  width: min(80%, 54rem);
}

main,
.site-header,
.site-footer {
  position: relative;
  z-index: 1;
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav {
    grid-column: 1 / -1;
    order: 3;
    overflow-x: auto;
    justify-content: start;
    padding-bottom: 0.15rem;
  }

  .header-actions {
    justify-content: end;
  }

  .timeline article,
  .split,
  .info-grid,
  .hotel-grid,
  .travel-note {
    grid-template-columns: 1fr;
  }

  .shuttle-card {
    grid-column: auto;
  }
}

@media (max-width: 540px) {
  .floral-top {
    top: 6.9rem;
    width: 100vw;
    max-width: 100vw;
  }

  .floral-bottom {
    width: 100vw;
    max-width: 100vw;
  }

  .hero {
    min-height: calc(100vh - 7rem);
    padding-inline: 0.9rem;
    padding-bottom: 42vw;
  }

  .hero-inner {
    transform: translateY(3.35rem);
  }

  .hero h1 {
    font-size: clamp(1.85rem, 10vw, 2.75rem);
  }

  .date,
  .place {
    font-size: clamp(1rem, 5vw, 1.35rem);
  }

  #travel h2 {
    font-size: clamp(1.65rem, 9vw, 2.4rem);
  }

  .gate-actions {
    flex-direction: column;
  }

  .countdown {
    gap: 0.45rem;
  }

  .countdown span {
    flex: 1 1 0;
    min-width: 0;
    padding: 0.65rem 0.35rem;
  }

  .countdown strong {
    font-size: 1.35rem;
  }

  .countdown small {
    font-size: 0.56rem;
  }

  .button,
  .rsvp-link,
  .lang-toggle,
  .hotel-button {
    width: 100%;
  }

  .header-actions {
    width: 100%;
  }

  .lang-toggle {
    width: 3.1rem;
  }

  .rsvp-link {
    width: auto;
    flex: 1;
  }

  .back-to-top {
    right: 0.75rem;
    bottom: 0.75rem;
  }
}
