/* Shared visual direction: warm paper, botanical greens, quiet motion. */
:root{--paper:#faf8f2;--ink:#304b3d;--green:#365642;--muted:#63705f;--line:#d9dfd1;--accent:#a38b60;--ease-out:cubic-bezier(.22,1,.36,1)}
body{background:var(--paper);-webkit-font-smoothing:antialiased}
::selection{background:#dce5cf;color:#253d30}
header{max-width:1440px;margin-inline:auto;border-bottom:1px solid var(--line)}
header nav>a{transition:color .2s,background .2s,border-color .2s}
header nav>a:not(.nav-rsvp):hover{color:#8a7047}
.nav-rsvp{border-radius:100px;min-height:44px;display:inline-flex;align-items:center;justify-content:center}
.nav-rsvp:hover{background:var(--ink);color:var(--paper)}
.hero{max-width:1388px;margin:24px auto 40px;background:radial-gradient(ellipse at 15% 10%,#f5f5eb,transparent 65%),#e9eedf;border:1px solid #dfe5d5;border-radius:24px;padding:64px clamp(30px,5vw,78px);gap:60px;grid-template-columns:minmax(0,1fr) minmax(0,1fr);min-height:700px}
.hero-copy{text-align:left;padding:0;min-width:0}
.hero .eyebrow{color:#617252;letter-spacing:.24em}
.hero-text{color:#617252}
.hero-date{justify-content:flex-start}
.hero-image{min-height:550px;border-radius:260px 260px 12px 12px;box-shadow:0 22px 55px #324d3e15;transform:none;margin:0}
.hero-image img{transition:transform 1.2s var(--ease-out)}
.portrait-wrap .hero-image{min-height:0}
.hero .button,.button{border-radius:100px;transition:background .25s,box-shadow .25s,transform .35s var(--ease-out)}
.button:hover{box-shadow:0 8px 20px #304b3d1a;transform:translateY(-3px)}
.button:active{transform:translateY(0);box-shadow:none}
.button:disabled{transform:none;box-shadow:none}
.hero .button:hover{background:#294532}
.vertical-caption{right:18px;top:120px;color:var(--muted)}
.countdown{background:transparent;border-block:1px solid var(--line);max-width:1120px;margin:0 auto;padding:48px 0}
.time strong{font-variant-numeric:tabular-nums;line-height:1.15}
.time span{display:block;margin-top:10px;font-size:11px;letter-spacing:.12em;text-transform:uppercase}
.time div{background:transparent!important}
.schedule{max-width:1120px;margin:auto;padding:76px 0;background:transparent;text-align:left}
.schedule-grid{gap:24px}
.schedule-grid>div{transition:background .35s,transform .35s var(--ease-out);border-radius:0 0 12px 12px}
.invitation{position:relative;max-width:1280px;margin-inline:auto;border:1px solid #dfe5d7;border-radius:180px 180px 16px 16px;background:radial-gradient(ellipse at top,#f7f7ec,#edf1e6);padding:90px 8% 75px}
.invitation h2{max-width:760px;margin:20px auto 28px;text-wrap:balance}
h2{text-wrap:balance}
.venue{background:transparent;max-width:1200px;margin:0 auto;padding:80px 40px;gap:64px}
.venue-card{border-radius:100px 100px 12px 12px;background:#f0f3e8;padding:48px 30px 36px;border-color:#d7dfcc;box-shadow:0 12px 32px #304b3d05}
.rsvp{max-width:1120px;margin:0 auto 56px;padding:54px 44px;border:1px solid #dce3d2;background:#edf1e6;border-radius:20px;gap:52px}
.rsvp form{background:#fffef9;border:1px solid #d7dfcc;border-radius:14px;padding:30px;box-shadow:0 12px 40px #304b3d06}
input,select,textarea{border-radius:8px;background:#fcfcf7;transition:border-color .2s,box-shadow .2s}
input:hover,select:hover,textarea:hover{border-color:#91a17e}
input:focus,select:focus,textarea:focus{border-color:#6b855b;box-shadow:0 0 0 3px #b6c6a32b}
.choices label{border-radius:8px;transition:background .2s,border-color .2s}
.choices label:has(input:focus-visible){outline:2px solid #6b855b;outline-offset:3px}
.success{background:#fffef9;border-radius:14px}
footer{max-width:1388px;margin:0 auto 20px;border-radius:16px;background:var(--ink);color:var(--paper);padding:42px 6%}
footer>span{color:#d9e2cf}
footer .monogram span{color:#d9e2cf}
.skip-link{position:fixed;top:12px;left:12px;z-index:2000;padding:12px 20px;background:var(--ink);color:white;border-radius:8px;transform:translateY(-160%)}
.skip-link:focus{transform:translateY(0)}
.reading-progress{position:fixed;top:0;left:0;height:3px;width:100%;transform:scaleX(0);transform-origin:left;background:#8b9c72;z-index:900;pointer-events:none}
.reveal-ready{opacity:0;transition:opacity .85s var(--ease-out),transform .85s var(--ease-out);transition-delay:var(--reveal-delay,0ms);transform:translateY(22px)}
.reveal-ready.is-visible{opacity:1;transform:none}
@media(hover:hover) and (prefers-reduced-motion:no-preference){.hero-image:hover img{transform:scale(1.025)}.schedule-grid>div:hover{transform:translateY(-4px)}}
@media(max-width:1200px){.hero{margin-inline:20px;gap:40px}.countdown,.schedule{margin-inline:6%}.rsvp{margin-inline:6%}.invitation{margin-inline:20px}}
@media(max-width:750px){header{height:78px}.hero{margin:14px 14px 30px;padding:35px 24px 28px;grid-template-columns:1fr;gap:30px;min-height:0;border-radius:18px}.hero-copy{text-align:center}.hero-date{justify-content:center}.hero-image{min-height:400px;width:100%;max-width:420px;justify-self:center}.hero h1{font-size:clamp(64px,18vw,94px)}.hero .eyebrow{font-size:10px;letter-spacing:.2em}.hero .little-note{font-size:12px}.hero .vertical-caption{display:none}.hero-date{font-size:12px;gap:12px;letter-spacing:2px}.portrait-wrap{justify-self:center}.countdown{margin-inline:24px;padding:35px 0}.time strong{font-size:clamp(34px,10vw,48px)}.time span{font-size:10px}.schedule{margin-inline:24px;padding:45px 0}.schedule-grid{grid-template-columns:1fr;gap:28px}.schedule-grid strong{font-size:36px}.schedule-grid h3{font-size:17px}.schedule-grid p{font-size:14px}.invitation{margin-inline:14px;border-radius:85px 85px 14px 14px;padding:58px 24px 48px}.invitation h2{font-size:clamp(34px,10vw,44px)}.venue{padding:45px 24px;gap:28px;margin-inline:0;grid-template-columns:1fr}.venue-card{padding:38px 22px 28px}.rsvp{margin:0 14px 34px;padding:30px 20px;grid-template-columns:1fr;gap:25px}.rsvp form{padding:24px 18px}.rsvp-intro h2{font-size:48px}.choices{grid-template-columns:1fr}footer{margin:0 14px 14px;padding:32px 22px}footer>span{font-size:10px;letter-spacing:1px}.photo-link-section{margin-inline:14px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}*,*::before,*::after{animation:none!important;transition:none!important}.reveal-ready{opacity:1!important;transform:none!important}.button:hover{transform:none}.spring-petals{display:none}}

/* Dress code on the main invitation page. */
.dress-code{max-width:1120px;margin:0 auto 72px;padding:52px 40px;text-align:center;border-block:1px solid var(--line)}
.dress-code h2{font-size:clamp(34px,5vw,52px);line-height:1.15;margin:12px 0 20px}
.dress-code-intro{max-width:620px;margin:0 auto;color:var(--muted)}
.dress-code-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin:32px 0 24px;text-align:left}
.dress-code-grid>div{padding:28px 30px;background:#f0f3e8;border:1px solid var(--line);border-radius:16px}
.dress-code-grid h3{margin:0 0 12px;font-size:22px}
.dress-code-grid p{margin:0;color:var(--muted)}
.dress-code-grid strong{color:var(--ink);font-weight:600}
.dress-code-note{margin:0;font-size:14px;color:var(--muted)}
@media(max-width:750px){.dress-code{margin:0 24px 42px;padding:36px 0}.dress-code-grid{grid-template-columns:1fr;gap:16px;margin-top:24px}.dress-code-grid>div{padding:24px}.dress-code .eyebrow{font-size:10px;letter-spacing:.16em}}

/* Full wedding day programme. */
@media(min-width:751px){.schedule-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:32px 24px}.schedule-grid:before{display:none}.schedule-grid>div{padding:24px 0 0;border-top:1px solid var(--line)}.schedule-grid>div:before{top:-7px}.schedule-grid strong{font-size:clamp(25px,2.6vw,36px);white-space:nowrap}}
@media(min-width:751px) and (max-width:1000px){.schedule-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:750px){.schedule-grid strong{font-size:32px}}

/* Luminous ivory paper with restrained sage washes across the main page. */
:root{--paper:#fdfbf6;--line:#dfe3d7}
body:has(main#main-content){background-color:var(--paper);background-image:url('paper-grain.svg'),radial-gradient(ellipse 85% 550px at 0% 0%,#e6ecdf99,transparent),radial-gradient(ellipse 65% 750px at 100% 38%,#edf0e380,transparent),radial-gradient(ellipse 75% 650px at 0% 82%,#e5ebdd80,transparent);background-repeat:repeat,no-repeat,no-repeat,no-repeat;background-size:160px 160px,100% 100%,100% 100%,100% 100%}
body:has(main#main-content) header{background:transparent;border-bottom-color:#dfe3d780}
.hero{background:radial-gradient(ellipse at 90% 50%,#e4ebdc99,transparent 72%),linear-gradient(120deg,#fffef9e6,#f1f4eacc);border-color:#e2e6d9;box-shadow:0 18px 60px #40573606}
.invitation{background:url('paper-grain.svg'),radial-gradient(ellipse at 50% 0%,#fffef9,#f1f4e9);border-color:#e1e5d8;box-shadow:0 15px 45px #40573604}
.venue-card{background:linear-gradient(145deg,#fffef9,#f1f4e9);border-color:#dfe5d6}
.dress-code-grid>div{background:#fffef9b3;border-color:#e0e5d9}
.rsvp{background:linear-gradient(130deg,#f4f6edee,#eaf0e1cc);border-color:#dfe5d6;box-shadow:0 16px 50px #40573605}
.rsvp form{background:#fffefbcc;border-color:#e0e5d9}
.photo-link-section{background:linear-gradient(130deg,#f6f7ef,#eaf0e2);border-color:#dfe5d6}

/* Reframe the original photograph in CSS, preserving both faces. */
.portrait-frame .couple-portrait,.envelope-card img{scale:1.55;transform-origin:55% 78%;object-position:55% 65%}
.envelope-card{isolation:isolate}.envelope-card img{position:relative;z-index:-1}
/* The earlier portrait remains a quiet memory behind this message only. */
.invitation{isolation:isolate;overflow:hidden;background:#fdfbf6}
.invitation:before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(#fdfbf6d9,#fdfbf6eb),url('damaris-israel.jpg') center 54% / cover no-repeat;pointer-events:none}
@media(max-width:600px){.portrait-frame .couple-portrait,.envelope-card img{scale:1.5;transform-origin:55% 80%}.invitation:before{background-position:center,54% center}}

/* Continue the invitation into a staggered page entrance, without reopening the portrait. */
body.opening-ready.opening-from-invitation .hero .portrait-frame,
body.opening-ready.opening-from-invitation .hero .couple-portrait,
body.opening-ready.opening-from-invitation .portrait-wrap:after{animation:none;opacity:1;transform:none;clip-path:none}
body.opening-ready.opening-from-invitation .hero .eyebrow{animation:wedding-text-arrive 1.1s .4s both}
body.opening-ready.opening-from-invitation .hero h1>.name:first-child{animation:wedding-name-arrive 1.6s .6s both}
body.opening-ready.opening-from-invitation .hero h1>.amp{animation:wedding-text-arrive 1.3s .85s both}
body.opening-ready.opening-from-invitation .hero h1>.second-name{animation:wedding-name-arrive 1.6s 1.05s both}
body.opening-ready.opening-from-invitation .hero-text{animation:wedding-text-arrive 1.3s 1.4s both}
body.opening-ready.opening-from-invitation .hero-date{animation:wedding-text-arrive 1.3s 1.75s both}
body.opening-ready.opening-from-invitation .hero .little-note{animation:wedding-text-arrive 1.2s 2s both}
body.opening-ready.opening-from-invitation .hero .button{animation:wedding-text-arrive 1.2s 2.2s both}
body.opening-ready.opening-from-invitation .invitation-replay{animation:wedding-text-arrive 1s 2.5s both}
body.opening-ready.opening-from-invitation .portrait-wrap .spring-petals{animation:petals-arrive 1.5s 1s both}
@keyframes wedding-text-arrive{from{opacity:0;transform:translateY(15px)}to{opacity:1;transform:translateY(0)}}
@keyframes wedding-name-arrive{from{opacity:0;transform:translateY(24px);filter:blur(3px)}to{opacity:1;transform:translateY(0);filter:blur(0)}}
body.opening-ready.opening-from-invitation .hero-copy *:focus-visible{animation:none}
@media(prefers-reduced-motion:reduce){body.opening-ready.opening-from-invitation .hero-copy *{animation:none!important;opacity:1;transform:none;filter:none}}
