.names .bride { display: inline; font: inherit; color: inherit; margin: 0; }
.names .name-pair { display: contents; }

.invitation-header a,
.hero-link,
.text-link,
.actions .button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.actions .button { justify-content: center; }
.text-link, .actions .button, .countdown small { font-size: 11px; }
.band p, .section-note, .moments-controls p { font-size: 13px; }
.closing footer { font-size: 11px; }

.moments-buttons button {
  width: 44px;
  height: 44px;
}

.moments-buttons .pause { width: auto; font-size: 12px; }

.moments-rail {
  touch-action: pan-x pan-y pinch-zoom;
  overscroll-behavior-inline: contain;
}

@media (max-width: 900px) {
  .hero-copy { padding: clamp(24px, 5vw, 42px) 22px 14px; }
  .names {
    font-size: clamp(49px, 12.4vw, 76px);
    letter-spacing: -0.035em;
    line-height: 1;
    margin-bottom: 16px;
  }
  .names .ampersand { margin-inline: 4px; line-height: 1; }
  .message { font-size: 16px; line-height: 1.55; max-width: 31ch; margin-bottom: 18px; }
  .hero-date { padding-top: 11px; }
  .hero-date span, .hero-link { font-size: 11px; }
  .date-ornament { margin-top: 8px; }
  .date-ornament + .hero-link { margin-top: 2px; }
  .hero-art { height: clamp(220px, 82vw, 450px); }
  .hero-art img { max-height: 100%; }

  .countdown {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    max-width: 320px;
    margin-inline: auto;
  }
  .countdown small { letter-spacing: 0.07em; }

  .section { padding-inline: clamp(20px, 5.5vw, 42px); }
  .event { align-items: start; gap: 4px 16px; }
  .event .day-number { grid-row: span 2; }
  .event .day { font-size: 11px; line-height: 1.5; }
  .event .note, .celebrations-heading p { font-size: 14px; }
  .event .note { margin-bottom: 4px; }
  .event .time { margin-bottom: 5px; }

  .moments-rail figure,
  .moments-rail figure.landscape {
    height: clamp(230px, 70vw, 340px);
  }
  .moments-controls { gap: 12px; }
  .moments-controls p { font-size: 12px; line-height: 1.4; }
  .moments-buttons { flex-shrink: 0; gap: 6px; }
  .moments-buttons .pause { min-width: 56px; padding-inline: 9px; }
  .venue p { font-size: 16px; }
}

@media (min-width: 901px) and (max-width: 1120px) {
  .event { grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
}

@media (max-width: 360px) {
  .moments-controls { padding-inline: 18px; }
  .actions { gap: 8px; }
  .actions .button { padding-inline: 12px; }
}

.countdown-page {
  padding-block: 16px;
  background: var(--coral);
  color: var(--paper);
  border-bottom: 0;
}
.countdown-page h2 { font-size: clamp(28px, 3.2vw, 38px); line-height: 1.12; margin-bottom: 5px; }
.countdown-page .countdown strong { font-size: clamp(34px, 4vw, 46px); line-height: 1; }

#celebrations {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 43%, #fff0da, #fce8cc 84%);
}

.celebrations-content {
  position: relative;
  z-index: 1;
  width: min(100% - 40px, 900px);
  margin-inline: auto;
  padding-block: clamp(70px, 6vw, 100px) 12px;
}

#celebrations .celebrations-heading {
  display: block;
  text-align: center;
  margin-bottom: clamp(22px, 3vw, 48px);
}

#celebrations h2 {
  font-size: clamp(34px, 4.1vw, 66px);
  line-height: 1.08;
  text-wrap: balance;
  margin: 0;
}

.celebrations-ornament {
  display: block;
  width: clamp(150px, 19.3vw, 322px);
  margin: 0 auto 12px;
}

#celebrations .event + .event { position: relative; }
#celebrations .event + .event::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: clamp(34px, 4.2vw, 70px);
  aspect-ratio: 70 / 44;
  background: url("celebrations/reference-divider-transparent.webp") center / contain no-repeat;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

#celebrations .event {
  grid-template-columns: max-content minmax(0, 1fr) minmax(0, .98fr);
  gap: clamp(16px, 2.2vw, 32px);
  align-items: center;
  padding-block: clamp(18px, 2.5vw, 38px);
}

#celebrations .day-number {
  border-inline-end: 1px solid var(--line);
  padding-inline-end: clamp(10px, 1.5vw, 20px);
  font-size: clamp(40px, 5vw, 70px);
  line-height: .95;
  font-variant-numeric: lining-nums tabular-nums;
}

#celebrations .day-number small {
  margin-top: 10px;
  font-size: 11px;
  line-height: 1.25;
  letter-spacing: .08em;
  text-transform: uppercase;
}

