/* A scroll through a celebration: living scenes, open stationery, useful details.
   Scoped below the approved opening and hero. Scenery stays photographic. */
.invitation-section {
  position: relative;
  min-height: 0;
  padding: 76px 20px 68px;
}
.invitation-section > .section-heading h2 { color: var(--ruby); }
.folio-scene { width: min(86vw,430px); margin-top: 35px; }
.folio { aspect-ratio: auto; }
.invitation-card {
  position: relative;
  min-height: 540px;
  padding: 34px 28px 26px;
  overflow: visible;
  justify-content: center;
}
.invitation-card h2 {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px 12px;
  font-size: clamp(38px,11vw,52px);
  line-height: 1.3;
  margin: 17px 0 20px;
}
.invitation-card h2 em { font-size: 28px; }
.invitation-card .blessing { font-size: 17px; line-height: 1.45; }
.invitation-card > .eyebrow { font-size: 9px; }
.families { gap: 20px; margin-bottom: 18px; }
.families .label { font-size: 8px; }
.families p { font-size: 16px; line-height: 1.35; }
.invite-request { font-size: 18px; line-height: 1.45; }
.date-block { margin: 19px 0 2px; font-size: 20px; }
.date-block p + p { font-size: 17px; }
.invitation-card .text-button { font-size: 10px; min-height: 44px; margin-top: 15px; }
.folio-door { transition-duration: 1.65s; }
.folio-scene.is-open .folio-left { transform: rotateY(-108deg); }
.folio-scene.is-open .folio-right { transform: rotateY(108deg); }
.letter-actions { min-height: 0; margin-top: 25px; }
.letter-actions .small { font: italic 17px/1.5 'Cormorant Garamond',Georgia,serif; color: var(--ruby); }
html[data-sargam-chapters="ready"] .letter-actions > button { font-size: 9px; }
html[data-sargam-chapters="ready"] #skip-letter { display: none; }
html[data-sargam-chapters="ready"] #open-letter,
html[data-sargam-chapters="ready"] #replay-letter { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; overflow: hidden; clip-path: inset(50%); }
html[data-sargam-chapters="ready"] #open-letter:focus-visible,
html[data-sargam-chapters="ready"] #replay-letter:focus-visible { position: static; width: auto; height: auto; padding: 12px; min-height: 44px; clip-path: none; }

