@font-face {
  font-family: Reckless;
  src: url('assets/RecklessCondensedM-TRIAL-Regular.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url('assets/Manrope-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: #101729; color: #faf7ee; }
body { font-family: Manrope, sans-serif; font-weight: 400; }
.invitation {
  position: relative;
  /* The central actor's head is 47.2% down the source illustration. */
  --actor-head: 47.2%;
  --head-height: max(calc(86% - 14.3vw), calc(var(--masthead-compact) + 43%));
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  height: 100svh;
  min-height: 620px;
}
.theatre-background {
  position: absolute;
  z-index: -1;
  width: 100%;
  height: 111.365vw;
  top: var(--head-height);
  left: 50%;
  transform: translate(-50%, calc(0% - var(--actor-head)));
  background: url('assets/theatre-4k.webp?v=chair2') center / 100% 100% no-repeat;
}
:root {
  --masthead-inset: 4.5%;
  --masthead-compact: clamp(68px, 6.4vw, 90px);
}
html { scroll-padding-top: calc(var(--masthead-compact) + 18px); }
.masthead {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  height: var(--masthead-compact);
}
.masthead::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: rgb(12 18 32 / 94%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: opacity 260ms ease;
  pointer-events: none;
}
.masthead.is-scrolled::before { opacity: 1; }
.masthead-row {
  position: relative;
  height: 100%;
  margin-inline: var(--masthead-inset);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  justify-items: center;
  border-bottom: 1px solid rgb(250 247 238 / 36%);
}
.invitation-label { margin: 0; text-align: center; font-size: clamp(9px, .8vw, 16px); line-height: 1.25; letter-spacing: .06em; }
.theatre-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: inherit;
  text-decoration: none;
  font-family: Reckless, Georgia, serif;
  font-size: clamp(12px, 1.23vw, 19px);
  line-height: .94;
  position: relative;
  padding: .48em 0;
}
.theatre-link::before, .theatre-link::after {
  content: '';
  position: absolute;
  width: 76%;
  height: 1px;
  background: rgb(250 247 238 / 65%);
}
.theatre-link::before { top: 0; }
.theatre-link::after { bottom: 0; }
.theatre-link:focus-visible { outline: 1px solid currentColor; outline-offset: 8px; }
.sound {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4em;
  justify-content: center;
  padding: 0;
  border: 0;
  color: inherit;
  background: none;
  font: inherit;
  font-size: clamp(9px, .8vw, 16px);
  letter-spacing: .06em;
  opacity: 1;
  -webkit-text-fill-color: currentColor;
}
.sound { cursor: pointer; min-height: 44px; }
.sound:focus-visible { outline: 1px solid currentColor; outline-offset: 6px; }
.sound-icon { display: block; height: 2em; width: auto; flex: none; }
.sound-label { display: grid; white-space: nowrap; text-align: center; }
.sound-label::before { content: "выключить звук"; visibility: hidden; grid-area: 1 / 1; }
.sound-label > span { grid-area: 1 / 1; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.event-details {
  position: absolute;
  top: var(--masthead-compact);
  height: calc(var(--head-height) - var(--masthead-compact));
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
h1 {
  margin: 0;
  padding: 0 16px;
  font: 400 clamp(60px, min(7.8vw, 13svh), 170px)/.93 Reckless, Georgia, serif;
  letter-spacing: -.035em;
  text-align: center;
}
h1 span { display: block; }
@media (max-width: 1023px) and (orientation: portrait) {
  .invitation { min-height: 720px; --head-height: calc(74% - 19.3vw); }
  .theatre-background { width: 135%; height: 150.343vw; }
  :root { --masthead-inset: 4%; }
  .invitation-label { justify-self: start; }
  .sound { justify-self: end; }
  h1 { font-size: 11vw; }
}
@media (max-width: 599px) and (orientation: portrait) {
  .invitation { min-height: 600px; --head-height: var(--actor-head); }
  :root { --masthead-inset: 5%; --masthead-compact: 60px; }
  h1 { font-size: 12.2vw; }
}
@media (orientation: landscape) and (max-height: 650px) {
  .invitation { min-height: 360px; }
  :root { --masthead-compact: 56px; }
  .theatre-link { font-size: 12px; }
  h1 { font-size: min(7.8vw, 13vh); }
}

/* Native scrolling provides a short, continuous camera movement through the scene. */
.scene-scroll { height: calc(max(100svh, 620px) + 32svh); }
.scene-scroll > .invitation { position: sticky; top: 0; }
.theatre-background {
  background-image: image-set(url('assets/theatre-4k.webp?v=chair2') 1x, url('assets/theatre-4k.webp?v=chair2') 2x);
  transform: translate(-50%, calc(0% - var(--actor-head))) translate3d(var(--scene-x, 0px), var(--scene-y, 0px), 0) scale(1.035);
  transform-origin: 50% var(--actor-head);
}
.event-details { transform: translate3d(var(--text-x, 0px), var(--text-y, 0px), 0); }
@media (min-width: 1800px) {
  .theatre-background { background-image: url('assets/theatre-4k.webp?v=chair2'); }
}
@media (max-width: 1023px) and (orientation: portrait) {
  .scene-scroll { height: calc(max(100svh, 720px) + 32svh); }
}
@media (max-width: 599px) and (orientation: portrait) {
  .scene-scroll { height: calc(max(100svh, 600px) + 32svh); }
}
@media (orientation: landscape) and (max-height: 650px) {
  .scene-scroll { height: calc(max(100svh, 360px) + 32svh); }
}
@media (prefers-reduced-motion: reduce) {
  .scene-scroll { height: auto; }
  .scene-scroll > .invitation { position: relative; }
  .theatre-background { transform: translate(-50%, calc(0% - var(--actor-head))); }
  .event-details { transform: none; }
}
html { scrollbar-color: #454454 #101729; }
@media (prefers-reduced-motion: no-preference) {
  .intro-pending .title-line > span { opacity: 0; }
}

/* The last rows of the theatre dissolve into the continuous page colour. */
.scene-dissolve {
  position: absolute;
  z-index: 0;
  inset: auto 0 0;
  height: 34%;
  pointer-events: none;
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 78%);
  mask-image: linear-gradient(to bottom, transparent, #000 78%);
  background: linear-gradient(to bottom, rgb(16 23 41 / 0) 0%, rgb(16 23 41 / 28%) 25%, rgb(16 23 41 / 82%) 65%, #101729 96%);
}
.event-details { z-index: 1; }
/* Cover subpixel seams at the sticky scene boundary. */
.invitation::after { content: ''; position: absolute; inset: auto 0 -1px; height: 12px; background: linear-gradient(transparent, #101729 70%); pointer-events: none; }
.programme {
  background: linear-gradient(#101729, #0c1220 min(22vw, 300px));
  color: #f7f3eb;
  padding: clamp(64px, 7.2vw, 112px) clamp(22px, 5vw, 76px) clamp(88px, 10vw, 144px);
  font-size: clamp(1rem, 1.38vw, 1.24rem);
  line-height: 1.64;
  text-align: center;
}
.page-section { max-width: 56rem; margin-inline: auto; }
.page-section + .page-section { margin-top: clamp(100px, 13.3vw, 190px); }
.page-section h2 {
  font: 400 clamp(2.9rem, 5.2vw, 4.8rem)/1.02 Reckless, Georgia, serif;
  letter-spacing: -.032em;
  text-wrap: balance;
  margin: 0 0 clamp(30px, 3.4vw, 50px);
}
.page-section p { margin: 0; text-wrap: pretty; }
.welcome > p { max-width: 55ch; margin-inline: auto; }
.welcome p + p { margin-top: 1.35em; }
.welcome .encore-date { margin-top: clamp(38px, 4.2vw, 60px); }
.encore-date time { display: block; font: 400 clamp(2.8rem, 4.6vw, 4rem)/1 Reckless, Georgia, serif; letter-spacing: -.04em; }
.page-section .section-lead {
  margin: 0;
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
  line-height: 1.48;
  letter-spacing: -.02em;
}
.snow { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 11; pointer-events: none; }
.meeting { margin: clamp(48px,7vw,94px) auto 0; }
.meeting time { display:flex; justify-content:center; align-items:center; gap:.32em; font:400 clamp(3.1rem,8.4vw,7.5rem)/1 Reckless,Georgia,serif; letter-spacing:-.045em; }
.meeting time span + span { border-left:1px solid #7b7881; padding-left:.32em; }
.meeting p { margin:1.2rem 0 .15rem; }
.meeting a { color:#dad7d1; text-underline-offset:.22em; }
#guest-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  text-align: left;
  gap: clamp(1.15rem, 2.3vw, 1.85rem);
  margin-inline: auto;
  max-width: 35rem;
  font-size: clamp(1rem, 1.3vw, 1.17rem);
  line-height: 1.7;
}
#guest-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
#guest-form legend { padding: 0; }
#guest-form [hidden] { display: none; }
#guest-form small { display: block; font-size: .875rem; color: #b9bbc4; }
#guest-form button, #guest-form input, #guest-form textarea, #guest-form select { font: inherit; color: inherit; }
.salutation { font: 400 clamp(1.8rem, 3vw, 2.55rem)/1.14 Reckless, Georgia, serif; letter-spacing: -.02em; }
.letter-line { line-height: 2; }
.letter-details { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
.line-field input, .line-field textarea {
  color-scheme: dark; padding: .18rem .1rem; background: transparent;
  border: 0; border-bottom: 1px solid #68707e; border-radius: 0;
}
.line-field input { width: min(17ch, 100%); max-width: calc(100% - .65rem); line-height: 1.5; }
.line-field input[type=tel] { width: min(23ch, 100%); }
.allergy-field { display: inline-flex; align-items: baseline; gap: .25em; max-width: 100%; }
.line-field ::placeholder { color: rgb(236 237 244 / 58%); font-weight: 400; opacity: 1; }
.postscript { display: flex; align-items: baseline; gap: .75rem; }
.postscript > span { font: 400 1.45rem Reckless, Georgia, serif; white-space: nowrap; }
.postscript textarea { flex: 1; min-width: 0; resize: vertical; }
.word-choice {
  position: relative; display: inline-flex; align-items: center; gap: .52em;
  padding: .15em .18em; min-height: 2.5rem; line-height: 1.35;
  border-bottom: 1px solid #938d83; color: #efe3ce;
}
.word-choice:has(select:invalid) { color: #b2b5bf; }
.word-choice::after {
  content: ""; width: .34em; height: .34em; border: solid currentColor;
  border-width: 0 1px 1px 0; transform: translateY(-.1em) rotate(45deg);
}
.word-choice select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.word-choice select option { background: #171e2d; color: #faf7ee; }
.word-choice:focus-within { outline: 2px solid #efcd9d; outline-offset: 3px; }
.drinks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; margin-top: .85rem; }
.drinks label { position: relative; cursor: pointer; }
.drinks input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.drinks span { height: 100%; padding: .55rem .7rem; border: 1px solid #485060; border-radius: 8px; min-height: 44px; display: flex; align-items: center; gap: .6rem; line-height: 1.35; }
.drinks span::before { content: ""; width: 14px; height: 14px; border: 1px solid #9096a3; border-radius: 3px; flex: none; }
.drinks :checked + span { background: rgb(238 217 185 / 8%); border-color: #b5a68f; }
.drinks :checked + span::before { background: #eed9b9; box-shadow: inset 0 0 0 3px #171e2d; }
.drinks :disabled + span { opacity: .55; }
#guest-form [type=submit],.contact a {border:0;border-radius:4rem;min-height:52px;padding:.7em 1.4em;text-align:center;}
#guest-form [type=submit] {background:#eee5d6;color:#171e2d;font:400 1.65rem/1 Reckless,Georgia,serif;cursor:pointer;}
.contact a {background:#222734;color:white;}
#guest-form :focus-visible,#guest-form input:focus-visible + span {outline:2px solid #efcd9d;outline-offset:3px;}
#rsvp-status:empty {display:none;}
#guest-form #bar { padding-block: 1.15rem; border-block: 1px solid rgb(220 223 236 / 15%); }
#guest-form #bar legend { padding-right: .65rem; }
#guest-form .postscript { padding-top: .8rem; }
#guest-form [type=submit] { justify-self: start; padding-inline: 1.4em; }
#guest-form .word-choice { min-height: 44px; }
@media(max-width:600px){
  .drinks { font-size: .94rem; }
  .drinks span { gap: .38rem; padding-inline: .5rem; }
  .drinks label:last-child { grid-column: 1 / -1; }
  .drinks label:nth-last-child(2) { grid-column: 1 / -1; }
  #guest-form [type=submit] { justify-self: stretch; }
}
@media(max-width:360px){ .drinks {grid-template-columns:1fr;} }
.contact a { display: inline-flex; align-items: center; text-decoration: none; margin-top: .95em; }
@media (max-width: 680px) {
  .wide-break { display: none; }
  .page-section h2 { font-size: clamp(2.12rem, 9vw, 3rem); }
  .wish h3 { font-size: clamp(1.9rem, 7.1vw, 2.15rem); }
  .page-section .section-lead { font-size: 1.05rem; }
  .programme { font-size: .97rem; line-height: 1.62; }
  .page-section { max-width: 32rem; }

}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

#email-fallback { color: inherit; font-size: 1rem; }

@media (prefers-reduced-motion: no-preference) {
  .passage-enter { animation: passage-enter 760ms cubic-bezier(.18,.75,.24,1) backwards; }
  @keyframes passage-enter {
    from { opacity: 0; transform: translateY(12px); filter: blur(3px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
  }
  .passage-enter:focus-within { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .masthead, .masthead::before { transition: none; }
}

.reply-note {
  box-sizing: border-box;
  width: min(34rem, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  max-height: calc(100svh - 2rem);
  margin: auto;
  padding: clamp(3.5rem, 6vw, 5rem) clamp(1.6rem, 4.6vw, 4.2rem) clamp(2.8rem, 5vw, 4rem);
  border: 1px solid #c7b79d;
  background: radial-gradient(ellipse at 68% 0%, #fff8e9, transparent 80%), #eee5d6;
  color: #232432;
  text-align: center;
  box-shadow: 0 24px 90px rgb(4 7 16 / 45%);
}
.reply-note::before { content: ''; position: absolute; inset: .53rem; border: 1px solid rgb(115 93 69 / 26%); pointer-events: none; }
.reply-note::backdrop { background: rgb(7 12 24 / 74%); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.reply-note h2 { margin: 0 auto .55em; max-width: 15ch; font: 400 clamp(2.25rem, 5vw, 3.55rem)/1.03 Reckless, Georgia, serif; letter-spacing: -.025em; text-wrap: balance; }
.reply-note p { margin: 0; font-size: clamp(1rem, 1.3vw, 1.14rem); line-height: 1.6; text-wrap: pretty; }
#reply-signoff { margin-top: 1.35em; font: 400 clamp(1.55rem, 3vw, 2.05rem)/1.1 Reckless, Georgia, serif; }
.reply-close { position: absolute; right: .75rem; top: .75rem; width: 44px; height: 44px; border: 0; background: none; color: inherit; cursor: pointer; }
.reply-close::before, .reply-close::after { content: ''; position: absolute; top: 50%; left: 28%; width: 44%; height: 1px; background: currentColor; transform: rotate(45deg); }
.reply-close::after { transform: rotate(-45deg); }
.reply-close:focus-visible { outline: 1px solid currentColor; outline-offset: -5px; }
html:has(.reply-note[open]) { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .reply-note[open] { animation: note-appear 420ms cubic-bezier(.18,.72,.26,1) both; }
  .reply-note[open]::backdrop { animation: veil-appear 320ms ease both; }
  @keyframes note-appear { from { opacity: 0; transform: translateY(12px); } }
  @keyframes veil-appear { from { opacity: 0; } }
}

@media (max-width:599px) and (orientation:portrait) {
  .theatre-background { inset:0; width:100%; height:100%; background-size:cover; background-position:50% var(--actor-head); transform:translate3d(var(--scene-x,0px),var(--scene-y,0px),0) scale(1.12); }
}
@media (max-width:599px) and (orientation:portrait) and (prefers-reduced-motion:reduce) { .theatre-background {transform:none;} }

.map-arrow { display:inline-block; width:.8em; height:.8em; margin-left:.15em; vertical-align:baseline; }
.wishes {
  --gutter:clamp(22px,5vw,76px);
  --card:min(61%,77rem,82svh);
  --gap:clamp(14px,1.8vw,32px);
  --pin:calc(var(--masthead-compact) + clamp(8px,2svh,20px));
  max-width:none; margin-inline:calc(-1 * var(--gutter)); text-align:left;
}
.wishes h2 { margin:0 var(--gutter) clamp(18px,3svh,36px); }
.wish { min-width:0; }
.wish img { display:block; width:100%; height:auto; aspect-ratio:16/9; object-fit:cover; }
.wish h3 { margin:.52em 0 .22em; font:400 clamp(1.7rem,2.7vw,3rem)/1.06 Reckless,Georgia,serif; letter-spacing:-.025em; }
.wish p { max-width:52ch; color:#d5d5dc; line-height:1.47; }
.wishes:not(.is-horizontal) .wish { max-width:48rem; margin:0 auto 3rem; padding-inline:var(--gutter); }
.is-horizontal .wishes-pin { position:sticky; top:var(--pin); min-height:calc(89svh - var(--pin)); display:flex; flex-direction:column; justify-content:center; }
.is-horizontal .wish-window { overflow:hidden; }
.is-horizontal .wish-track { position:relative; display:flex; gap:var(--gap); will-change:transform; }
.is-horizontal .wish { flex:0 0 var(--card); }
.wishes.is-horizontal::after { content:""; display:block; height:var(--rail-travel); }
@media (max-width:680px) {
  .wishes { --card:100%; --gap:14px; text-align:center; }
  .wishes h2 { font-size:clamp(2rem,8vw,3rem); }
  .wish h3, .wish p { padding-inline:var(--gutter); }
  .wish p { margin-inline:auto; }
  .wishes:not(.is-horizontal) .wish { padding-inline:0; }
}
@media (min-width: 1200px) and (hover: hover) and (pointer: fine) {
  .wish h3 { font-size:clamp(1.7rem,2.45vw,2.7rem); max-width:94%; }
  .wish p { font-size:.92em; max-width:min(52ch,94%); }
}
@media (max-height:560px) and (orientation:landscape) {
  .wishes { --card:min(55%,72svh); }
  .wishes h2 { font-size:2rem; margin-bottom:12px; }
  .wish h3 { font-size:1.5rem; }
  .wish p { font-size:.94rem; }
}

.rsvp {
  --grain:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='144' height='144' viewBox='0 0 144 144'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='.48'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Cpath fill='%23aaa' filter='url(%23n)' d='M0 0h144v144H0z'/%3E%3C/svg%3E");
  max-width:47rem; --pin:calc(var(--masthead-compact) + clamp(12px,4svh,40px)); }
.letter-stage { position:relative; isolation:isolate; }
.letter-paper {
  position:relative; margin-inline:3%; padding:clamp(28px,5vw,68px) clamp(18px,5vw,64px);
  text-align:left; color:#302b29; color-scheme:light; border-radius:4px;
  background:var(--grain) repeat, radial-gradient(ellipse at 30% 0%,#fff5de,transparent 58%), #efe3cd;
  background-blend-mode:soft-light,normal,normal;
  box-shadow:0 15px 50px #03071150;
}
.letter-paper::before { content:""; position:absolute; inset:.55rem; border:1px solid #9a775e50; pointer-events:none; }
.rsvp #rsvp-title { margin:0 auto 1.6rem; max-width:35rem; text-align:center;
  font-size:clamp(2.85rem,6.7vw,5.75rem); line-height:1; color:#44303c; }
.letter-paper #guest-form small,.letter-paper .word-choice:has(select:invalid) { color:#716a62; }
.letter-paper .word-choice { color:#513b30; border-color:#968270; }
.letter-paper .line-field :is(input,textarea) { color-scheme:light; border-color:#9c9081; }
.letter-paper .line-field ::placeholder { color:#776f67; }
.letter-paper .word-choice select option { background:#f6f0e5; color:#302b29; }
.letter-paper .drinks span,.letter-paper .drinks span::before { border-color:#afa396; }
.letter-paper .drinks :checked + span { background:#e4d7c6; border-color:#71604f; }
.letter-paper .drinks :checked + span::before { background:#695447; box-shadow:inset 0 0 0 3px #efe8da; }
.letter-paper #guest-form #bar { border-color:#a391793d; }
.letter-paper #guest-form [type=submit] { background:#262735; color:#fff9ed; }
.letter-paper :is(.word-choice:focus-within,:focus-visible),.letter-paper #guest-form :focus-visible,.letter-paper #guest-form input:focus-visible + span { outline-color:#79624b; }
.envelope-back,.envelope-pocket,.envelope-flap,.open-envelope { display:none; }
.rsvp.is-envelope {
  --run:clamp(320px,74svh,720px);
  --fold:clamp(115px,20svh,168px);
  --face:clamp(170px,min(53vw,38svh),300px);
  --mouth:calc(var(--fold) + 32px);
}
.rsvp.is-envelope::after { content:""; display:block; height:var(--run); }
.is-envelope .letter-stage { position:sticky; top:var(--pin); min-height:calc(100svh - var(--pin)); overflow-anchor:none; }
/* The mask follows the physical bottom seam, always underneath the opaque pocket.
   The V-shaped opening itself is formed solely by the pocket above the sheet. */
.is-envelope .letter-stage { overflow:clip; }
.is-envelope .letter-paper {
  --paper-y:calc((1 - var(--pull,0)) * (var(--mouth) + 4px));
  --seam:calc(var(--mouth) + var(--drop,0px) + var(--face) - var(--paper-y) - 2px);
  z-index:2;
  transform:translate3d(0,var(--paper-y),0);
  clip-path:inset(-2px -5px max(-4px,calc(100% - var(--seam))) -5px);
}
.is-envelope :is(.envelope-back,.envelope-pocket,.envelope-flap,.open-envelope) {
  display:block; position:absolute; left:0; top:var(--mouth); width:100%; height:var(--face); pointer-events:none;
}
.is-envelope :is(.envelope-back,.envelope-pocket,.envelope-flap) {
  border-radius:3px; transform-origin:50% 0%;
  transform:translate3d(0,var(--drop,0px),0);
}
.is-envelope .envelope-back {
  z-index:0; background:var(--grain),linear-gradient(154deg,#506e80,#7c9bab 56%,#9fbaca); background-blend-mode:soft-light,normal;
  box-shadow:0 8px 26px #03081155;
}
.is-envelope .envelope-pocket {
  z-index:3; overflow:hidden;
  clip-path:polygon(0 0,48% 52%,50% 53%,52% 52%,100% 0,100% 100%,0 100%);
  background:var(--grain),linear-gradient(115deg,#89aabc,#9db9ca 48%,#89a8ba); background-blend-mode:soft-light,normal;
}
.envelope-pocket::after {
  content:""; position:absolute; inset:0; clip-path:polygon(0 100%,49% 47%,51% 47%,100% 100%);
  background:var(--grain),linear-gradient(158deg,#b3cbd6,#91afc0 65%,#84a4b7); background-blend-mode:soft-light,normal;
}
.is-envelope .envelope-flap {
  z-index:4; height:calc(var(--face)*.82); filter:drop-shadow(0 3px 3px #29465455);
  transform:perspective(1200px) translateY(var(--drop,0px)) rotateX(calc(var(--flap,0)*168deg));
}
.envelope-flap::before {
  content:""; position:absolute; inset:0; clip-path:polygon(0 0,100% 0,99.6% 9%,99% 14%,53% 96%,51.6% 98.4%,50% 99%,48.4% 98.4%,47% 96%,1% 14%,.4% 9%);
  background:var(--grain),linear-gradient(161deg,#a3bed1,#9ab8ca 55%,#8eacbf); background-blend-mode:soft-light,normal;
}
.is-envelope .flap-behind { z-index:1; }
.is-envelope .letter-stage.is-readable :is(.envelope-back,.envelope-pocket,.envelope-flap) { visibility:hidden; }
.letter-monogram {
  position:absolute; z-index:1; left:50%; bottom:6%; transform:translateX(-50%);
  color:#6a899a; text-shadow:0 1px #cee0e799;
  font:400 clamp(1.5rem,3vw,2.4rem)/1 Reckless,Georgia,serif;
}
.letter-monogram span { margin-left:-.18em; position:relative; top:.09em; }
.is-envelope .open-envelope { z-index:5; cursor:pointer; pointer-events:auto; background:none; border:0; }
.is-envelope .open-envelope[hidden] { display:none; }
#rsvp-title:focus { outline:none; }

.contact p { max-width:49ch; margin-inline:auto; color:#cfced2; font-size:clamp(.9rem,1.05vw,1rem); line-height:1.6; text-wrap:balance; }