#celebrations .event h3 {
  margin-bottom: 8px;
  font-size: clamp(26px, 3.25vw, 45px);
  line-height: 1.08;
}

#celebrations .day {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
  text-transform: uppercase;
}

#celebrations .event .time {
  margin: 0 0 4px;
  font: 500 clamp(20px, 2vw, 28px)/1.2 'Bodoni Moda', serif;
}

#celebrations .event .note {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

#celebrations .text-link { text-underline-offset: 5px; }

.celebrations-flowers, .celebrations-garlands {
  position: absolute;
  top: 0;
  display: block;
  pointer-events: none;
}

.celebrations-flowers {
  left: 0;
  width: 33.51%;
  filter: hue-rotate(12deg) saturate(1.12);
}

.celebrations-garlands {
  right: 0;
  width: 24.60%;
}

.celebrations-landscape {
  display: block;
  width: 100%;
  aspect-ratio: 1671 / 691;
  object-fit: fill;
  clip-path: inset(0 0 27% 0);
  transform: translateY(27%);
  filter: hue-rotate(12deg) saturate(1.12);
  opacity: .18;
  pointer-events: none;
}
.celebrations-landscape-right { display: none; }


@media (min-width: 601px) {
  #celebrations .event:first-child { border-bottom: 0; }
  #celebrations .event + .event {
    background: linear-gradient(to right, var(--line) 0 calc(50% - 20px),
      transparent calc(50% - 20px) calc(50% + 20px), var(--line) calc(50% + 20px)) top / 100% 1px no-repeat;
  }
}

@media (max-width: 979px) {
  .countdown-page .countdown { margin-top: 13px; }
}

@media (min-width: 1100px) {
  .celebrations-content {
    width: min(63%, 1055px);
    padding-top: clamp(36px, 3vw, 55px);
    padding-bottom: clamp(95px, 10vw, 160px);
  }
  .celebrations-landscape {
    position: absolute;
    bottom: 0;
    width: 155%;
    height: auto;
  }
  .celebrations-landscape-left { left: 0; clip-path: inset(0 50% 27% 0); }
  .celebrations-landscape-right { display: block; right: 0; clip-path: inset(0 0 27% 50%); }
}


@media (max-width: 600px) {
  .names { font-size: clamp(57px, 14vw, 76px); }
  .message { font-size: 18px; }
  .hero-date strong { font-size: 43px; }
  .hero-date span { font-size: 12px; }
  .celebrations-content { padding-top: 74px; padding-bottom: 42px; }
  .celebrations-landscape {
    position: absolute;
    bottom: 0;
    width: 175%;
    height: auto;
  }
  .celebrations-landscape-left { left: 0; clip-path: inset(0 50% 27% 0); }
  .celebrations-landscape-right { display: block; right: 0; clip-path: inset(0 0 27% 50%); }
  .celebrations-garlands { width: 22%; }
  #celebrations .event + .event::before { display: none; }
}

@media (max-width: 900px) {
  #celebrations .event {
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 8px 14px;
    align-items: start;
  }
  #celebrations .day-number { grid-row: span 2; }
  #celebrations .event h3 { margin-bottom: 5px; }
}

