:root{--ink:#3e4936;--paper:#f6f3eb;--sage:#e5e8df;--line:#3e49362e;--serif:'Cormorant Garamond',Georgia,serif;--sans:'Manrope',Arial,sans-serif}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);background:#e5e3da;font-family:var(--serif)}button,a{color:inherit;font:inherit}button{cursor:pointer;min-height:44px}button:focus-visible,a:focus-visible{outline:2px solid currentColor;outline-offset:6px}img{display:block;width:100%}#names:focus{outline:none}.invitation{max-width:760px;margin:auto;background:var(--paper);opacity:0;overflow:hidden;transition:opacity 1s}.invitation.visible{opacity:1}.eyebrow{font-family:var(--sans);font-size:13px;letter-spacing:2.8px;line-height:1.7;text-transform:uppercase;margin:0}.hero-copy{padding:62px 9% 72px;position:relative}.hero-copy .eyebrow{display:flex;align-items:center;gap:22px}.hero-copy .eyebrow:after{content:'';height:1px;background:var(--line);flex:1}.hero h1{font-weight:400;line-height:.83;letter-spacing:-3.5px;font-size:clamp(94px,22vw,162px);margin:58px 0 0;display:flex;flex-direction:column}.name-first{align-self:flex-start}.name-second{align-self:flex-end}.hero h1 .name-amp{align-self:center;font-weight:400;font-style:italic;font-size:.44em;line-height:1;margin:10px 0 3px;letter-spacing:0}.hero-photo img{aspect-ratio:3/4;object-fit:cover;object-position:center 68%}.date-section{background:var(--sage);padding:70px 9% 78px}.date-section .eyebrow{padding-bottom:26px;border-bottom:1px solid var(--line)}.date-section h2{font-weight:400;display:grid;grid-template-columns:1fr auto;align-items:end;gap:24px;margin:32px 0 0}.editor-day{font-size:clamp(144px,36vw,264px);line-height:.76;letter-spacing:-7px}.editor-month{font-size:clamp(30px,7vw,50px);line-height:1;text-align:right;letter-spacing:-.8px;padding-bottom:4px}.editor-year{display:block;font-family:var(--sans);font-size:15px;font-weight:400;letter-spacing:3px;margin-top:24px}.invite-section{padding:79px 9% 78px;background:var(--paper);text-align:center}.invite-intro{font-family:var(--sans);text-transform:none;font-size:17px;letter-spacing:0;line-height:1.7}.invite-section h2{font-size:clamp(76px,18vw,126px);font-weight:400;line-height:.9;letter-spacing:-2px;margin:35px 0 32px}.invite-section h2 em{font-weight:400}.details{font-family:var(--sans);font-size:16px;line-height:1.8;max-width:340px;margin:0 auto}.calendar{font-family:var(--sans);display:inline-flex;align-items:center;gap:18px;font-size:15px;line-height:1.5;text-decoration:none;border-bottom:1px solid #3e493670;padding:17px 0 12px;margin-top:22px;min-height:48px}.calendar:hover{border-bottom-color:var(--ink)}.calendar span{font-size:22px}.calendar-status{font-family:var(--sans);font-size:15px;line-height:1.7;max-width:340px;margin:20px auto}.closing{font-family:var(--sans);font-size:16px;margin:62px 0 14px}.signature{font-size:36px;font-style:italic;margin:0}.portrait-section img{aspect-ratio:3/4;object-fit:cover;object-position:center 54%}footer{padding:30px 20px;text-align:center;background:var(--paper)}footer button{border:0;background:none;font-family:var(--sans);font-size:14px;text-decoration:underline;text-underline-offset:5px}
.cover{position:fixed;inset:0;z-index:20;background:var(--paper);transition:opacity .9s,visibility .9s;overflow:hidden}.cover.gone{opacity:0;visibility:hidden;pointer-events:none}.envelope{height:100dvh;position:relative;perspective:1800px}.inside{position:absolute;inset:0;display:grid;place-items:center;background:var(--paper)}.inside p{font-size:36px}.door{position:absolute;top:0;bottom:0;width:50%;background-color:var(--paper);background-image:linear-gradient(110deg,#ffffff36,transparent 70%,#3e493609),url("data:image/svg+xml,%3Csvg viewBox='0 0 150 150' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%237a7160' filter='url(%23n)' opacity='.05' d='M0 0h150v150H0z'/%3E%3C/svg%3E");backface-visibility:hidden;transition:transform 1.7s cubic-bezier(.3,.1,.2,1),filter 1.7s}.left{left:0;transform-origin:left center;box-shadow:inset -1px 0 0 #3e49362e,inset -8px 0 18px #3e493605}.right{right:0;transform-origin:right center;box-shadow:inset 1px 0 0 #fff9}.edge{position:absolute;inset:24px;border:1px solid #3e493621;box-shadow:0 1px 0 #fff9,inset 0 1px 0 #fff9}.left .edge{border-right:0}.right .edge{border-left:0}.seal{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:96px;height:96px;display:grid;place-items:center;border-radius:49% 51% 48% 52%;border:1px solid #d8d0c0;background:radial-gradient(circle at 32% 22%,#fffef9,#faf6ed 62%,#e9e2d4);box-shadow:0 6px 14px #3e49361a,inset 0 0 0 4px #fffaf1,inset 0 0 0 5px #d8d0c044;transition:opacity .45s,transform .6s}.seal-inner{display:grid;place-items:center;width:68px;height:68px;border:1px solid #3e493629;border-radius:50%;font-size:30px;text-shadow:0 1px #fff9;letter-spacing:-1px}.amp{font-style:italic;font-size:21px;margin:0 3px}.seal:hover{transform:translate(-50%,-50%) scale(1.04)}.tap{position:absolute;bottom:max(38px,env(safe-area-inset-bottom));width:100%;padding:0 24px;text-align:center;font-family:var(--sans);font-size:14px;line-height:1.6;transition:opacity .4s}.opening .seal{opacity:0;transform:translate(-50%,-50%) scale(.8);pointer-events:none}.opening .tap{opacity:0}.opening .left{transform:rotateY(-135deg);filter:brightness(.9)}.opening .right{transform:rotateY(135deg);filter:brightness(.9)}
@media(min-width:701px){.hero-copy{padding-top:76px;padding-bottom:86px}.date-section{padding-top:86px;padding-bottom:92px}.invite-section{padding-top:92px;padding-bottom:94px}.edge{inset:40px}}
@media(max-width:370px){.hero h1{font-size:25vw}.date-section h2{gap:12px}.editor-month{font-size:7vw}.editor-day{font-size:37vw}.calendar{font-size:14px;gap:10px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition-duration:.01ms!important}.opening .left,.opening .right{transform:none}}

/* Scale both original photos proportionally, without cropping. */
.hero-photo img,.portrait-section img{display:block;width:100%;height:auto;aspect-ratio:auto;object-fit:contain}

/* Give month and year equal typographic weight. */
.date-section h2{gap:20px}
.editor-day{font-size:clamp(126px,32vw,236px)}
.editor-month{font-size:clamp(34px,8.6vw,60px);line-height:1.05;letter-spacing:-.7px}
.editor-year{font-family:var(--serif);font-size:1em;font-weight:400;letter-spacing:-.7px;margin-top:9px}
.invite-section h2{font-style:italic}
@media(max-width:370px){.editor-month{font-size:8.6vw}.editor-day{font-size:33vw}.date-section h2{gap:14px}}


/* Smooth ivory and pale stone surfaces; one olive ink throughout. */
:root{--paper:#f8f6f0;--sage:#e7e7df;--line:#3e49362b}
body{background:#e5e3dc}
.hero-copy{background:#f8f6f0}
.date-section{background:#e7e7df}
.invite-section{background:#f1eee7}
footer{background:#f8f6f0}
.door{background-color:#f8f6f0;background-image:linear-gradient(115deg,#ffffff24,transparent 65%,#3e493604)}
.seal{width:108px;height:108px;background:radial-gradient(circle at 32% 22%,#fffef9,#faf7f0 65%,#ebe5d9);border-color:#d8d1c3;box-shadow:0 5px 12px #3e49361c,inset 0 0 0 5px #fffaf2,inset 0 0 0 6px #d8d1c344}
.seal-inner{display:grid;place-items:center;width:78px;height:78px;font-size:32px;font-weight:400;letter-spacing:-1px;text-shadow:0 1px #fff9}
.seal-inner>span{display:flex;align-items:baseline;justify-content:center;gap:4px}
.seal-inner .amp{font-size:22px;font-style:normal;margin:0}
.hero-copy .eyebrow:after{background:#3e493625;box-shadow:0 1px 0 #ffffffb3}
.date-section .eyebrow{border-bottom-color:#3e493628;box-shadow:0 1px 0 #ffffff80}


/* Keep the offset name composition and show the complete new photograph. */
@media(max-width:700px){
.hero{display:flex;flex-direction:column;height:auto;min-height:0}
.hero-copy{padding:32px 9% 36px;min-height:0}
.hero-copy .eyebrow{font-size:13px;letter-spacing:2.4px;gap:18px}
.hero h1{font-size:clamp(74px,22vw,110px);line-height:.83;letter-spacing:-3px;margin:30px 0 0}
.hero h1 .name-amp{margin:10px 0 3px}
.hero-photo{height:auto;min-height:0;overflow:visible}
.hero-photo img{display:block;width:100%;height:auto;aspect-ratio:auto;object-fit:contain}
}

/* Clear warm white and fresh sage, with the date set as one aligned block. */
:root{--paper:#fbf9f3;--sage:#dfe7d8;--date-day-size:clamp(126px,32vw,236px)}
body{background:#f0eee6}
.hero-copy,.invite-section,footer{background:#fbf9f3}
.date-section{background:#dfe7d8}
.door{background-color:#fbf9f3}
.date-section h2{align-items:center}
.editor-day{font-size:var(--date-day-size);line-height:.9}
.editor-month{display:flex;flex-direction:column;justify-content:space-between;height:calc(var(--date-day-size)*.72);padding:0;line-height:.85;transform:translateY(calc(var(--date-day-size)*.025))}
.editor-year{margin-top:0;line-height:.85}
@media(max-width:370px){:root{--date-day-size:33vw}}

/* Dissolve the top of the opening photograph into the ivory title panel. */
.hero-photo{position:relative;background:var(--paper)}
.hero-photo:after{content:'';position:absolute;top:-1px;left:0;right:0;height:clamp(110px,28vw,205px);background:linear-gradient(to bottom,var(--paper) 0%,rgba(251,249,243,.94) 12%,rgba(251,249,243,.67) 37%,rgba(251,249,243,.25) 68%,rgba(251,249,243,0) 100%);pointer-events:none}

/* Align actual glyph edges: this font uses low, descending old-style numerals. */
:root{--date-side-size:clamp(34px,8.6vw,60px)}
.editor-month{position:relative;display:block;height:calc(var(--date-day-size)*.9);font-size:var(--date-side-size);line-height:1;transform:none;padding:0}
.editor-month-label{position:relative;display:block;top:calc(var(--date-day-size)*.3695 - var(--date-side-size)*.0935);line-height:1}
.editor-year{position:absolute;right:0;top:calc(var(--date-day-size)*.9580625 - var(--date-side-size)*1.09375);font-size:1em;line-height:1;margin:0}
@media(max-width:370px){:root{--date-side-size:8.6vw}.editor-month{font-size:var(--date-side-size)}}

/* Paper grain on the opening panels only; the revealed card stays smooth. */
.door{background-color:var(--paper);background-image:linear-gradient(115deg,#ffffff14,transparent 65%,#3e493608),url('images/ivory-paper-v11.png');background-size:auto,630px 630px;background-repeat:no-repeat,repeat}
.right{background-position:0 0,-380px 0}
.inside{background:var(--paper)}

/* Inline vector arrow avoids iOS emoji rendering. */
.calendar-arrow{display:block;width:20px;height:20px;flex:none;color:var(--ink)}
