/* Refactored from v1 refined — styles kept as supplied. */
/* Figma Frame 2: full-bleed garden with invitation typography */
.screen-home {
  background: #a53860;
  color: #f9dbbd;
}
.home-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    #45092040,
    #45092000 29%,
    #45092009 53%,
    #450920b8 100%
  );
}
.home-intro {
  position: absolute;
  top: clamp(42px, 8%, 86px);
  left: 8%;
  right: 8%;
  text-align: center;
  text-shadow: 0 2px 10px #4509208c;
}
.home-kicker {
  font-size: 12px;
  letter-spacing: 0.27em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.home-intro h1 {
  font:
    500 clamp(33px, 7.7vw, 41px)/1.03 'Cormorant Garamond',
    serif;
  max-width: 270px;
  margin: 0 auto;
}
.name-medallion {
  position: absolute;
  top: 44%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 210px;
  max-width: 61%;
  height: 194px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #f9dbbd;
  text-shadow: 0 4px 18px #45092088;
  background: #45092045;
  border: 1px solid #f9dbbd52;
  border-radius: 52% 48% 51% 49% / 46% 52% 48% 54%;
  backdrop-filter: blur(3px);
  box-shadow:
    0 0 0 7px #f9dbbd24,
    0 14px 42px #45092030;
}
.name-medallion span {
  font:
    italic 600 clamp(48px, 10vw, 59px)/0.95 'Cormorant Garamond',
    serif;
}
.name-medallion i {
  font:
    italic 500 27px/1 'Cormorant Garamond',
    serif;
  color: #f9dbbd;
}
.garden-bird {
  position: absolute;
  width: clamp(27px, 10%, 52px);
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 4px 4px #45092055);
  animation: bird-hover 3s ease-in-out infinite alternate;
}
.bird-a {
  top: 26%;
  left: 16%;
  width: 10%;
  animation-delay: 0.3s;
}
.bird-b {
  top: 56%;
  left: 23%;
  width: 15%;
  animation-delay: 1.2s;
}
.bird-c {
  top: 37%;
  right: 13%;
  width: 9%;
  animation-delay: 0.7s;
  transform: scaleX(-1);
}
@keyframes bird-hover {
  to {
    translate: 0 -9px;
  }
}
.home-footer {
  position: absolute;
  bottom: calc(101px + var(--safe));
  left: 7%;
  right: 7%;
  text-align: center;
  text-shadow: 0 1px 12px #45092077;
}
.home-footer p {
  font:
    500 16px/1.3 'Cormorant Garamond',
    serif;
  letter-spacing: 0.03em;
  margin: 0 0 5px;
}
.home-separator {
  font-size: 11px;
  margin: 0 4px;
}
.home-footer strong {
  display: block;
  font:
    500 23px/1.2 'Cormorant Garamond',
    serif;
}
.home-letter-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f9dbbdea;
  color: var(--sage);
  border: 1px solid #f9dbbdb2;
  padding: 8px 15px;
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: 0.08em;
  border-radius: 30px;
  font-weight: 700;
  box-shadow: 0 7px 22px #4509203b;
}
.home-letter-link svg {
  width: 14px;
  height: 14px;
}

/* The existing frame-2 illustration is unchanged; home now scrolls to frames 3 and 4. */
.home-track {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: y proximity;
}
.home-track::-webkit-scrollbar {
  display: none;
}
.home-cover {
  position: relative;
  height: 100%;
  min-height: 100%;
  isolation: isolate;
  scroll-snap-align: start;
  background: #a53860;
  overflow: hidden;
}
.home-cover > .screen-photo {
  position: absolute;
}
.home-paper-slide {
  scroll-snap-align: start;
  min-height: 100%;
  padding: clamp(35px, 7dvh, 55px) clamp(24px, 9%, 39px) calc(110px + var(--safe));
  background:
    radial-gradient(ellipse 135% 27% at 50% -12%, #f9dbbd 0%, transparent 78%),
    var(--ivory);
  color: #450920;
}
.home-paper-slide h2 {
  font:
    500 clamp(32px, 10vw, 45px)/1.03 'Cormorant Garamond',
    serif;
  color: var(--sage);
  margin: 2px auto 14px;
  text-align: center;
  letter-spacing: -0.03em;
}
.home-countdown-slide .countdown-page {
  max-width: 370px;
  margin: auto;
}
.home-invitation-slide .invitation-prose {
  max-width: 360px;
}
.home-cover .garden-bird {
  filter: drop-shadow(0 3px 4px #45092066) saturate(0.9) contrast(0.95);
}

/* The invitation and countdown form one continuous paper section. */
.home-invitation-slide {
  min-height: 0;
  padding-bottom: 20px;
}
.home-invitation-slide .rsvp-hint {
  margin-bottom: 10px;
}
.home-invitation-slide + .home-countdown-slide {
  padding-top: 24px;
}
.home-countdown-slide .countdown-page > :first-child {
  margin-top: 10px;
}
