/* Wedding website. Every rule is scoped under .site so it cannot affect the landing page. */
.site {
  --pink: #eab3ca;
  --yellow: #fbb53b;
  --orange: #ed8138;
  --red: #e23d44;
  --deep: #992c26;
  --cream: #fdfaf5;
  --display: 'Norman', 'Cormorant Garamond', Georgia, serif;
  --label: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
.site {
  margin: 0;
  background: var(--yellow);
  color: var(--deep);
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.25;
  -webkit-font-smoothing: antialiased;
}
.site::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--red); z-index: 1031; }
.site *, .site *::before, .site *::after { box-sizing: border-box; }
.site a { color: inherit; text-decoration: none; }
.site h1, .site h2, .site h3, .site p { margin: 0; font-weight: 500; }
.site .pad { padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.site .hero.pad, .site .rsvp.pad { padding-left: max(var(--gutter-l), 6vw); padding-right: max(var(--gutter-r), 6vw); }
.site .bands.pad { padding-left: max(var(--gutter-l), 5.5vw); padding-right: max(var(--gutter-r), 5.5vw); }
.site .headline, .site .band h2, .site .band p, .site .rsvp h2, .site .topnav a, .site .topnav button.navlink { -webkit-text-stroke: 0.022em currentColor; }
.site .topnav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 1030;
  background: var(--red);
  color: var(--deep);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 6px; padding-bottom: 6px;
  min-height: 46px;
}
.site .topnav .group { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; min-width: 0; }
.site .topnav .nav-logo { width: 24px; height: 24px; display: block; margin-right: 6px; }
.site .topnav a, .site .topnav button.navlink {
  font: inherit; font-size: 1.3rem; line-height: 1;
  color: var(--deep); background: none; border: 0; padding: 4px 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.site .topnav a:hover, .site .topnav button.navlink:hover { color: var(--cream); }
.site .topnav a:focus-visible, .site .topnav button.navlink:focus-visible, .site .btn-x:focus-visible, .site .map-link:focus-visible, .site .btn-close:focus-visible { outline: 3px solid var(--deep); outline-offset: 3px; }
.site .topnav svg { width: 1em; height: 1em; }
@media (max-width: 575.98px) {
.site .topnav .ig-text, .site .topnav .nav-logo-link { display: none; }
.site .topnav { padding-top: 4px; padding-bottom: 4px; }
.site .topnav .group { gap: clamp(10px, 3.4vw, 18px); flex-wrap: nowrap; }
.site .topnav a, .site .topnav button.navlink { font-size: clamp(1rem, 4.5vw, 1.3rem); padding: 12px 0; }
.site .topnav svg { width: 1.3em; height: 1.3em; }
}
.site-main { background: var(--cream); border-radius: 0 0 18px 18px; overflow: hidden; }
.site .hero { padding-block: clamp(36px, 6vw, 180px) clamp(48px, 9vw, 260px); }
.site .polaroids { position: relative; width: 100%; max-width: 1100px; margin-inline: auto; aspect-ratio: 1 / 0.86; }
.site .polaroids.tall { aspect-ratio: 1 / 0.95; }
.site .polaroid { position: absolute; margin: 0; background: #fff; padding: clamp(4px, 0.6vw, 16px); box-shadow: 0 2px 14px rgba(120, 60, 40, .14); }
.site .polaroid img { display: block; width: 100%; height: auto; }
.site .polaroids .p1 { left: 0; top: 6%; width: 50%; transform: rotate(-4deg); z-index: 1; }
.site .polaroids .p2 { left: 40%; top: 0; width: 52%; transform: rotate(2.5deg); z-index: 2; }
.site .polaroids.right .p1 { left: 6%; top: 0; width: 48%; transform: rotate(-2.5deg); }
.site .polaroids.right .p2 { left: 52%; top: 4%; width: 46%; transform: rotate(3deg); }
.site .headline span { display: block; white-space: nowrap; }
.site .headline { font-size: clamp(2.7rem, 5.6vw, 11rem); line-height: 1.12; color: var(--red); text-align: center; text-wrap: balance; }
.site .bands { display: flex; flex-direction: column; gap: clamp(20px, 2.8vw, 90px); }
.site .band { padding: clamp(14px, 1.1vw, 30px) clamp(14px, 3vw, 80px); }
.site .band.ny { background: var(--pink); }
.site .band.ut { background: var(--orange); }
.site .band .row { --bs-gutter-x: clamp(16px, 3vw, 90px); --bs-gutter-y: 12px; align-items: center; }
.site .band .info { display: flex; justify-content: center; }
.site .band .info-inner { width: fit-content; max-width: 100%; text-align: left; }
.site .band h2 { font-size: clamp(2.6rem, 4.6vw, 9rem); line-height: 1.1; color: var(--deep); }
.site .band .date { font-size: clamp(1.4rem, 2.3vw, 4.6rem); line-height: 1.25; color: var(--red); margin-top: 4px; }
.site .band .where { font-size: clamp(1.7rem, 3vw, 6rem); color: var(--deep); margin-top: clamp(18px, 2.4vw, 70px); line-height: 1.18; }
.site .band .time { font-size: clamp(1.4rem, 2.3vw, 4.6rem); color: var(--red); line-height: 1.25; margin-top: 8px; }
.site .band .where span { display: block; text-wrap: balance; }
.site .map-link { display: block; }
.site .map-link img { display: block; width: 100%; height: auto; }
.site .rsvp { padding-block: clamp(56px, 9vw, 260px) clamp(36px, 6vw, 160px); }
.site .rsvp .copy { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.site .rsvp h2 { font-size: clamp(2.6rem, 5.4vw, 10.5rem); line-height: 1.12; color: var(--red); max-width: 9em; text-wrap: balance; }
.site .label-font, .site .btn-x { font-family: var(--label); font-weight: 700; font-stretch: 125%; text-transform: uppercase; }
.site .btn-rsvp {
  display: block; width: min(100%, max(250px, 18vw)); text-align: center;
  background: var(--pink); color: var(--deep);
  font-size: clamp(1.25rem, 2.1vw, 4.2rem); line-height: 1; padding: 0.42em 1em;
  transition: background-color .15s ease;
}
.site .btn-rsvp:hover { background: var(--yellow); }
.site .links { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(14px, 3.2vw, 110px); padding-block: 0 clamp(40px, 6vw, 180px); }
.site .btn-x {
  display: inline-block; min-width: min(100%, max(220px, 15.5vw)); text-align: center; cursor: pointer;
  background: var(--cream); color: var(--deep);
  border: 4px solid var(--deep); border-radius: 0;
  font-size: clamp(1rem, 1.6vw, 3.2rem); letter-spacing: 0.08em; line-height: 1; padding: 0.95em 1.2em;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.site .btn-x:hover, .site .btn-x:focus-visible { background: var(--red); border-color: var(--red); color: var(--pink); }
.site .foot { background: var(--yellow); display: flex; justify-content: center; padding: 14px var(--gutter-r) 16px var(--gutter-l); padding-bottom: max(16px, env(safe-area-inset-bottom, 0px)); }
.site .foot img { width: clamp(56px, 4.4vw, 120px); height: clamp(56px, 4.4vw, 120px); display: block; }
.site .modal-content { background: var(--cream); color: var(--deep); border: 0; border-radius: 0; box-shadow: inset 0 0 0 6px var(--cream), inset 0 0 0 8px var(--red); }
.site .modal-header { border: 0; padding: 28px 28px 0; justify-content: center; position: relative; }
.site .modal-header .btn-close { position: absolute; right: 22px; top: 22px; margin: 0; opacity: 1; background-size: 14px; }
.site .modal-title { font-size: clamp(3rem, 8vw, 4.4rem); line-height: 1.1; color: var(--deep); }
.site .modal-body { padding: 28px clamp(28px, 6vw, 56px) 40px; text-align: center; display: flex; flex-direction: column; gap: 30px; }
.site .faq h3 { font-size: 2.3rem; line-height: 1.15; margin-bottom: 12px; color: var(--deep); }
.site .faq p { font-size: 1.55rem; color: var(--red); line-height: 1.25; text-wrap: balance; }
.site .faq p.sub { color: var(--deep); }
.site .faq .btn-x { margin-block: 14px 12px; background: var(--pink); box-shadow: none; }
.site .faq .btn-x:hover { background: var(--red); border-color: var(--red); color: var(--pink); }
.modal-backdrop.show { opacity: 1; background: #e23d44; }
@media (prefers-reduced-motion: no-preference) {
@keyframes easeIn { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
.site .hero .polaroid, .site .headline, .site .band .info-inner, .site .band .map-link, .site .rsvp h2, .site .btn-rsvp, .site .rsvp .polaroid, .site .links .btn-x {
    animation: easeIn 1s cubic-bezier(.22, .61, .36, 1) both;
    animation-delay: var(--d, 0s);
  }
.site .hero .p1 { --d: .05s; }
.site .hero .p2 { --d: .25s; }
.site .headline { --d: .45s; }
.site .band.ny .info-inner { --d: .65s; }
.site .band.ny .map-link { --d: .8s; }
.site .band.ut .info-inner { --d: .8s; }
.site .band.ut .map-link { --d: .95s; }
.site .rsvp h2 { --d: .9s; }
.site .btn-rsvp { --d: 1.05s; }
.site .rsvp .p1 { --d: 1s; }
.site .rsvp .p2 { --d: 1.2s; }
.site .links .btn-x { --d: 1.2s; }
}
@media (max-width: 767.98px) {
.site .hero { padding-block: 32px 40px; }
.site .polaroids { max-width: 440px; }
.site .polaroids.tall { aspect-ratio: 1 / 0.8; }
.site .headline { font-size: clamp(2rem, 11vw, 3.4rem); }
.site .band { padding: 26px 20px 18px; }
.site .band .row { --bs-gutter-y: 20px; }
.site .band .info { padding-inline: 0; }
.site .band .info-inner { width: 100%; text-align: center; }
.site .band h2 { font-size: clamp(2.6rem, 11vw, 3.2rem); }
.site .band .where { margin-top: 16px; }
.site .map-link { max-width: 440px; margin-inline: auto; }
.site .rsvp { padding-block: 48px 28px; }
.site .rsvp .row { --bs-gutter-y: 28px; }
.site .rsvp h2 { font-size: clamp(2.5rem, 11vw, 3.4rem); }
.site .links { flex-direction: column; align-items: center; gap: 14px; padding-bottom: 40px; }
.site .links .btn-x { width: min(100%, 280px); }
}
@media (prefers-reduced-motion: reduce) {
.site * { transition: none !important; }
}

/* ---- Open Invitation: landing page hands over to the website ---- */
html.site-open { background: #fbb53b; color-scheme: light; scroll-behavior: smooth; scroll-padding-top: 60px; padding-top: 0; padding-bottom: 0; }
html.site-open body { background: #fbb53b; }
@media (prefers-reduced-motion: reduce) { html.site-open { scroll-behavior: auto; } }
.landing { transition: opacity .7s ease, transform .8s cubic-bezier(.4, 0, .2, 1); }
.landing.is-leaving { opacity: 0; transform: translateY(-3vh) scale(1.03); pointer-events: none; }
.landing.is-entering { animation: landingIn .8s ease; }
@keyframes landingIn { from { opacity: 0; } to { opacity: 1; } }
.site:not([hidden]) { animation: siteIn 1s ease; }   /* no fill: a lingering animation would trap the FAQ modal under its backdrop */
@keyframes siteIn { from { opacity: 0; } to { opacity: 1; } }
.site:focus { outline: none; }
.site .foot a { display: block; }
@media (prefers-reduced-motion: reduce) { .landing, .landing.is-entering, .site:not([hidden]) { transition: none; animation: none; } }
