/* 9 Nov revision (review candidate only). Loaded after sketch-revision-8nov.css.
   Artwork, verified names, date, venue, calendar and RSVP behaviour are unchanged;
   this layer arranges type, spacing, backdrops and decorative motion. Nothing is
   clipped. Follow-up c: only the couple fold is a full screen on phones; every
   other section takes its content's height with the ordinary section gap.
   10 Nov: premium-finish-10nov.css (loaded after this file) carries the finished
   materials, the reply card and the choreography; superseded rules were removed here. */

:root{
  --ochre-ink:#7a4a14;
  --title-serif:'Forum',Georgia,'Times New Roman',serif;
  --divider-room:56px;
  --rsvp-ground:#453424;
}

/* ---------- Opener ---------- */
/* The label sits at the top of the card, the date at the foot, with equal room
   above and below; the names and the envelope share the middle. */
.envelope-summary{padding:0 20px}
.envelope-summary__inner{
  box-sizing:border-box;min-height:100svh;margin-block:0;
  padding-block:clamp(28px,6svh,52px);
  justify-content:space-between;gap:14px
}
.envelope-label,.opening-date{
  font:500 11px/1.5 var(--body);letter-spacing:.32em;text-transform:uppercase;
  color:#79664f;margin:0;
  /* Tracking adds trailing space after the last letter; this re-centres the line. */
  padding-left:.32em
}
.opening-date sup{
  font-size:.62em;letter-spacing:.06em;text-transform:lowercase;
  vertical-align:.62em;line-height:0;margin-left:.04em;margin-right:.18em
}
.opening-stage{display:flex;flex-direction:column;align-items:center;width:100%}
.opening-names,.type-trial-fairmont .opening-names{margin:0;font-size:inherit;line-height:1;width:100%;max-width:100%}
.opening-names__arch{display:block;width:min(100%,340px);height:auto;margin:0 auto;overflow:visible}
.opening-names__arch text{font-family:var(--names);font-size:47px;fill:#4d4435}
.opening-names__arch .opening-names__amp{font-family:var(--display);font-style:italic;font-size:25px;fill:#a27329}
.opening-names__flat{display:none}
.envelope,
.envelope-summary .envelope{width:min(82vw,calc((100svh - 236px) / 1.5),330px);margin-top:10px}
/* Very narrow (e.g. 200% zoom): the arch would get small, so the names set flat and wrap. */
@media (max-width:300px){
  .opening-names__arch{display:none}
  /* (Selectors outrank the older ".opening-names>span" ampersand rule.) */
  .type-trial-fairmont .opening-names>.opening-names__flat{display:block;margin:0;font-family:var(--names);font-style:normal;font-size:clamp(32px,15vw,44px);line-height:1.15;letter-spacing:0;color:#4d4435;vertical-align:baseline;text-wrap:balance}
  .type-trial-fairmont .opening-names>.opening-names__flat>span{font-family:var(--display);font-style:italic;font-size:.55em;margin-inline:.12em;color:#a27329}
  .envelope,.envelope-summary .envelope{width:min(80vw,calc((100svh - 236px) / 1.5),300px)}
}

/* ---------- Couple fold ---------- */
/* Names, illustration, two lines, all on the page's centre line. */
#top{padding:var(--divider-room) 24px var(--divider-room);text-align:center;align-items:center}
.sketch-couple-heading{
  order:0;margin:0 auto 18px;text-align:center;
  font-size:clamp(40px,13.2vw,72px);line-height:1.12;
  color:var(--ochre-ink)
}
.sketch-couple-heading span{color:inherit;font-family:var(--display);font-style:italic;font-size:.5em;margin-inline:.14em;vertical-align:.12em}
/* Embossed warm material: an ochre gradient in the letters, a hairline of light
   below and a breath of shade above. Solid ochre wherever text clipping is missing. */
@supports ((-webkit-background-clip:text) or (background-clip:text)){
  .sketch-couple-heading{
    background:linear-gradient(176deg,#9c6524 0%,#7d4a12 38%,#6a3c0c 58%,#94612a 82%,#7a4a14 100%);
    /* Room for script swashes and the final i-dot, which overhang the text box;
       the gradient only paints inside the padding box. */
    padding:.12em .32em;margin:-.12em auto calc(18px - .12em);max-width:calc(100% + .64em);margin-inline:-.32em;justify-self:center;align-self:center;
    -webkit-background-clip:text;background-clip:text;
    -webkit-text-fill-color:transparent;
    -webkit-text-stroke:.012em rgba(106,60,12,.55);
    filter:drop-shadow(0 1px 0 rgba(255,251,240,.95)) drop-shadow(0 -.5px 0 rgba(90,52,12,.22))
  }
}
@media (forced-colors:active){
  .sketch-couple-heading{background:none;-webkit-text-fill-color:CanvasText;-webkit-text-stroke:0;filter:none;color:CanvasText}
}
/* Focus lands on the names after the envelope opens (they are not in the tab
   order); a light hairline marks it without boxing the names heavily. */
#couple-names:focus,#couple-names:focus-visible{outline:1px solid rgba(122,74,20,.4);outline-offset:2px;border-radius:6px}
#top .couple-illustration{margin:0 auto 18px;width:min(100%,380px)}
#top .couple-illustration img{display:block;width:100%;height:auto;margin-inline:auto}
#top .hero__details{width:100%;text-align:center}
#top .hero__invite{text-align:center;align-items:center}
#top .invite-line{text-align:center}

/* Equal breathing room on both sides of the divider into Save the date. */
#celebration{padding-top:var(--divider-room)}
#top .hero__details:after{bottom:-8px}

/* ---------- Section titles ---------- */
/* A sturdier, lower-contrast serif than the hairline display face. */
main h2,
.type-trial-fairmont main h2{
  font-family:var(--title-serif);font-weight:400;font-optical-sizing:auto;
  letter-spacing:.06em;line-height:1.15;color:#3f3527
}
main h2 .display-connector{font-family:var(--title-serif);font-style:normal;font-size:.82em;letter-spacing:.04em;color:#8a5a1c}
.rsvp h2,.type-trial-fairmont .rsvp h2{color:#f6e6c8}

/* ---------- Venue ---------- */
/* The hotel is a supporting illustration composed with the venue text: beside it
   on wide screens, beneath it (generous, edge to edge) on phones. It sits wholly
   on ivory; the change to the RSVP ground happens inside the RSVP section, so no
   tint ever lies over the building or the text. No ornament divider here: the
   tonal change marks the boundary. */
#venue{position:relative;padding-bottom:clamp(24px,4vw,40px)}
#venue>.wrap{width:100%}
#venue:after{content:none;display:none}
#venue .venue__art--bleed{
  display:block;width:100%;max-width:560px;margin:clamp(28px,5vw,44px) auto 0;padding:0;
  overflow:clip; /* the drawing and its arrival never widen the page */
  background:transparent;border:0;box-shadow:none
}
#venue .venue__art--bleed .venue-illustration{margin:0;padding:0;background:none;border:0;box-shadow:none}
/* Feathered on all sides so the drawing settles into the paper without a frame. */
#venue .venue__art--bleed img{
  display:block;width:100%;height:auto;margin:0;border-radius:0;
  -webkit-mask-image:linear-gradient(to right,transparent 0,#000 7%,#000 93%,transparent 100%),linear-gradient(to bottom,#000 86%,transparent 100%);
  -webkit-mask-composite:source-in;
  mask-image:linear-gradient(to right,transparent 0,#000 7%,#000 93%,transparent 100%),linear-gradient(to bottom,#000 86%,transparent 100%);
  mask-composite:intersect
}
/* Wide screens: text and actions on the left, the hotel on the right, centred
   together on the page as one composition. */
@media (min-width:880px){
  #venue{
    display:grid;grid-template-columns:minmax(0,400px) minmax(0,580px);
    justify-content:center;align-items:center;column-gap:clamp(48px,6vw,96px);
    padding-inline:clamp(32px,5vw,64px);padding-bottom:var(--divider-gap)
  }
  #venue>.wrap,#venue .split{margin:0;padding:0;max-width:none;text-align:left}
  #venue .split__body{margin-top:20px}
  #venue #venue-title{margin-inline:0;max-width:none}
  #venue .venue__address,#venue .venue__note{width:auto;margin-inline:0;max-width:34em}
  #venue .venue__address{display:block}
  #venue .cta-row{flex-direction:row;justify-content:flex-start;align-items:stretch;gap:12px;margin-top:24px}
  #venue .cta-row .button{flex:1 1 0;width:auto;min-width:0;max-width:none;padding-inline:14px}
  #venue .text-link{margin-top:14px}
  #venue .venue__art--bleed{max-width:none;margin:0}
}

/* ---------- Into the footer ---------- */
/* (10 Nov: the RSVP band and its tonal edges are replaced by the arched reply card
   in premium-finish-10nov.css, which sits on the paper with no band to blend.) */
#blessings{background-image:linear-gradient(to top,#f3ead8 0,rgba(243,234,216,0) 120px)}
.site-footer{border-top:0}

/* ---------- Blessings ---------- */
#blessings .sacred{margin:0 auto clamp(44px,11vw,72px)}
.blessings__copy{text-align:center;max-width:30em;margin-inline:auto}
.blessings .blessings__lead,
.type-trial-fairmont .blessings .blessings__lead{
  font:400 13px/1.6 var(--body);letter-spacing:.24em;padding-left:.24em;text-transform:uppercase;
  color:#7a5a2c;margin:0 0 10px
}
.blessings__elders{margin:0 0 14px;font:400 clamp(21px,5.6vw,26px)/1.35 var(--title-serif);letter-spacing:.02em;color:#3f3527;text-wrap:balance}
.blessings__elders strong{font-weight:400}
.blessings .blessings__text{margin:0 auto;max-width:none;font:400 16px/1.6 var(--body);color:#4d4435}
.blessings__line{display:block;text-wrap:balance}
/* The families card closes the section; the section's diamond divider and the
   footer follow at the ordinary section gap (no repeated portrait). */
#blessings{background-color:var(--ivory);position:relative}
/* A whisper of marigold warmth behind Shri Ganesh. */
#blessings:before{
  content:'';position:absolute;left:50%;top:72px;width:min(90vw,520px);height:280px;transform:translateX(-50%);
  /* closest-side: fully transparent at the box edges, so the glow has no visible rim. */
  background:radial-gradient(closest-side,rgba(236,170,72,.14),rgba(236,170,72,0));
  pointer-events:none;z-index:0
}
#blessings>.wrap{position:relative;z-index:1}

/* ---------- Footer ---------- */
.site-footer .footer-essential{font-size:10px;letter-spacing:.1em;line-height:1.6;color:#6e5a3e;max-width:none;text-wrap:balance}

/* ---------- Phones ---------- */
@media (max-width:600px){
  /* The couple fold takes its content's height (10 Nov polish): a forced full screen left
     200-300px of empty paper under the invitation lines on tall phones. The divider
     sits one --divider-room below the lines and one above the Save the date kicker,
     so the next section peeks into the first opened view and invites the scroll.
     72px above the names keeps them clear of the motion control in the corner. */
  #top{justify-content:flex-start;padding:72px 24px 0}
  #top .couple-illustration{margin-bottom:clamp(18px,2.6svh,28px)}
  #top .hero__details{margin-bottom:var(--divider-room)}
  #top .hero__details:after{content:none}
  #top:after{content:'';display:block;flex:none;width:min(240px,60%);height:16px;margin:0 auto;background:url('/assets/ornament/diamond-divider-v21.svg') center/100% 16px no-repeat;pointer-events:none}
  /* Venue: the hotel runs edge to edge beneath the text, generous but in proportion. */
  #venue{padding-bottom:16px}
  #venue .venue__art--bleed{max-width:none;margin-top:32px}
  /* Blessings: compact rhythm, no text shrunk; the ordinary section gap before the footer. */
  .blessings .blessings__lead,.type-trial-fairmont .blessings .blessings__lead{margin-bottom:8px}
  .blessings__elders{margin-bottom:10px}
  #blessings .families{margin-top:24px;padding-block:20px;gap:10px}
  #blessings .families__name{line-height:1.15}
}

/* ---------- Decorative motion ---------- */
.petal-layer{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:150}
body[data-opening]:not([data-opening=complete]) .petal-layer{z-index:250}

/* Decorative motion runs only while html.motion-on is set by petals-motion.js (on unless
   the system asks for reduced motion). There is no manual control, so nothing here loops:
   the couple's former endless breathing is replaced by one settle as the fold arrives. */
html.page-hidden *{animation-play-state:paused!important}
