:root{--ink:#171914;--olive:#424b38;--olive-light:#f0f2e9;--muted:#707369;--line:#d9dcd1;--serif:'Cormorant Garamond',Georgia,serif;--display:'Bodoni Moda',Didot,'Times New Roman',serif;--sans:'Jost',Arial,sans-serif}
html:lang(az){--sans:'Invitation Sans AZ',Arial,sans-serif}
html:lang(az) .invitation-copy{max-width:31ch;margin-inline:auto;text-wrap:balance}
html:lang(az) .bottom-sheet h2{font-size:clamp(32px,8.5vw,40px)}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:30px}
body{margin:0;background:#fff;color:var(--ink);font-family:var(--serif);-webkit-font-smoothing:antialiased}
body.cover-visible{overflow:hidden}
body.dialog-visible{overflow:hidden}
button,a{-webkit-tap-highlight-color:transparent;touch-action:manipulation}
button{font:inherit;color:inherit;cursor:pointer}
button:disabled{cursor:default}
a{color:inherit}
button:focus-visible,a:focus-visible{outline:2px solid var(--olive);outline-offset:6px}
button{border-radius:0}
[hidden]{display:none!important}
.icon-defs{position:absolute;width:0;height:0;overflow:hidden}
.icon{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;clip:rect(0,0,0,0);overflow:hidden;white-space:nowrap;border:0}
.eyebrow{font-family:var(--sans);font-size:11px;font-weight:400;letter-spacing:.22em;text-transform:uppercase;line-height:1.6;margin:0}
.amp{font-family:'Libre Baskerville',Baskerville,Georgia,serif!important;font-weight:400;font-style:normal;letter-spacing:0}
.branch{position:absolute;pointer-events:none;user-select:none;object-fit:contain;height:auto}
.short-rule{width:38px;height:1px;background:#a4a79c;margin-left:auto;margin-right:auto}
.monogram{text-decoration:none;font-family:var(--serif);font-size:26px;white-space:nowrap;line-height:1}
.monogram span{font-size:19px;color:#686c60;margin:0 4px}

/* The cover and its layered paper envelope. */
.cover{position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100svh;padding:54px 22px 32px;overflow:hidden;background:#fff;transition:opacity .7s ease,transform .7s ease}
.cover-heading{text-align:center;margin-bottom:56px;position:relative;z-index:2;transition:opacity .35s,transform .5s}
.cover-heading>.eyebrow{letter-spacing:.34em;font-size:12px}
.cover-date{font-family:var(--sans);font-size:10px;letter-spacing:.22em;text-transform:uppercase;margin:18px 0 0}
.cover-branch{width:175px;top:-53px;right:-69px;transform:rotate(-66deg);opacity:.85;z-index:-1}
.envelope-space{width:min(84vw,460px);padding-top:16px;padding-bottom:24px;perspective:1600px;position:relative}
.envelope{width:100%;aspect-ratio:1.43;position:relative;isolation:isolate;transform-style:preserve-3d;filter:drop-shadow(0 19px 12px rgba(45,42,30,.12));transition:transform 1s cubic-bezier(.22,.7,.15,1)}
.paper{background-color:#faf9f5;background-image:url('assets/paper.svg')}
.envelope-back{position:absolute;inset:0;z-index:0;border:1px solid #ebe9e2;border-radius:2px;background-color:#eeede7}
.letter{position:absolute;z-index:1;inset:5% 6% 1%;background-color:#fffefa;box-shadow:0 -1px 6px #322e2012;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center;transition:transform 1.1s cubic-bezier(.23,.7,.18,1)}
.letter-names{font-family:var(--display);font-size:40px;line-height:1.02;text-align:center;position:relative;z-index:2;display:flex;flex-direction:column;gap:2px}
.letter-names .amp{font-size:23px;line-height:1.1}
.letter-kicker{font:8px/1.5 var(--sans);letter-spacing:.18em;text-transform:uppercase;margin:18px 0 0;position:relative;z-index:2}
.letter-branch{width:100px;top:-13px;left:-10px;transform:rotate(22deg);opacity:.8}
.envelope-pocket{position:absolute;z-index:3;inset:0;clip-path:polygon(0 35%,50% 72%,100% 35%,100% 100%,0 100%);background-color:#faf9f5;background-image:url('assets/paper.svg'),linear-gradient(0deg,#00000004,transparent 70%)}
.envelope-fold{position:absolute;inset:0;z-index:2}
.fold-left{clip-path:polygon(0 0,52% 58%,0 100%);background-color:#f5f4ef}
.fold-right{clip-path:polygon(100% 0,48% 58%,100% 100%);background-color:#f3f2ec}
.envelope-flap{position:absolute;inset:0;z-index:5;clip-path:polygon(0 0,100% 0,50% 64%);transform-origin:center top;backface-visibility:visible;background-color:#fffefa;background-image:url('assets/paper.svg'),linear-gradient(180deg,transparent,#6c69571c);transition:transform .95s cubic-bezier(.4,0,.2,1)}
.envelope-branch{z-index:4;width:28%;bottom:-1%;left:0;transform:rotate(-16deg);opacity:.8}
.wax-seal{position:absolute;z-index:7;top:52%;left:50%;width:77px;height:78px;display:grid;place-items:center;transform:translate(-50%,-12%) rotate(-5deg);border-radius:45% 48% 44% 49%;background:radial-gradient(ellipse at 40% 30%,#30332c,#11140e 70%);border:2px solid #20251b;box-shadow:0 4px 5px #0005,inset 1px 1px 2px #ffffff40,inset -2px -2px 3px #000;transition:opacity .3s,transform .6s}
.wax-seal::before{content:'';position:absolute;inset:6px;border:1px solid #53574a88;border-radius:50%;box-shadow:inset 1px 1px 2px #000,0 1px 1px #ffffff22}
.wax-seal>span{font-family:var(--serif);font-size:29px;color:#9a9d8c;text-shadow:0 -1px 1px #000;letter-spacing:2px;padding-left:2px}
.seal-slash{font-size:21px;color:#717666;margin:0 2px}
.cover-actions{margin-top:40px;text-align:center;position:relative;z-index:6;transition:opacity .35s,transform .5s}
.open-button{display:flex;gap:30px;align-items:center;justify-content:space-between;background:var(--olive);color:#fff;border:1px solid var(--olive);border-radius:7px;padding:19px 26px;min-height:58px;min-width:260px;margin:auto;font-family:var(--sans);text-transform:uppercase;letter-spacing:.18em;font-size:12px;font-weight:500;box-shadow:0 6px 16px #424b3820;transition:background .2s,transform .2s,box-shadow .2s}
.open-button:hover{background:#303a26;transform:translateY(-2px);box-shadow:0 9px 20px #424b3829}
.open-button .icon{width:18px;height:18px}
.cover-caption{margin:19px 0 0;font-size:16px;letter-spacing:.025em}
.opening-caption{position:absolute;bottom:10%;margin:0;opacity:0;font-size:17px;letter-spacing:.04em;transition:opacity .6s}
.cover.is-opening .cover-heading{opacity:0;transform:translateY(-15px)}
.cover.is-opening .cover-actions{opacity:0;transform:translateY(15px);pointer-events:none}
.cover.is-opening .wax-seal{opacity:0;transform:translate(-50%,65%) rotate(12deg)}
.cover.is-opening .envelope-flap{animation:open-flap 1s cubic-bezier(.4,0,.2,1) forwards .22s}
.cover.is-opening .letter{transform:translateY(-49%);transition-delay:.85s}
.cover.is-opening .envelope{transform:translateY(45px);filter:drop-shadow(0 22px 14px rgba(45,42,30,.12))}
.cover.is-opening .opening-caption{opacity:1;transition-delay:1.1s}
.cover.is-leaving{opacity:0;transform:translateY(-24px)}
@keyframes open-flap{0%{transform:rotateX(0deg);z-index:5}49%{z-index:5}50%{z-index:0}100%{transform:rotateX(180deg);z-index:0}}

/* The invitation, composed for mobile first. */
#invitation{animation:invitation-arrive 1s ease both}
@keyframes invitation-arrive{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:translateY(0)}}
.site-header{max-width:1160px;margin:0 auto;display:flex;align-items:center;justify-content:flex-end;padding:32px 28px 18px;position:relative;z-index:3}
.sound-button{display:flex;align-items:center;gap:8px;background:transparent;border:0;padding:8px;min-width:44px;min-height:44px;justify-content:center}
.sound-button .icon{width:22px;height:22px}
.sound-label{font-family:var(--sans);font-size:10px;letter-spacing:.12em;text-transform:uppercase}
.welcome{max-width:1160px;position:relative;isolation:isolate;margin:0 auto;overflow:hidden;padding:39px 26px 28px;text-align:center}
.hero-branch{top:-23px;right:-89px;width:235px;transform:rotate(-64deg);opacity:.9;z-index:-1}
.family-line{position:relative;z-index:1;font-size:10px;letter-spacing:.17em;margin:0 auto 39px;white-space:nowrap}
.couple-names{font-family:var(--display);font-weight:400;letter-spacing:-.04em;font-size:clamp(62px,17vw,88px);line-height:1.02;margin:0;display:flex;flex-direction:column;align-items:center}
.couple-names .amp{font-size:.4em;line-height:1.15;margin:5px 0 3px;letter-spacing:0}
.invitation-message>.short-rule{margin-top:37px;margin-bottom:25px}
.invitation-copy{font-size:22px;line-height:1.13;margin:0;letter-spacing:-.015em}
.event-column{position:relative;z-index:2;margin-top:29px}
.event-details{background:var(--olive-light);border-radius:16px;padding:22px 16px 15px;max-width:440px;margin:0 auto;position:relative}
.wedding-date{display:flex;flex-direction:column;align-items:center;font-style:normal}
.weekday{letter-spacing:.25em;font-size:12px;margin:0 0 7px}
.date-text{font-family:var(--serif);font-weight:500;text-transform:uppercase;font-size:clamp(23px,6.9vw,32px);line-height:1.1;white-space:nowrap;letter-spacing:.008em}
.wedding-time{font-family:var(--display);font-size:38px;line-height:1.15;margin-top:8px;letter-spacing:-.02em}
.event-rule{width:36px;height:1px;background:#697353;margin:15px auto 13px}
.venue{font-family:var(--display);font-size:39px;line-height:1.1;margin:0 0 18px;letter-spacing:-.035em}
.location-button{background:var(--olive);border:1px solid var(--olive);border-radius:8px;color:white;padding:16px 19px;display:flex;align-items:center;justify-content:center;gap:22px;min-height:52px;width:100%;font-family:var(--sans);font-size:12px;letter-spacing:.2em;text-transform:uppercase;transition:background .2s,transform .2s}
.location-button:hover{background:#303a26;transform:translateY(-2px)}
.location-button .icon{width:20px;height:20px}
.scroll-cue{display:flex;flex-direction:column;align-items:center;gap:13px;text-decoration:none;font-family:var(--sans);font-size:10px;letter-spacing:.2em;text-transform:uppercase;width:max-content;margin:30px auto 0;padding:5px 20px;position:relative;z-index:2}
.scroll-cue .icon{width:21px;height:25px;transition:transform .2s}
.scroll-cue:hover .icon{transform:translateY(4px)}
.hero-bottom-branch{bottom:-15px;left:-48px;width:140px;transform:rotate(30deg);opacity:.8;z-index:-1}

/* The five confirmed moments, without descriptions. */
.evening{position:relative;isolation:isolate;overflow:hidden;max-width:1160px;margin:0 auto;padding:79px 28px 45px}
.evening-heading{max-width:520px;margin:0 auto}
.evening-heading>.eyebrow{font-size:11px;letter-spacing:.22em;margin-bottom:20px}
.evening h2{font-family:var(--serif);font-weight:400;letter-spacing:-.05em;font-size:clamp(43px,12vw,64px);line-height:.95;margin:0}
.evening-branch{width:164px;right:-62px;top:42px;transform:rotate(-67deg);z-index:-1;opacity:.8}
.timeline{list-style:none;margin:41px auto 0;padding:0;max-width:520px}
.timeline li{position:relative;display:grid;grid-template-columns:48px 15px 1fr;column-gap:15px;align-items:start;min-height:88px;padding:8px 0 28px}
.timeline li::after{content:'';position:absolute;width:1px;background:#b5bba7;top:19px;bottom:-19px;left:70px;z-index:-1}
.timeline li:last-child::after{display:none}
.timeline time{font-family:var(--sans);font-size:12px;letter-spacing:.07em;line-height:1.4;padding-top:3px;font-variant-numeric:tabular-nums}
.timeline-dot{width:9px;height:9px;border-radius:50%;background:#6b7353;box-shadow:0 0 0 3px #fff;margin-top:7px;justify-self:center}
.timeline h3{font-family:var(--serif);font-size:23px;font-weight:500;line-height:1.13;letter-spacing:-.015em;margin:0;text-wrap:balance}
.timeline li:last-child{padding-bottom:0;min-height:60px}
.evening-bottom-branch{width:105px;left:-43px;bottom:-25px;transform:rotate(25deg);opacity:.8;z-index:-1}
.closing-mark{text-align:center;position:relative;z-index:1;margin-top:36px}
.closing-mark .short-rule{width:30px;margin-bottom:26px}

/* Native dialogs give keyboard focus and an accessible modal experience. */
.bottom-sheet{position:fixed;inset:auto 0 0;width:100%;max-width:520px;max-height:85svh;overflow:auto;margin:0 auto;border:0;border-radius:24px 24px 0 0;background:#fff;color:var(--ink);padding:38px 27px calc(43px + env(safe-area-inset-bottom));text-align:center;box-shadow:0 -10px 65px #00000012}
.bottom-sheet[open]{animation:sheet-in .35s cubic-bezier(.2,.65,.25,1) both}
.bottom-sheet::backdrop{background:rgba(23,25,20,.43);backdrop-filter:blur(2px)}
@keyframes sheet-in{from{opacity:0;transform:translateY(70px)}to{opacity:1;transform:translateY(0)}}
.sheet-handle{position:absolute;top:12px;left:calc(50% - 22px);height:4px;width:44px;background:#d9dcd5;border-radius:6px}
.close-button{position:absolute;right:13px;top:19px;border:0;padding:10px;background:transparent;min-width:44px;min-height:44px;display:grid;place-items:center}
.close-button .icon{width:19px;height:19px}
.bottom-sheet h2{font-family:var(--serif);font-size:43px;line-height:1.1;letter-spacing:-.04em;font-weight:500;margin:12px 0 4px}
.sheet-venue{font-size:25px;margin:0 0 25px}
.map-choices{display:flex;flex-direction:column;gap:12px;position:relative;z-index:2}
.map-choice{min-height:72px;display:flex;align-items:center;gap:21px;border:1px solid #dfe1d8;border-radius:9px;padding:17px 20px;text-decoration:none;background:#fff;font-family:var(--serif);font-size:25px;text-align:left;transition:background .2s,border .2s}
.map-choice:hover{background:#f5f6f1;border-color:#9da58e}
.map-logo{width:28px;height:34px;flex-shrink:0}
.waze-logo{width:32px;height:34px;margin-left:-2px;margin-right:-2px}
.map-choice>.icon{margin-left:auto;width:19px;height:19px}
.sheet-branch{width:93px;bottom:-23px;right:-17px;transform:rotate(-20deg);opacity:.8}
.music-sheet>.eyebrow{margin-top:15px}
.music-sheet h2{font-size:39px}
.listen-link{display:flex;gap:25px;align-items:center;justify-content:center;padding:16px 18px;border:1px solid var(--olive);color:var(--olive);text-decoration:none;font-family:var(--sans);font-size:12px;letter-spacing:.08em;border-radius:6px}
.listen-link .icon{width:18px;height:18px}
.noscript-note{text-align:center;font-family:var(--sans);font-size:14px;padding:20px}

@media(min-width:600px){
  .cover-branch{width:280px;right:-62px;top:-65px}
  .cover-heading{margin-bottom:65px}
  .cover-actions{margin-top:49px}
  .site-header{padding:36px 48px 20px}
  .welcome{padding:44px 48px 42px}
  .hero-branch{width:280px;right:-75px;top:-31px}
  .couple-names{font-size:90px}
  .family-line{font-size:11px;letter-spacing:.22em}
  .invitation-copy{font-size:25px}
  .event-details{padding:26px 28px 24px}
  .date-text{font-size:32px}
  .wedding-time{font-size:43px}
  .venue{font-size:44px}
  .hero-bottom-branch{width:200px;left:0;bottom:8px}
  .evening{padding:92px 48px 55px}
  .evening h2{font-size:65px}
  .timeline h3{font-size:27px}
  .timeline li{grid-template-columns:60px 18px 1fr;gap:20px;min-height:100px}
  .timeline li::after{left:89px}
  .timeline time{font-size:13px}
  .evening-branch{width:240px;right:-60px;top:60px}
  .evening-bottom-branch{width:120px;left:-45px;bottom:-25px}
}
@media(min-width:900px){
  .cover{padding:55px 30px 33px;min-height:100svh}
  .cover-heading{margin-bottom:55px}
  .cover-branch{width:360px;right:5%;top:-70px}
  .site-header{padding-top:36px}
  .welcome{display:grid;grid-template-columns:1.1fr 1fr;gap:70px;align-items:center;min-height:720px;padding:52px 75px 80px}
  .invitation-message{padding-top:0}
  .family-line{margin-bottom:35px}
  .couple-names{font-size:98px}
  .invitation-message>.short-rule{margin-top:35px;margin-bottom:25px}
  .event-column{margin-top:65px}
  .event-details{padding:32px 25px 25px}
  .date-text{font-size:31px}
  .wedding-time{font-size:45px}
  .event-rule{margin:20px auto}
  .venue{font-size:46px;margin-bottom:25px}
  .hero-branch{width:270px;right:-61px;top:-56px}
  .hero-bottom-branch{width:180px;left:-50px;bottom:-32px}
  .evening{display:grid;grid-template-columns:1.1fr 1fr;column-gap:70px;padding:110px 75px 55px;border-top:1px solid #e9ebe4}
  .evening-heading{width:100%;padding-top:7px}
  .evening h2{font-size:67px}
  .timeline{margin:0;width:100%}
  .timeline h3{font-size:25px}
  .evening-branch{display:none}
  .evening-bottom-branch{width:190px;bottom:60px;left:60px;opacity:.65;transform:rotate(28deg)}
  .closing-mark{grid-column:1/-1;margin-top:48px}
  .bottom-sheet{inset:50% 0 auto;transform:translateY(-50%);border-radius:18px;padding-bottom:42px;max-width:445px}
  .bottom-sheet[open]{animation:sheet-desktop .3s ease both}
  @keyframes sheet-desktop{from{opacity:0;transform:translateY(calc(-50% + 20px))}to{opacity:1;transform:translateY(-50%)}}
}
@media(max-width:359px){
  .cover{padding-left:18px;padding-right:18px}
  .cover-heading{margin-bottom:40px}
  .cover-actions{margin-top:32px}
  .wax-seal{width:65px;height:66px}
  .site-header{padding:22px 20px 12px}
  .welcome{padding:32px 20px 25px}
  .family-line{font-size:9px;letter-spacing:.12em}
  .couple-names{font-size:62px}
  .invitation-copy{font-size:20px}
  .event-details{padding:20px 13px 13px}
  .date-text{font-size:24px}
  .venue{font-size:34px}
  .location-button{gap:17px;font-size:11px;padding:14px}
  .evening{padding:65px 20px 35px}
  .evening h2{font-size:42px}
  .timeline li{grid-template-columns:42px 12px 1fr;column-gap:11px}
  .timeline li::after{left:59px}
  .timeline h3{font-size:21px}
  .timeline time{font-size:11px}
  .bottom-sheet{padding-left:22px;padding-right:22px}
}
@media(max-height:700px) and (max-width:599px){
  .cover{padding-top:34px;padding-bottom:25px}
  .cover-heading{margin-bottom:36px}
  .envelope-space{width:min(78vw,350px);padding-bottom:10px}
  .cover-actions{margin-top:28px}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.01ms!important;animation-delay:0ms!important;transition-duration:.01ms!important;transition-delay:0ms!important}
}
