/* ============================================================
   Victoria & Ryan — Wedding site
   Recreation of the "Villagio (light pink)" theme
   Palette:  bg #000000 · ink/accent #FEE9EE
   Type:     body  Libre Baskerville
             head  Cormorant Garamond (Caslon-style display)
   ============================================================ */

:root {
  --bg: #000000;
  --ink: #fee9ee;
  --ink-soft: rgba(254, 233, 238, 0.72);
  --ink-faint: rgba(254, 233, 238, 0.4);
  --line: rgba(254, 233, 238, 0.28);
  --emoji: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  --body: "Libre Baskerville", Georgia, "Times New Roman", serif, var(--emoji);
  --head: "Cormorant Garamond", "Libre Baskerville", Georgia, serif;
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

/* ---------- Display headings ---------- */
.h-display,
.h-section,
.h-sub {
  font-family: var(--head);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0;
  line-height: 1.04;
}
.h-display { font-size: clamp(3rem, 9vw, 5.5rem); }
.h-section { font-size: clamp(2.1rem, 5vw, 3.1rem); }
.h-sub     { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: 0.16em; }

/* ============================================================
   Navigation
   ============================================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 22px 24px 18px;
  text-align: center;
}
.site-nav .brand {
  font-family: var(--head);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: clamp(1.5rem, 3.4vw, 2.25rem);
  font-weight: 500;
  display: inline-block;
  text-decoration: none;
  line-height: 1;
}
.nav-links {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}
.nav-toggle { display: none; }

/* ============================================================
   Hero marquee (home)
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: #000;
}
.hero-track {
  display: flex;
  width: max-content;
  gap: 14px;
  padding: 14px 0;
  animation: marquee 55s linear infinite;
}
.hero-track img {
  height: min(74vh, 620px);
  width: auto;
  object-fit: cover;
  flex: 0 0 auto;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.hero-monogram {
  font-family: var(--head);
  font-size: clamp(2.6rem, 6vw, 4rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

/* ============================================================
   Content container with floral corners
   ============================================================ */
.floral-wrap { position: relative; overflow: hidden; }
.floral {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
/* Tall vines cascade down the top corners; roses anchor the bottom corners.
   Sized to match the original, which frames the whole home block. */
.floral.tl, .floral.tr { width: clamp(200px, 25vw, 340px); }
.floral.bl, .floral.br { width: clamp(170px, 21vw, 285px); }
.floral.tl { top: 0; left: 0; }
.floral.tr { top: 0; right: 0; }
.floral.bl { bottom: 0; left: 0; }
.floral.br { bottom: 0; right: 0; }

.container {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 110px 24px 130px;
  text-align: center;
}

/* ---------- Home intro block ---------- */
.couple-names {
  font-family: var(--head);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  font-size: clamp(2.4rem, 6.5vw, 4.2rem);
  line-height: 1.1;
  margin: 0 0 60px;
}
.couple-names .amp { display: block; font-size: 0.62em; margin: 10px 0; }
.event-date {
  font-family: var(--head);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  margin: 0 0 14px;
}
.event-city {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 1rem;
  margin: 0;
}

/* ---------- Countdown (inline) ---------- */
.countdown {
  margin: 34px 0 0;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.countdown .unit { white-space: nowrap; }
.countdown .unit + .unit { margin-left: 1.4em; }
.countdown .num { color: var(--ink); }

/* ============================================================
   Schedule
   ============================================================ */
.page-head { padding: 78px 28px 20px; text-align: center; }
.page-head .intro {
  max-width: 620px;
  margin: 22px auto 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.schedule-date {
  text-align: center;
  font-family: var(--head);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 1.4rem;
  margin: 10px 0 50px;
}
.events {
  display: flex;
  flex-direction: column;
  gap: 56px;
  max-width: 640px;
  margin: 0 auto;
}
.event { text-align: center; }
/* Double-heart seal above each event (Zola "seal") */
.seal { display: flex; justify-content: center; margin: 0 auto 22px; }
.seal svg { width: 44px; height: auto; }
.seal path { fill: none; stroke: var(--ink); stroke-width: 1.1; }
.event h3 {
  font-family: var(--head);
  text-transform: none;
  letter-spacing: 0.04em;
  font-weight: 500;
  font-size: 2rem;
  margin: 0 0 6px;
}
.event .time { letter-spacing: 0.08em; margin-bottom: 14px; }
.event .venue { font-weight: 700; }
.event .addr { color: var(--ink-soft); font-size: 0.95rem; margin-top: 2px; }
.event-actions {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Buttons (filled pale-pink, like the original) ---------- */
.btn {
  display: inline-block;
  font-family: var(--body);
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  color: #2b2b2b;
  border: 0;
  background: var(--ink);
  padding: 14px 32px;
  cursor: pointer;
  transition: background 0.25s, transform 0.15s;
}
.btn:hover { background: #ffffff; }

/* ============================================================
   Gallery
   ============================================================ */
.gallery {
  columns: 3 300px;
  column-gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 70px 24px 40px;
}
.gallery figure {
  margin: 0 0 16px;
  break-inside: avoid;
  cursor: pointer;
  overflow: hidden;
  border-radius: 10px;
}
.gallery img {
  width: 100%;
  border-radius: 10px;
  transition: transform 0.5s ease, filter 0.4s ease;
  filter: saturate(0.98);
}
.gallery figure:hover img { transform: scale(1.04); filter: saturate(1.05); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; width: auto; }
.lightbox .lb-close,
.lightbox .lb-nav {
  position: absolute;
  color: var(--ink);
  background: none;
  border: 0;
  font-family: var(--head);
  cursor: pointer;
  user-select: none;
}
.lightbox .lb-close { top: 22px; right: 30px; font-size: 2.4rem; line-height: 1; }
.lightbox .lb-nav { top: 50%; transform: translateY(-50%); font-size: 3rem; padding: 0 20px; }
.lightbox .lb-prev { left: 8px; }
.lightbox .lb-next { right: 8px; }

/* ============================================================
   Registry
   ============================================================ */
/* Extra vertical room so the footer sits lower on this short page */
.registry-page .container { padding-top: 150px; padding-bottom: 260px; }

.registry-list {
  max-width: 560px;
  margin: 0 auto;
}
/* Centered: name, description, then button — all centered */
.registry-item { text-align: center; margin-bottom: 56px; }
.registry-item:last-child { margin-bottom: 0; }
.registry-item .info { margin-bottom: 18px; }
.registry-item h3 {
  font-family: var(--head);
  text-transform: none;
  letter-spacing: 0.03em;
  font-weight: 500;
  font-size: 1.7rem;
  margin: 0 0 10px;
}
.registry-item p { color: var(--ink-soft); margin: 0 auto; max-width: 460px; }
.registry-item .btn { margin: 0 auto; }

/* ============================================================
   Home footer photo (inside the floral frame) + tagline
   ============================================================ */
/* Inset so the florals frame it; shown complete (never cropped). */
.footer-photo-wrap {
  position: relative;
  z-index: 1;
  max-width: 940px;
  margin: 0 auto;
  padding: 0 24px 96px;
}
.footer-photo { width: 100%; height: auto; display: block; }
.site-footer {
  text-align: center;
  padding: 56px 24px 70px;
  border-top: 1px solid var(--line);
}
.site-footer .tagline {
  font-family: var(--head);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: clamp(1.1rem, 2.6vw, 1.6rem);
  color: var(--ink);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 720px) {
  .site-nav { text-align: center; }
  .nav-toggle {
    display: inline-block;
    position: absolute;
    right: 20px;
    top: 22px;
    background: none;
    border: 0;
    color: var(--ink);
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 18px;
    margin-top: 18px;
  }
  .nav-links.open { display: flex; }
  .container { padding: 64px 18px; }
  .countdown { font-size: 0.82rem; }
  .countdown .unit + .unit { margin-left: 0.9em; }
  .hero-track img { height: 52vh; }
  .gallery { columns: 2 160px; }

  /* Home florals stay in the corners, scaled down for narrow screens. */
  .floral.tl, .floral.tr { width: 96px; }
  .floral.bl, .floral.br { width: 104px; }
  .footer-photo-wrap { padding: 0 16px 64px; }

}
