/* 10 Nov premium finish (review candidate only). Loaded last, after
   sketch-revision-9nov.css. Wording, names, date, times, venue, links, artwork
   and RSVP behaviour are unchanged; this layer sets the materials, typography,
   composition and the choreography of the opening and the page.

   Direction: one ivory paper card from envelope to blessings. Ochre ink and
   gold leaf are the only accents; the reply card is the stationery's own cusped
   arch in dark leather; motion happens at moments (the opening, arrivals, two
   petal showers) and then rests. Every hidden starting state for motion is gated
   on html.motion-on, so reduced motion and the pause control show everything at
   once, and nothing is hidden without JavaScript or in print. */

:root{
  --ease-out:cubic-bezier(.22,.61,.36,1);
  --ease-silk:cubic-bezier(.45,.05,.2,1);
  --kicker-ink:#8a5d1d;
  --prose-ink:#4b3d2b;
}

/* The AVIF <picture> wrappers add no box of their own; the images keep every existing rule. */
.couple-illustration picture,.generated-calendar picture,.venue-illustration picture,.identity-frame picture{display:contents}

/* ---------- One continuous paper ground ---------- */
/* One plain ivory ground from the couple to the footer: no section starts or stops
   a texture (the old Save the date texture had visible top and bottom edges). The
   envelope keeps its paper and the reply card its leather; the page itself is calm. */
#top,#top .hero__details,#celebration,#venue,#venue .wrap,#venue .venue__art,#venue .venue-illustration{background:transparent}
#blessings{background-color:transparent}

/* ---------- Shared type ---------- */
/* Kickers share the opener's tracked capitals; the invitation sentences share one
   italic serif voice (the couple fold and the blessings). */
main .label{letter-spacing:.28em;padding-left:.28em;color:var(--kicker-ink);margin-bottom:14px}
main h2,.type-trial-fairmont main h2{text-wrap:balance}
#top .hero__invite{font:italic 400 clamp(16.5px,4.7vw,19px)/1.55 var(--display);font-optical-sizing:auto;letter-spacing:.01em;color:var(--prose-ink);gap:1px}
.blessings .blessings__text{font:italic 400 clamp(16.5px,4.6vw,18px)/1.6 var(--display);font-optical-sizing:auto;color:var(--prose-ink)}

/* ---------- Buttons ---------- */
/* Deep ochre ink for the primary action (7:1 on ivory, the previous ochre fill was
   about 3.3:1); outlined actions carry a fine inner gilt rule like engraved card stock. */