.celebrations { position: relative; background: #f4ece1; }
.celebrations-heading { padding: 64px 24px 56px; background: url('assets/silk-wide.webp') center/cover; }
.celebrations-heading h2 { font-size: clamp(37px,4.4vw,65px); line-height: 1.08; color: var(--ruby); }
.celebrations-heading > p:last-child { margin-top: 20px; font-size: 20px; color: #645447; }
.event-chapter {
  --event-ink: #344d3c;
  --event-ground: #f0eee4;
  position: relative;
  isolation: isolate;
  background: var(--event-ground);
  color: #49392b;
  scroll-margin-top: 0;
}
.event-chapter[data-scene="sangeet"] { --event-ink: #732844; --event-ground: #f2e5de; }
.event-chapter[data-scene="vows"] { --event-ink: #781839; --event-ground: #faf0df; }
.event-media { position: relative; height: clamp(245px,43svh,385px); overflow: hidden; background: #d5c3a4; }
.event-media picture { position: absolute; inset: 0; display: block; }
.event-chapter-image,.event-chapter-film { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 47%; transform: none; }
.event-chapter-film { opacity: 0; transition: opacity .55s ease; }
.event-chapter-film.ready { opacity: 1; }
.event-copy { position: relative; z-index: 1; padding: 30px 28px 62px; text-align: center; background: var(--event-ground); }
.event-copy,.guest-note-copy { min-width: 0; overflow-wrap: anywhere; }
.event-chapter-number { font: italic 24px/1 'Cormorant Garamond',Georgia,serif; color: #9d7c49; margin: 0 0 14px; }
.event-chapter-date { display: flex; justify-content: center; flex-wrap: wrap; gap: 5px 12px; color: var(--event-ink); font: 11px/1.6 'Jost',sans-serif; letter-spacing: .025em; }
.event-chapter-time { border-left: 1px solid #b29a76; padding-left: 12px; }
.event-chapter-title { font: italic 400 clamp(42px,11vw,58px)/1.04 'Cormorant Garamond',Georgia,serif; color: var(--event-ink); margin: 14px auto 12px; max-width: 520px; text-wrap: balance; }
.event-chapter-venue { font-size: 23px; line-height: 1.25; margin: 0; }
.event-chapter-description { font-size: 20px; line-height: 1.45; max-width: 360px; margin: 19px auto; text-wrap: pretty; }
.event-attire { margin: 21px auto 4px; }
.event-attire-label { display: block; font: 9px/1.5 'Jost',sans-serif; letter-spacing: .07em; text-transform: uppercase; color: #73624e; }
.event-attire p { font-size: 18px; font-style: italic; line-height: 1.4; color: var(--event-ink); margin-top: 4px; }
.event-chapter-map { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 8px; color: var(--event-ink); font: 11px/1.5 'Jost',sans-serif; text-decoration: underline; text-underline-offset: 6px; }
.event-chapter-map::after { content: '↗'; text-decoration: none; font-size: 16px; }

/* A quieter page between the living celebrations and the existing photo album. */
.story { background: #f4ebdd url('assets/silk-wide.webp') center/cover; padding-block: 90px; }
.story-letter h2 { color: var(--ruby); }
.story-portrait:hover { transform: rotate(-2deg); }
.story-copy > p:first-child { line-height: 1.55; }
.memory-tags { gap: 8px 18px; }
.memory-tags span { color: #64715b; font-size: 10px; }

.guest-journey { position: relative; padding: 75px 0 0; color: #463929; background: #f6edde url('assets/paper-texture.webp') center/550px; }
.guest-heading { padding: 0 27px 44px; max-width: 670px; margin: auto; }
.guest-heading h2 { font: italic 400 clamp(40px,5vw,65px)/1.08 'Cormorant Garamond',Georgia,serif; color: var(--ruby); text-wrap: balance; }
.guest-heading > p:last-child { font-size: 21px; line-height: 1.5; margin-top: 24px; }
.venue-arrival { max-width: 1200px; margin: auto; }
.venue-portrait { display: block; height: 320px; width: 100%; overflow: hidden; }
.venue-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.guest-journey .venue-copy { padding: 35px 27px 45px; margin: 0; text-align: center; }
.guest-journey .venue-copy h3 { font-size: 32px; line-height: 1.15; color: #365241; margin: 13px 0; }
.guest-journey .venue-copy p:not(.eyebrow) { font-size: 18px; line-height: 1.5; }
.guest-journey .venue-copy .text-button { margin-top: 12px; font-size: 11px; color: #365241; text-decoration: underline; text-underline-offset: 6px; }
.guest-guide { max-width: 1040px; margin: 0 auto; padding: 0 28px 65px; }
.guest-note { position: relative; padding: 30px 0; border-top: 1px solid #a7834438; display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 0 14px; align-items: start; }
.guest-note-number { color: #a58148; font: italic 23px/1.3 'Cormorant Garamond',Georgia,serif; padding-top: 3px; }
.guest-note h3 { font: 400 29px/1.2 'Cormorant Garamond',Georgia,serif; color: var(--ruby); margin: 0 0 12px; }
.guest-note p { font-size: 19px; line-height: 1.5; margin: 0; text-wrap: pretty; }
.guest-note-attire { padding-top: 0; border: 0; }
.guest-attire-art { grid-column: 1/-1; display: block; width: min(75%,280px); height: 235px; object-fit: contain; margin: 0 auto 20px; }
.guest-note-attire .guest-note-number { padding-top: 4px; }
.guest-note-attire .guest-note-copy { align-self: center; }
.countdown { min-height: 0; padding-block: 70px 75px; background: #ede3d2 url('assets/silk-wide.webp') center/cover; }
.countdown h2 { color: var(--ruby); }

@media (min-width:900px), (min-width:700px) and (orientation:landscape) {
  .invitation-section { padding-block: 85px 80px; }
  .celebrations-heading { padding-block: 85px 65px; }
  .event-chapter { display: grid; grid-template-columns: 1.12fr 1fr; min-height: min(85svh,790px); }
  .event-media { height: 100%; min-height: 610px; position: relative; }
  .event-chapter-image,.event-chapter-film { object-position: 82% center; }
  .event-chapter:nth-child(even) .event-media { order: 2; }
  .event-copy { padding: 50px clamp(32px,5vw,95px); display: flex; flex-direction: column; justify-content: center; align-items: center; }
  .event-chapter-title { font-size: clamp(43px,4.8vw,70px); }
  .event-chapter-description { font-size: 23px; max-width: 400px; }
  .event-chapter-venue { font-size: 26px; }
  .event-chapter-number { font-size: 28px; margin-bottom: 23px; }
  .event-chapter-date { font-size: 12px; }
  .event-attire { margin-top: 23px; }
  .event-attire p { font-size: 20px; }
  .guest-journey { padding-top: 95px; }
  .guest-heading { padding-bottom: 60px; }
  .venue-arrival { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; padding: 0 50px; gap: 50px; }
  .venue-portrait { height: 380px; }
  .guest-journey .venue-copy { padding-inline: 0; text-align: left; }
  .guest-journey .venue-copy h3 { font-size: 42px; }
  .guest-guide { padding: 35px 50px 85px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 70px; }
  .guest-note { padding-block: 32px; }
  .guest-note-attire { grid-column: 1/-1; grid-template-columns: 230px 30px minmax(0,1fr); gap: 20px; align-items: center; border-top: 1px solid #a7834438; }
  .guest-attire-art { grid-column: auto; width: 230px; height: 235px; margin: 0; }
  .guest-note-attire .guest-note-number { align-self: center; }
  .guest-note-attire .guest-note-copy { max-width: 560px; }
}
@media (min-width:700px) and (orientation:landscape) and (max-height:600px) {
  .event-media { min-height: 550px; }
  .event-copy { padding: 30px; }
  .event-chapter-title { font-size: 43px; }
  .event-chapter-description { font-size: 20px; }
  .event-chapter-number { margin-bottom: 15px; }
}
@media (max-width:359px) {
  .invitation-section { padding-inline: 10px; }
  .invitation-card { padding: 27px 18px 22px; }
  .families p { font-size: 15px; }
  .invitation-card h2 { gap: 7px; font-size: 37px; }
  .event-copy { padding-inline: 23px; }
  .event-chapter-title { font-size: 39px; }
  .event-chapter-description { font-size: 19px; }
  .guest-guide { padding-inline: 23px; }
}
@media (prefers-reduced-motion:reduce) {
  .event-chapter-film { display: none; }
  .folio-door { transition: none; }
}
