/*
  PHOTO SETUP
  -----------
  1. Create an images folder beside index.html.
  2. Add your photos there.
  3. Background photos are configured below:
     --hero-image: url("../photos/your-photo.jpg");
     --details-image: url("../images/venue.jpg");
     --registry-image: url("../images/flowers.jpg");
*/

:root {
  --cream: #f2ede3;
  --paper: #fbf8f1;
  --soft-cream: #e4e5dc;
  --ink: #203a28;
  --forest: #203a28;
  --deep-forest: #15281b;
  --moss: #48634b;
  --hero-image: url("../photos/viggiu vibes.pptx_41.jpeg");
  --details-image: url("../photos/viggiu vibes.pptx_41-5.jpeg");
  --registry-image: url("../photos/viggiu vibes.pptx_41-7.jpeg");
}

body {
  background: var(--cream);
}

.welcome-copy {
  margin-bottom: 0;
}

/* Full venue-photo hero with a translucent invitation card. */
.hero {
  color: var(--ink);
  background-color: var(--deep-forest);
  background-image: var(--hero-image);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  width: 100%;
  min-height: 0;
  aspect-ratio: 4 / 3;
  padding: clamp(4.5rem, 8vw, 7rem) 1rem clamp(1rem, 4vw, 3rem);
}

.hero-content {
  width: min(560px, 92vw);
  padding: 0.5rem;
}

.hero-text-card {
  position: relative;
  padding: clamp(1rem, 2.5vw, 1.6rem) clamp(1rem, 4vw, 2.25rem);
  background: rgba(251, 248, 241, 0.68);
  border: 1px solid rgba(251, 248, 241, 0.7);
  box-shadow: 0 22px 70px rgba(25, 40, 31, 0.28);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.hero-text-card::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(38, 56, 45, 0.14);
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(2.15rem, 6.5vw, 5rem);
  line-height: 1;
  white-space: nowrap;
  margin: 0.25rem 0 0.6rem;
  font-weight: 300;
}

.hero h1 span,
.hero h1 i {
  display: inline;
}

.hero h1 i {
  margin: 0 0.14em;
  font-family: Baskerville, "Baskerville Old Face", "Times New Roman", serif;
  font-size: 0.72em;
  font-weight: 300;
  font-style: italic;
  letter-spacing: -0.08em;
}

.hero::after {
  display: none;
}

.site-header {
  color: var(--paper);
  text-shadow: 0 1px 8px rgba(21, 40, 27, 0.45);
}

.site-nav a {
  background: transparent;
  color: var(--paper);
  border: 0;
  padding: 0;
}

.site-nav {
  padding: 0.42rem 0.62rem;
  background: rgba(32, 58, 40, 0.14);
  border-radius: 2px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.site-nav a:not(.nav-rsvp):after {
  display: block;
  background: currentColor;
}

.monogram span,
.hero h1 i {
  color: var(--moss);
}

.nav-rsvp {
  border: 0.5px solid var(--forest);
  background: var(--moss);
  color: var(--paper);
  text-shadow: none;
  padding: 0.38rem 0.72rem;
}

.nav-rsvp:hover {
  text-decoration: underline;
  text-underline-offset: 0.28rem;
}

.button-primary,
.button-outline {
  background: var(--moss);
  color: var(--paper);
  border: 0.5px solid var(--forest);
  padding: 0.72rem 1.15rem;
}

.hero-rule { background: var(--moss); }
.scroll-cue { display: none; }

.hero .hero-rule { margin: 0.75rem auto; }
.hero-date {
  margin: 0;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
}

.hero-location {
  margin: 0.15rem 0 0.8rem;
  font-size: 0.7rem;
}

.hero-text-card .button {
  font-size: 0.65rem;
  padding: 0.8rem 1.35rem;
}

.hero .button-primary {
  background: var(--ink);
  color: var(--paper);
}

/* Consistent cream layers throughout the page. */
.welcome,
.schedule,
.faq {
  background: var(--paper);
}

.travel {
  background: var(--soft-cream);
}

.travel .line-icon {
  color: var(--forest);
}

.travel-grid {
  grid-template-columns: 1fr;
  max-width: 900px;
}

#dress-code {
  background: #60745f;
}

#dress-code::before {
  background: transparent;
}

#dress-code::after {
  background-image: none;
}

.dress-code-faq {
  width: min(100%, 900px);
  margin: 0 auto;
}

.story,
.registry {
  background: var(--cream);
}

.details,
.rsvp {
  background: var(--forest);
  color: var(--paper);
}

/* Foreground photo treatments: portrait and gallery cards. */
.story-image,
.gallery .placeholder-photo {
  border: 10px solid var(--paper);
  box-shadow: 0 18px 45px rgba(38, 56, 45, 0.14);
}

.story-image {
  transform: rotate(-1deg);
}

.placeholder-photo {
  background-color: #879485;
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(38, 56, 45, 0.1));
}