.invitation-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 8px;
  padding: clamp(8px, 1vw, 14px) clamp(12px, 4vw, 80px);
  background: var(--preview-deep, #69251f);
  color: var(--preview-paper, #faf6f0);
  border-bottom-color: var(--preview-band-gold, #d4af37);
}

.invitation-header .monogram {
  justify-self: start;
  min-width: 44px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1;
  white-space: nowrap;
}

.invitation-header .header-ganesha {
  position: static;
  transform: none;
  width: clamp(30px, 4vw, 44px);
  height: auto;
  aspect-ratio: 2 / 3;
  color: var(--preview-band-gold, #d4af37);
}

.invitation-header nav {
  justify-self: end;
  align-items: center;
  gap: clamp(4px, 1.5vw, 28px);
}

.invitation-header nav a {
  justify-content: center;
  min-width: 44px;
  padding-inline: 4px;
  font-size: clamp(11px, 1.2vw, 14px);
  letter-spacing: .08em;
  white-space: nowrap;
  color: var(--preview-paper, #faf6f0);
  transition: color .2s ease;
}

.invitation-header nav a:hover { color: var(--preview-band-gold, #d4af37); }
.invitation-header a:focus-visible { outline-color: var(--preview-paper, #faf6f0); }

html { scroll-snap-type: y proximity; }
.invitation-header, #celebrations, .video-invitation, .moments-section, .venue-wrap {
  scroll-snap-align: start;
}
@media (hover: none), (max-width: 900px) {
  html { scroll-snap-type: none; }
}
@media (min-width: 600px) and (max-width: 1100px) and (min-height: 560px) {
  #celebrations { min-height: calc(100svh - 130px); }
  .venue-wrap { min-height: 100svh; display: flex; align-items: center; }
}

@media (hover: hover) and (pointer: fine) and (min-width: 600px) and (max-width: 1100px) and (min-height: 560px) {
  html { scroll-snap-type: y mandatory; scroll-padding-top: 0; }
}

.video-invitation {
  padding: clamp(10px, 1.5vw, 22px);
  background: linear-gradient(rgba(252, 232, 204, .22), rgba(252, 232, 204, .22)), url("optimized/paper.webp") center / cover;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.video-invitation video {
  display: block;
  width: min(92%, 1200px);
  max-height: 100vh;
  aspect-ratio: 854 / 480;
  object-fit: contain;
  background: #29180e;
  border: 1px solid #b9986b;
}
@media (prefers-reduced-motion: no-preference) {
  .video-invitation video { transition: opacity 1.5s ease, transform 1.5s ease; }
  .video-invitation.awaiting-video video { opacity: 0; transform: scale(.98); }
}

@media (prefers-reduced-motion: no-preference) {
  .typing-letter { visibility: hidden; }
  .typing-letter.typed { visibility: visible; }
  .typing-cursor { position: relative; }
  .typing-cursor::after { content: ''; position: absolute; z-index: 2; left: calc(100% - 2px); bottom: .03em; width: 24px; height: 36px; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 36'%3E%3Cpath d='M3 33 7 24 17 3c.7-1.5 2.2-2 3.4-1.3s1.7 2.1 1 3.5L11 26Z' fill='%23925d28' stroke='%23532922' stroke-width='.8'/%3E%3Cpath d='m3 33 4-9 4 2Z' fill='%23dfbd81' stroke='%23532922' stroke-width='.7'/%3E%3Cpath d='m4.4 30 1.7.8L3 33Z' fill='%23532922'/%3E%3Cpath d='m16 6 4 2M8 23l4 2' stroke='%23f6dfad' stroke-width='1'/%3E%3C/svg%3E") no-repeat center / contain; }
  .hero.is-entering .names .bride, .hero.is-entering .names .groom { position: relative; }
  @keyframes ink-reveal {
    from { clip-path: inset(-1em 110% -1em -1em); }
    to { clip-path: inset(-1em -1em -1em -1em); }
  }
  @keyframes name-ampersand {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  @keyframes date-zoom {
    from { opacity: 0; transform: scale(.9); }
    to { opacity: 1; transform: scale(1); }
  }
  #celebrations.is-entering .celebrations-heading,
  #celebrations.is-entering .celebrations-flowers,
  #celebrations.is-entering .celebrations-garlands {
    animation: celebrations-top-entrance .9s ease-out both;
  }
  #celebrations.is-entering .event:first-child {
    animation: celebrations-left-entrance .95s ease-out .08s both;
  }
  #celebrations.is-entering .event + .event {
    animation: celebrations-right-entrance .95s ease-out .16s both;
  }
  #celebrations.is-entering .celebrations-landscape {
    animation: temples-entrance 1.2s ease-out .08s both;
  }
  @keyframes celebrations-top-entrance {
    from { opacity: 0; transform: translateY(-22px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes celebrations-left-entrance {
    from { opacity: 0; transform: translateX(-45px); }
    to { opacity: 1; transform: translateX(0); }
  }
  @keyframes celebrations-right-entrance {
    from { opacity: 0; transform: translateX(45px); }
    to { opacity: 1; transform: translateX(0); }
  }
  @keyframes temples-entrance {
    from { opacity: 0; transform: translateY(calc(27% + 20px)); }
    to { opacity: .18; transform: translateY(27%); }
  }
  .countdown-page.is-entering .countdown strong {
    display: inline-block;
    animation: countdown-entrance 1.1s cubic-bezier(.22, 1, .36, 1) both;
  }
  .countdown-page.is-entering .countdown div:nth-child(2) strong { animation-delay: .1s; }
  .countdown-page.is-entering .countdown div:nth-child(3) strong { animation-delay: .2s; }
  .countdown-page.is-entering .countdown div:nth-child(4) strong { animation-delay: .3s; }
  @keyframes countdown-entrance {
    from { opacity: 0; transform: scale(1.4); }
    to { opacity: 1; transform: scale(1); }
  }
  .hero-link {
    transform-origin: left center;
    animation: invitation-pulse 3.4s ease-in-out 1.6s infinite;
  }
  .hero-link:hover, .hero-link:focus-visible { animation-play-state: paused; }
  .hero-link svg { transition: transform .3s ease; }
  .hero-link:hover svg, .hero-link:focus-visible svg { transform: translateX(5px); }
  @keyframes hero-copy-entrance {
    from { opacity: 0; transform: translateX(clamp(-460px, -35vw, -150px)); }
    to { opacity: 1; transform: translateX(0); }
  }
  @keyframes invitation-pulse {
    0%, 100% { transform: scale(1); opacity: .85; }
    50% { transform: scale(1.06); opacity: 1; }
  }
}
@media (max-width: 900px) {
  .hero-link { transform-origin: center; }
}

.hero {
  background-image: radial-gradient(ellipse at center, transparent 35%, rgba(119, 67, 30, .12) 100%), linear-gradient(rgba(255, 242, 218, .27), rgba(255, 242, 218, .27)), url("optimized/paper.webp");
  background-size: cover;
  background-position: center;
}
#celebrations {
  background-image: radial-gradient(ellipse at center, transparent 35%, rgba(119, 67, 30, .12) 100%), linear-gradient(rgba(255, 242, 218, .27), rgba(255, 242, 218, .27)), url("optimized/paper.webp");
  background-size: cover;
  background-position: center;
}

/* Guestbook */
.wishes-section { background: #f7ead5 url("optimized/paper.webp") center / cover; padding: clamp(64px, 7vw, 110px) clamp(26px, 7vw, 110px); color: #482620; scroll-margin-top: 20px; }
.wishes-content { max-width: 1230px; margin: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); align-items: center; gap: clamp(40px, 7vw, 110px); }
.wishes-form-area { max-width: 510px; width: 100%; justify-self: center; }
.wishes-kicker, .wishes-display-head { font: 600 11px/1.3 'DM Sans', sans-serif; letter-spacing: .16em; color: #9b372b; }
.wishes-form-area h2 { font: 400 clamp(42px, 4.8vw, 62px)/1.15 'Bodoni Moda', serif; letter-spacing: -.03em; margin: 14px 0 12px; }
.wishes-intro { font-size: 16px; margin: 0 0 26px; }
#wishes-form { display: grid; gap: 9px; }
#wishes-form label { font: 600 12px 'DM Sans', sans-serif; letter-spacing: .04em; margin-top: 8px; }
#wishes-form input, #wishes-form textarea { width: 100%; border: 1px solid #c6ab87; border-radius: 2px; background: rgba(255, 251, 241, .82); color: #482620; padding: 14px 15px; font: 16px/1.5 'DM Sans', sans-serif; }
#wishes-form textarea { resize: vertical; min-height: 110px; }
#wishes-form :is(input,textarea):focus-visible, .wishes-display button:focus-visible { outline: 3px solid #ae6550; outline-offset: 2px; }
#wishes-form > button { border: 0; background: var(--preview-deep, #69251f); color: var(--preview-paper, #faf6f0); padding: 15px 20px; margin-top: 8px; width: fit-content; font: 600 12px 'DM Sans', sans-serif; text-transform: uppercase; letter-spacing: .1em; cursor: pointer; }
#wishes-form > button span { margin-left: 20px; font-size: 16px; }
#wishes-form > button:disabled { opacity: .6; cursor: wait; }
.wish-status { font: 14px/1.5 'DM Sans', sans-serif; min-height: 1.5em; margin: 0; }
.wishes-display { border-top: 1px solid #cbb18e; margin-top: 22px; padding-top: 20px; }
.wishes-display-head { display: flex; align-items: center; justify-content: space-between; }
.wishes-display-head div { display: flex; gap: 8px; }
.wishes-display button { background: transparent; border: 1px solid #b79269; color: #482620; width: 35px; height: 35px; cursor: pointer; font-size: 16px; }
.wishes-display blockquote { margin: 14px 0 7px; font: italic 22px/1.4 'Cormorant Garamond', serif; }
#wish-author { font: 12px 'DM Sans', sans-serif; margin: 0; color: #745244; }
.wishes-art { margin: 0; width: 100%; max-width: 560px; justify-self: center; }
.wishes-art img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; mask-image: radial-gradient(ellipse, #000 57%, transparent 79%); }
@media (max-width: 760px) { .wishes-section { padding: 58px 24px 44px; } .wishes-content { grid-template-columns: 1fr; gap: 20px; } .wishes-form-area h2 { font-size: 42px; } .wishes-art { max-width: 390px; } }

/* Readable labels and comfortable controls */
.wishes-display button { width: 44px; height: 44px; }
.venue .room { font-size: 11px; }
.wishes-art img { mask-image: radial-gradient(ellipse, #000 48%, transparent 71%); }
/* A quiet visual cue that a painted frame can be opened. */