.button--primary,.cta-row .button--primary{background-color:#7a4a14;border-color:#7a4a14;color:#fff8ea;box-shadow:inset 0 1px 0 rgba(255,228,176,.22)}
.button--outline,.ornamental-actions .button{background-color:transparent;color:#5b3d15;border-color:#b18035;outline:1px solid rgba(177,128,53,.26);outline-offset:-5px}
.button{letter-spacing:.04em}
.button:hover,.button:focus-visible,.ornamental-actions .button:hover,.ornamental-actions .button:focus-visible{outline-color:transparent}
.button:focus-visible,.ornamental-actions .button:focus-visible{outline:2px solid #6a4d20;outline-offset:4px}

/* ---------- Opener ---------- */
/* Lighter files for the same paper and seal (the approved PNGs remain as originals). */
.envelope__back,.envelope__side,.envelope__front{background-image:url('/assets/art/paper-ivory-v11-768.jpg')}
.envelope__seal{background-image:url('/assets/art/seal-champagne-v11-256.png')}
.envelope-summary{background-color:var(--ivory);background-image:radial-gradient(ellipse 85% 70% at 50% 46%,rgba(255,253,247,0) 55%,rgba(238,222,190,.34))}
.envelope__back{box-shadow:0 1px 2px rgba(92,70,38,.12),0 26px 46px -22px rgba(92,70,38,.42),inset -3px 0 5px #9f8e6820}
/* A glint crosses the wax seal once, then rests (over by 3.2s after load). */
.envelope__seal:after{
  content:'';position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(115deg,rgba(255,248,226,0) 40%,rgba(255,248,226,.8) 50%,rgba(255,248,226,0) 60%) 100% 0/300% 100% no-repeat;
  -webkit-mask:url('/assets/art/seal-champagne-v11-256.png') center/contain no-repeat;mask:url('/assets/art/seal-champagne-v11-256.png') center/contain no-repeat;
  mix-blend-mode:screen;opacity:.85
}
html.motion-on .envelope__seal:after{animation:seal-glint 2.4s var(--ease-silk) .8s 1 both}
html.motion-on .envelope__tap{animation:tap-breathe 1.4s ease-in-out 1.2s 2 both}
/* On the tap: the seal lifts away and the words around the envelope fade (not cut). */
.envelope-label,.opening-names,.opening-date,.envelope__tap{transition:opacity .3s ease}
body[data-opening]:not([data-opening=closed]) .envelope-label,
body[data-opening]:not([data-opening=closed]) .opening-names,
body[data-opening]:not([data-opening=closed]) .opening-date,
body[data-opening]:not([data-opening=closed]) .envelope__tap{transition:opacity .55s ease,visibility 0s linear .55s}
body[data-opening]:not([data-opening=closed]) .envelope__seal{opacity:0;transform:translateY(-8px) scale(1.12);transition:opacity .45s ease .05s,transform .6s var(--ease-out)}
body[data-motion=reduced] .envelope__seal{transform:none}

/* The dissolve: once the envelope stands open, its card rises a little while the
   envelope falls away and the opener fades out. The open poses are held so no flap
   swings shut on the way out. A handoff, not a cross-fade (10 Nov polish): the opener
   is gone by 0.42s and only then does the page beneath arrive, so the card's own names
   and hotel are never seen over the page's names and couple. */
body.opening-dissolve[data-opening=growing] .envelope-summary__inner{visibility:visible}
body.opening-dissolve[data-opening=growing] #invitation-shell>main{visibility:visible;opacity:0}
html.motion-on body.opening-dissolve[data-opening=growing] #invitation-shell>main{animation:page-arrive .45s linear .42s both}
body.opening-dissolve[data-opening=growing] .envelope-summary{opacity:0;transition:opacity .42s cubic-bezier(.4,0,1,1)}
body.opening-dissolve[data-opening=growing] .envelope__back,
body.opening-dissolve[data-opening=growing] .envelope__side,
body.opening-dissolve[data-opening=growing] .envelope__front,
body.opening-dissolve[data-opening=growing] .envelope__flap{opacity:0;transition:opacity .5s ease}
body.opening-dissolve[data-opening=growing] .envelope__flap{transform:perspective(900px) rotateX(166deg)}
body.opening-dissolve[data-opening=growing] .envelope__front{transform:perspective(900px) rotateX(-164deg)}
body.opening-dissolve[data-opening=growing] .envelope__side--left{transform:perspective(900px) rotateY(-166deg)}
body.opening-dissolve[data-opening=growing] .envelope__side--right{transform:perspective(900px) rotateY(166deg)}
body.opening-dissolve[data-opening=growing] .envelope__card{transform:translateY(-4%) scale(1.04);transition:transform .7s var(--ease-out)}
@media (max-width:600px){
  body.opening-dissolve[data-opening=growing] .envelope__flap{transform:scaleY(-.28)}
  body.opening-dissolve[data-opening=growing] .envelope__front{transform:scaleY(-.23)}
  body.opening-dissolve[data-opening=growing] .envelope__side--left,
  body.opening-dissolve[data-opening=growing] .envelope__side--right{transform:scaleX(-.13)}
}
body[data-motion=reduced].opening-dissolve[data-opening=growing] .envelope__card{transform:none;transition:none}
/* Motion off (system setting or the guest's choice): the opener fades out over a
   plain page, then the page appears with a short fade. No rise, no overlap. */
body[data-motion=reduced].opening-dissolve[data-opening=growing] .envelope-summary{transition:opacity .3s linear}
body[data-motion=reduced] #invitation-shell>main{transition:opacity .25s linear}
/* With the system's reduced-motion setting no fades run at all, so the card is simply
   held until the page is ready and then the page replaces it: no blank beat. */
@media (prefers-reduced-motion:reduce){html:not(.motion-on) body.opening-dissolve[data-opening=growing] .envelope-summary{opacity:1}}

/* ---------- Couple fold ---------- */
#top .couple-illustration{width:min(100%,400px);max-width:none}
@media (min-width:601px){#top .couple-illustration{width:min(100%,460px)}}
/* The names (10 Nov motion revision): deep ochre ink in solid colour, with a fine keyline
   for the script's hairlines and a hairline of light beneath. No gradient is clipped to
   the letters any more (Safari can paint such a gradient as a rectangle while the names
   animate), and no focus outline is drawn when the opener moves focus to the heading
   (it is a target for screen readers, not a control). Petals pass behind the names. */
#couple-names,#blessings .families__name{
  background:none;-webkit-text-fill-color:currentColor;filter:none;
  color:#6c3f0e;-webkit-text-stroke:.016em rgba(108,63,14,.8);text-shadow:0 1px 0 rgba(255,251,240,.9)
}
#couple-names span{color:#9a6a2c;-webkit-text-stroke:0}
#couple-names{position:relative;z-index:160}
#couple-names:focus,#couple-names:focus-visible{outline:none}
#blessings .families__name{padding:.04em .32em .1em;margin-inline:auto}
/* (Layered revision, 10 Nov: the coded flower-spray backdrop behind the names was rejected and removed;
   the couple fold is now composed in layered-artwork-10nov.css.) */
/* Arrival choreography, gated on motion: names, then the illustration, then the two
   lines, then the divider draws outward from its centre. */
html.motion-on body:is([data-opening=closed],[data-opening=top-bottom],[data-opening=left-right]) #couple-names{opacity:0;clip-path:inset(-.5em 100% -.5em -.5em)}
html.motion-on body:is([data-opening=closed],[data-opening=top-bottom],[data-opening=left-right]) #top .invite-line{opacity:0;transform:translateY(8px)}
html.motion-on body:is([data-opening=closed],[data-opening=top-bottom],[data-opening=left-right]) #top:after,
html.motion-on body:is([data-opening=closed],[data-opening=top-bottom],[data-opening=left-right]) #top .hero__details:after{clip-path:inset(0 50% 0 50%)}
html.motion-on #couple-names{clip-path:inset(-.5em -.5em -.5em -.5em);transition:opacity .5s var(--ease-out) .42s,clip-path 1.3s cubic-bezier(.45,.05,.25,1) .42s}
html.motion-on #top .invite-line{transition:opacity 1s var(--ease-out) 1.25s,transform 1.2s var(--ease-out) 1.25s}
html.motion-on #top .invite-line+.invite-line{transition-delay:1.45s}
html.motion-on #top:after,html.motion-on #top .hero__details:after{clip-path:inset(0 0 0 0);transition:clip-path 1.4s var(--ease-silk) 1.55s}
html.motion-on.opening-ready #top .couple-illustration{transform:translateY(16px) scale(.985);transition:opacity 1.3s var(--ease-out) .52s,transform 1.6s var(--ease-out) .52s}
html.motion-on.opening-ready #top .couple-illustration.reveal-visible{transform:none}

/* ---------- Scroll arrivals ---------- */
/* Blocks rise softly into place as they enter; headings cascade line by line. */
html.motion-on.motion-ready .reveal{transition:opacity 1s var(--ease-out),transform 1.2s var(--ease-out)}
html.motion-on.motion-ready .reveal:not(.is-visible):not(.section-head):not(.split__head):not(.rsvp__intro):not(.blessings__copy){opacity:0;transform:translateY(22px)}
html.motion-on.motion-ready :is(.section-head,.split__head,.rsvp__intro,.blessings__copy)>*{transition:opacity .9s var(--ease-out),transform 1.1s var(--ease-out)}
html.motion-on.motion-ready :is(.section-head,.split__head,.rsvp__intro,.blessings__copy):not(.is-visible)>*{opacity:0;transform:translateY(14px)}
html.motion-on.motion-ready :is(.section-head,.split__head,.rsvp__intro,.blessings__copy)>:nth-child(2){transition-delay:.12s}
html.motion-on.motion-ready :is(.section-head,.split__head,.rsvp__intro,.blessings__copy)>:nth-child(3){transition-delay:.24s}
html.motion-on.motion-ready :is(.section-head,.split__head,.rsvp__intro,.blessings__copy)>:nth-child(n+4){transition-delay:.36s}
/* The calendar settles onto the page; the hotel drawing eases in beside its text. */
html.motion-on.motion-ready #celebration .generated-calendar img{transition:transform 1.7s var(--ease-out) .1s}
html.motion-on.motion-ready #celebration .day__body:not(.is-visible) .generated-calendar img{transform:rotate(-3deg) scale(.96)}
html.motion-on.motion-ready #venue .venue__art--bleed{transition:opacity 1.4s var(--ease-out) .15s,transform 1.9s var(--ease-out) .15s}
html.motion-on.motion-ready #venue:not(:has(.split__body.is-visible)) .venue__art--bleed{opacity:0;transform:translateY(18px)}
/* Section dividers draw outward once the section's last block has arrived. */
html.motion-on.motion-ready main>.section:after{clip-path:inset(0 0 0 0);transition:clip-path 1.5s var(--ease-silk) .3s}
html.motion-on.motion-ready main>.section:has(.reveal:not(.is-visible)):after{clip-path:inset(0 50% 0 50%)}
/* Shri Ganesh's warm glow blooms as the blessing arrives. */
#blessings:before{transition:opacity 1.8s var(--ease-out) .2s}
html.motion-on.motion-ready #blessings:has(.sacred:not(.is-visible)):before{opacity:0}

/* ---------- Venue ---------- */
@media (min-width:880px){
  #venue{padding-bottom:56px}
  #venue .label{padding-left:0}
  #venue .venue__address{text-wrap:balance}
}

/* ---------- The reply card ---------- */
/* RSVP is no longer a full-width brown band with gradient edges: it is a card laid
   on the paper, crowned with the stationery's own cusped arch (the arch of the card
   inside the envelope), in dark leather with a gilt double rule and the envelope's
   lotus seal at its apex. The page stays ivory on every side, so there is no
   tonal band to blend and no seam. */
#rsvp{background:none;color:inherit;padding-top:56px;padding-bottom:0}
#rsvp .rsvp__inner{--card-w:min(600px,calc(100vw - 32px))}
@supports (width:1cqw){
  #rsvp{container-type:inline-size}
  #rsvp .rsvp__inner{--card-w:min(600px,calc(100cqw - 32px))}
}
#rsvp .rsvp__inner{
  --arch-h:calc(var(--card-w) * .3);--foot-h:calc(var(--card-w) * .1);
  position:relative;isolation:isolate;box-sizing:border-box;width:var(--card-w);max-width:none;margin:0 auto;
  padding:calc(var(--arch-h) * .5 + 30px) clamp(22px,6vw,56px) clamp(48px,9vw,68px);
  color:var(--rsvp-light);
  box-shadow:0 40px 36px -38px rgba(58,40,22,.34),0 14px 18px -16px rgba(58,40,22,.2)
}
#rsvp .rsvp__inner:before,#rsvp .rsvp__inner:after{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none}
#rsvp .rsvp__inner:before{
  background:radial-gradient(120% 55% at 50% 0,rgba(255,214,150,.12),rgba(255,214,150,0) 72%),url('/assets/ornament/leather-v21.svg') 0 0/128px 128px,var(--rsvp-ground);
  -webkit-mask:url('/assets/ornament/reply-arch-mask-v22.svg') 50% 0/100% auto no-repeat,linear-gradient(#000,#000) 0 calc(var(--arch-h) - 2px)/100% 100% no-repeat;
  mask:url('/assets/ornament/reply-arch-mask-v22.svg') 50% 0/100% auto no-repeat,linear-gradient(#000,#000) 0 calc(var(--arch-h) - 2px)/100% 100% no-repeat
}
#rsvp .rsvp__inner:after{
  background:
    url('/assets/ornament/reply-arch-line-v22.svg') 50% 0/100% auto no-repeat,
    url('/assets/ornament/reply-side-line-v22.svg') 0 calc(var(--arch-h) - 2px)/100% calc(100% - var(--arch-h) - var(--foot-h) + 4px) no-repeat,
    url('/assets/ornament/reply-foot-line-v22.svg') 50% 100%/100% auto no-repeat
}
/* No seal above the reply card (10 Nov revision). As the card arrives, its gilt rules
   draw in from the arch's apex, outward and down. */
html.motion-on.motion-ready #rsvp .rsvp__inner:after{clip-path:inset(0 0 0 0);transition:clip-path 1.7s var(--ease-silk) .1s}
html.motion-on.motion-ready #rsvp:has(.rsvp__intro:not(.is-visible)) .rsvp__inner:after{clip-path:inset(0 50% 100% 50%)}
#rsvp .rsvp__intro{margin-top:0}
#rsvp .label{color:#e6c487}
#rsvp h2{color:#f7e8cb}
#rsvp .rsvp__intro>p:last-child{color:#efdcc0}
#rsvp .rsvp-form .field__input{box-shadow:inset 0 1px 3px rgba(20,12,4,.28)}
#rsvp #rsvp-submit:disabled{box-shadow:none}
@media (max-width:600px){
  #rsvp{padding-top:40px}
  #rsvp .rsvp__inner{padding-inline:clamp(18px,6vw,28px)}
}
@media (max-width:300px){
  #rsvp .rsvp__inner{--card-w:calc(100vw - 16px);padding-inline:12px}
  /* "Please choose" in full (it was cut to "Please choo…"): the chevron tucks closer to
     the edge and the text starts a little nearer the border, at the same type size. */
  #rsvp .rsvp-form select.field__input{padding-left:11px;padding-right:28px;background-position:calc(100% - 9px) 50%}
  @supports (width:1cqw){#rsvp .rsvp__inner{--card-w:calc(100cqw - 16px)}}
}

/* ---------- Blessings ---------- */
#blessings{padding-top:clamp(64px,9vw,104px)}
@media (max-width:600px){#blessings{padding-top:48px}}
#blessings .families__rel{font:500 11px/1.5 var(--body);letter-spacing:.24em;padding-left:.24em;text-transform:uppercase;color:var(--kicker-ink);margin-bottom:6px}
#blessings .families__parents{max-width:none;text-wrap:balance}
#blessings .families{width:min(560px,100%)}
/* (Layered revision, 10 Nov: the wide three-column families card, which stretched its frame to
   860px, is replaced by one narrow centred card at every width in layered-artwork-10nov.css.) */
/* Very narrow (a phone at 200% zoom): the card gives its side room to the script names. */
@media (max-width:300px){
  #blessings .families{padding-inline:8px}
  #blessings .families__name{padding-inline:.1em}
}
html.motion-on.motion-ready .families__name{clip-path:inset(-.5em -.5em -.5em -.5em);transition:clip-path 1.3s cubic-bezier(.45,.05,.25,1) .45s}
html.motion-on.motion-ready .families:not(.is-visible) .families__name{clip-path:inset(-.5em 100% -.5em -.5em)}
html.motion-on.motion-ready .families__one+.families__with+.families__one .families__name{transition-delay:1.05s}

/* ---------- Footer ---------- */
.site-footer .footer-couple{font:400 15px/1.5 var(--title-serif);letter-spacing:.3em;padding-left:.3em;color:#5b452a}


/* ---------- Shri Ganesh ---------- */
/* Shri Ganesh's blessing lift now starts when the image itself is in view (layered-artwork-10nov.css
   and layered-motion-10nov.js). The mantra's lines still arrive from either side with the block. */
.prayer-lockup__ganesha{filter:drop-shadow(0 0 4px rgba(236,176,86,.2))}
html.motion-on.motion-ready .sacred.is-visible .prayer-lockup__title{animation:mantra-down .9s var(--ease-out) .1s 1 both}
html.motion-on.motion-ready .sacred.is-visible .prayer-lockup__left p{animation:mantra-left 1s var(--ease-out) .55s 1 both}
html.motion-on.motion-ready .sacred.is-visible .prayer-lockup__right p{animation:mantra-right 1s var(--ease-out) .55s 1 both}
html.motion-on.motion-ready .sacred.is-visible :is(.prayer-lockup__left,.prayer-lockup__right) p+p{animation-delay:.75s}

@keyframes mantra-down{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
@keyframes mantra-left{from{opacity:0;transform:translateX(-12px)}to{opacity:1;transform:none}}
@keyframes mantra-right{from{opacity:0;transform:translateX(12px)}to{opacity:1;transform:none}}
@keyframes seal-glint{0%{background-position:100% 0}60%,100%{background-position:0% 0}}
@keyframes tap-breathe{0%,100%{opacity:1}50%{opacity:.62}}
@keyframes page-arrive{from{opacity:0}to{opacity:1}}

@media print{
  .reveal,.reveal>*,#couple-names,#top .invite-line,#venue .venue__art--bleed{opacity:1!important;transform:none!important}
  main>.section:after,#top:after{clip-path:none!important}
  #rsvp .rsvp__inner:before,#rsvp .rsvp__inner:after{display:none!important}
  #couple-names,.families__name,#rsvp .rsvp__inner:after{clip-path:none!important}
  #rsvp .rsvp__inner{width:auto;box-shadow:none;color:#333}
}

/* Native, wrapping choices keep both full names readable at 200% zoom.
   Same two-field form and values; no JavaScript is needed for keyboard selection. */
#rsvp .field--side{border:0;margin:0;padding:0;min-width:0}
#rsvp .field--side legend{padding:0;margin-bottom:10px}
#rsvp .side-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#rsvp .side-choice{display:flex;align-items:center;gap:10px;min-width:0;box-sizing:border-box;padding:12px;border:1px solid #b69a6d;border-radius:4px;background:rgba(255,239,210,.04);color:#f7e8cb;font:400 16px/1.5 var(--body);cursor:pointer}
#rsvp .side-choice input{flex:0 0 auto;width:18px;height:18px;margin:0;accent-color:#d7b16d}
#rsvp .side-choice span{min-width:0;overflow-wrap:anywhere}
#rsvp .side-choice:has(input:checked){border-color:#e6c487;background:rgba(230,196,135,.14)}
#rsvp .side-choice:focus-within{outline:2px solid #f4d58c;outline-offset:3px}
#rsvp .field--side[aria-invalid="true"] .side-choice{border-color:#ffc4b2}
@media (max-width:600px){#rsvp .side-choices{grid-template-columns:minmax(0,1fr)}}
@media (forced-colors:active){#rsvp .side-choice{border-color:ButtonText}#rsvp .side-choice:focus-within{outline-color:Highlight}}

/* (The 10 Nov experimental cover/footer viewport block moved to layered-artwork-10nov.css and was reworked there.) */