.placeholder-photo span {
  background: rgba(251, 248, 241, 0.9);
  color: var(--ink);
}

/* Background-photo accents. Text stays readable with a cream veil on top. */
.background-photo-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: transparent;
}

.background-photo-section::after {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 1;
}

.background-photo-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: rgba(242, 237, 227, 0.78);
}

.details::after {
  background-image: var(--details-image);
}

.details::before {
  background: rgba(25, 40, 31, 0.78);
}

.registry::after {
  background-image: var(--registry-image);
}

.registry::before {
  background: rgba(242, 237, 227, 0.76);
}

.details .section-heading,
.details .detail-grid {
  position: relative;
  z-index: 1;
}

.detail-grid {
  border-color: rgba(251, 248, 241, 0.25);
  background: rgba(251, 248, 241, 0.07);
  backdrop-filter: blur(3px);
}

.detail-card + .detail-card {
  border-color: rgba(251, 248, 241, 0.25);
}

.card-number {
  color: rgba(251, 248, 241, 0.38);
}

.travel-grid article {
  background: var(--paper);
}

.registry-inner {
  position: relative;
  z-index: 1;
  padding: 3rem;
  background: rgba(251, 248, 241, 0.72);
  backdrop-filter: blur(3px);
}

.rsvp-form input[type="text"],
.rsvp-form select,
.rsvp-form textarea {
  border-color: rgba(251, 248, 241, 0.38);
}

.rsvp-form .button {
  background: var(--paper);
  color: var(--forest);
}

.field-dietary {
  margin-bottom: 0.5rem;
}

/* Use a classic Times-style face throughout the site. */
:root {
  --serif: "Times New Roman", Times, serif;
  --sans: "Times New Roman", Times, serif;
}

.rsvp-copy {
  position: static;
}

.guest-responses {
  margin-bottom: 2rem;
}

.guest-response {
  border: 0;
  padding: 0;
  margin: 0;
}

.guest-response + .guest-response {
  margin-top: 1.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(251, 248, 241, 0.2);
}

.guest-response legend {
  margin-bottom: 0.55rem;
  color: var(--paper);
  font-family: var(--serif);
  font-size: 1.35rem;
}

/* Let the ivy continue through the opening and closing visual sections. */
.hero,
.gallery {
  position: relative;
}

.hero::before,
.gallery::before,
.gallery::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  width: clamp(105px, 12vw, 165px);
  background: url("../assets/ivy-vine.svg") center / 100% 120% no-repeat;
  pointer-events: none;
  opacity: 0.15;
}

.hero::before,
.gallery::before {
  left: -1.5rem;
}

.gallery::after {
  right: -1.5rem;
  transform: scaleX(-1);
}

.gallery > * {
  position: relative;
  z-index: 1;
}

/* Faded ivy grows along both edges of the guest-information sections. */
.schedule,
.travel,
.details {
  position: relative;
  overflow: hidden;
}

.ivy-vine {
  position: absolute;
  z-index: 0;
  width: clamp(105px, 12vw, 165px);
  height: 125%;
  top: -12%;
  pointer-events: none;
  user-select: none;
  opacity: 0.17;
  object-fit: fill;
}

.ivy-vine-left {
  left: -1.5rem;
}

.ivy-vine-right {
  right: -1.5rem;
  transform: scaleX(-1);
}

.schedule > :not(.ivy-vine),
.travel > :not(.ivy-vine),
.details > :not(.ivy-vine) {
  position: relative;
  z-index: 1;
}

@media (max-width: 850px) {
  .site-nav {
    padding: 0;
    background: var(--ink);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .hero::before,
  .gallery::before,
  .gallery::after {
    width: 90px;
    opacity: 0.11;
  }

  .ivy-vine {
    width: 90px;
    opacity: 0.13;
  }

  .ivy-vine-left {
    left: -2.5rem;
  }

  .ivy-vine-right {
    right: -2.5rem;
  }
}

.form-note,
.form-status {
  color: rgba(251, 248, 241, 0.72);
}

.gallery-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border: 4px solid var(--paper);
  box-shadow: 0 7px 18px rgba(25, 40, 31, 0.13);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(6px, 0.8vw, 12px);
  height: auto;
  padding: clamp(8px, 1.5vw, 20px);
}

.gallery-intro {
  grid-column: 1 / -1;
  margin: 0;
  padding: clamp(0.75rem, 1.5vw, 1.25rem) 1rem clamp(0.6rem, 1.2vw, 1rem);
  color: var(--sage);
  font-family: var(--serif);
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  font-style: italic;
  letter-spacing: 0.02em;
  line-height: 1.5;
  text-align: center;
}

.site-footer {
  padding: 2.5rem 1.5rem;
  background: var(--paper);
  color: var(--forest);
}

@media (max-width: 850px) {
  .site-nav {
    background: var(--ink);
    color: var(--paper);
  }

  .story-image {
    transform: none;
  }

}

@media (max-width: 520px) {
  .gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    padding: 6px;
  }
}
