/* Foundation */
:root {
  --paper: #f7f2e9;
  --ink: #342c24;
  --muted: #766b60;
  --accent: #95543e;
  --gold: #ad8850;
  --line: #dcd2c3;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 14px var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
a:focus-visible,button:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; }
::selection { background: #e5c9ac; }
.icon { display: inline-block; width: 20px; height: 20px; flex-shrink: 0; }
.skip-link { position: absolute; left: 20px; top: -100px; padding: 16px; background: var(--paper); z-index: 10; }
.skip-link:focus { top: 12px; }
.eyebrow { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 2.5px; color: var(--accent); line-height: 1.8; }
.short-rule { display: inline-block; width: 32px; height: 1px; background: var(--gold); flex-shrink: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 24px; min-height: 52px; padding: 16px 24px; background: var(--accent); color: #fffaf2; border: 1px solid var(--accent); font-size: 11px; letter-spacing: 1px; font-weight: 500; transition: background .2s, transform .2s; }
.button:hover { background: #75402e; transform: translateY(-2px); }
.button:not(.button-outline) .icon,.button-outline:hover .icon { filter: brightness(0) invert(1); }
.button-outline { background: transparent; color: var(--accent); }
.button-outline:hover { color: #fffaf2; }
h2 { font: 400 clamp(42px, 4.5vw, 64px)/1.06 var(--serif); margin: 16px 0 24px; letter-spacing: -1.5px; }
h2 em { font-weight: 400; color: var(--accent); }
.section { padding: 94px max(6%, calc((100vw - 1160px)/2)); }
.section-intro { text-align: center; max-width: 670px; margin: auto; }
.section-lead { color: var(--muted); font-size: 13px; line-height: 1.9; max-width: 510px; }
.section-intro .section-lead { margin: 0 auto; }

/* Header */
.site-header { max-width: 1320px; margin: auto; padding: 26px 6%; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); gap: 24px; }
.brand { font: 34px/1 var(--serif); white-space: nowrap; }
.brand>span { font-style: italic; color: var(--accent); font-size: 25px; margin: 0 6px; }
.brand small { font: 8px var(--sans); letter-spacing: 2px; display: block; margin-top: 9px; }
.site-header nav { display: flex; align-items: center; gap: 32px; font-size: 11px; }
.site-header nav a { padding: 10px 0; }
.site-header nav a:hover { color: var(--accent); }
.nav-contact { display: flex; align-items: center; gap: 13px; border-bottom: 1px solid var(--accent); }

/* Invitation and portrait */
.hero { position: relative; max-width: 1320px; margin: auto; padding: 72px 8% 70px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 7%; }
.hero-copy>.eyebrow { display: flex; align-items: center; gap: 13px; }
.family-intro { font-size: 12px; line-height: 1.9; color: var(--muted); margin: 26px 0 20px; }
h1 { font: 400 clamp(76px, 8.5vw, 120px)/.83 var(--serif); letter-spacing: -4px; margin: 22px 0 25px; }
.ampersand { font-size: .62em; font-style: italic; color: var(--accent); display: inline-block; transform: translateY(9px); }
.second-name { display: inline-block; margin-top: 12px; margin-left: 35px; }
.surnames { font-size: 10px; letter-spacing: 4px; margin: 28px 0; }
.surnames span { color: var(--accent); padding: 0 7px; }
.intro { max-width: 355px; line-height: 1.9; color: var(--muted); font-size: 12px; margin: 0 0 28px; }
.hero-meta { display: flex; gap: 10px; align-items: center; margin-top: 30px; color: var(--muted); font-size: 10px; }
.hero-meta .icon { width: 16px; height: 16px; color: var(--accent); }
.meta-dot { width: 3px; height: 3px; background: var(--gold); border-radius: 50%; margin: 0 2px; }
.portrait-composition { position: relative; padding: 15px 12px 0; min-width: 0; }
.portrait-frame { border-radius: 240px 240px 5px 5px; position: relative; aspect-ratio: .83; }
.portrait-frame:before { content: ''; position: absolute; inset: -12px 12px 12px -12px; border: 1px solid #b79c77; border-radius: inherit; z-index: 0; }
.couple-portrait { position: relative; width: 100%; height: 100%; object-fit: cover; object-position: 52% center; border-radius: inherit; }
.date-seal { position: absolute; right: -25px; bottom: 72px; width: 108px; height: 108px; background: var(--paper); border: 1px solid var(--gold); border-radius: 50%; outline: 6px solid var(--paper); display: flex; flex-direction: column; align-items: center; justify-content: center; transform: rotate(9deg); }
.date-seal span { font-size: 8px; letter-spacing: 1.8px; }
.date-seal strong { font: 500 45px/1.1 var(--serif); color: var(--accent); }
.portrait-caption { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 25px 0 0; font: italic 17px var(--serif); }
.heritage-shield { position: absolute; left: -45px; bottom: 36px; width: 65px; transform: rotate(-16deg); filter: drop-shadow(0 8px 8px #342c2430); }
.hero-side-note { position: absolute; right: 15px; top: 45%; writing-mode: vertical-rl; font-size: 8px; letter-spacing: 3px; color: var(--muted); }
.celebration-strip { background: #eae1d3; border-block: 1px solid var(--line); padding: 23px 20px; display: flex; justify-content: center; align-items: center; gap: 50px; text-transform: uppercase; font-size: 9px; letter-spacing: 2.3px; }
.diamond { width: 5px; height: 5px; background: var(--accent); transform: rotate(45deg); flex-shrink: 0; }

/* Event details and programme */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 44px; border: 1px solid var(--line); }
.info-card { padding: 34px 24px; text-align: center; }
.info-card+.info-card { border-left: 1px solid var(--line); }
.card-icon { width: 29px; height: 29px; color: var(--accent); margin-bottom: 13px; }
.info-card .eyebrow { color: var(--muted); font-size: 9px; }
.info-card h3 { font: 500 29px var(--serif); margin: 12px 0; }
.info-card>p:last-child { font-size: 11px; color: var(--muted); }
.programme { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; align-items: center; padding-top: 33px; }
.programme-heading h3 { font: 500 27px var(--serif); margin: 8px 0; }
.programme-event { display: flex; gap: 20px; align-items: center; border-left: 1px solid var(--line); padding-left: 28px; }
.event-number { color: var(--gold); font: italic 22px var(--serif); }
.programme-event time { font: 400 38px var(--serif); }
.programme-event p { font-size: 10px; letter-spacing: 1.4px; margin: 5px 0; color: var(--muted); text-transform: uppercase; }

/* Countdown */
.countdown { text-align: center; background: #342e25; color: var(--paper); position: relative; overflow: hidden; }
.countdown:before,.countdown:after { content: ''; position: absolute; width: 420px; height: 420px; border: 1px solid #b9986420; border-radius: 50%; top: 12%; pointer-events: none; }
.countdown:before { left: -300px; box-shadow: 0 0 0 40px #b9986409, 0 0 0 80px #b9986407; }
.countdown:after { right: -300px; box-shadow: 0 0 0 40px #b9986409, 0 0 0 80px #b9986407; }
.countdown .eyebrow { color: #d3b387; }
.countdown h2 { font-size: clamp(39px, 4.3vw, 61px); }
.countdown h2 em { color: #d3b387; }
.countdown-art { display: flex; align-items: center; justify-content: center; gap: 15px; margin-bottom: 25px; }
.countdown-art img { height: 48px; width: 38px; object-fit: contain; }
.countdown-art img:nth-child(2) { height: 65px; }
.timer { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 660px; margin: 36px auto; }
.timer>div+div { border-left: 1px solid #ffffff20; }
.timer strong { display: block; font: 400 clamp(48px, 6vw, 78px)/1.15 var(--serif); color: #ead8b8; }
.timer span { display: block; font-size: 9px; letter-spacing: 2px; text-transform: uppercase; margin-top: 12px; color: #d0c4b4; }
.countdown-note { font-size: 10px; letter-spacing: 1.4px; color: #d0c4b4; margin: 30px 0 0; }
.countdown-note span { margin: 0 13px; color: #b99864; }

/* Location and contacts */
.location-section { display: grid; grid-template-columns: 1fr 1fr; gap: 9%; align-items: center; }
.location-art { position: relative; min-height: 370px; overflow: hidden; border: 8px solid #fdfaf3; outline: 1px solid var(--line); }
.venue-map { display: block; width: 100%; height: 400px; border: 0; }
.location-address { font-size: 14px; line-height: 1.8; }
.location-copy .section-lead { font-size: 12px; margin: 18px 0 25px; }
.contact-section { text-align: center; border-top: 1px solid var(--line); background: #f0e8dd; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 880px; margin: 40px auto 30px; }
.contact-card { display: flex; gap: 22px; text-align: left; padding: 28px; background: var(--paper); border: 1px solid var(--line); align-items: flex-start; }
.contact-initial { display: grid; place-items: center; width: 48px; height: 58px; flex-shrink: 0; border: 1px solid #c5b194; border-radius: 28px 28px 0 0; font: italic 32px var(--serif); color: var(--accent); }
.contact-card h3 { font: 500 32px var(--serif); margin: 0 0 15px; }
.contact-card a { display: flex; align-items: center; gap: 10px; font-size: 12px; padding: 8px 0; }
.contact-card a:hover { color: var(--accent); text-decoration: underline; }
.contact-card a .icon { width: 16px; height: 16px; color: var(--accent); }
.contact-card a span { font-size: 9px; color: var(--muted); }
.footer { text-align: center; padding: 44px 20px; }
.footer-monogram { font: 400 48px var(--serif); }
.footer-monogram span { font-style: italic; font-size: 34px; color: var(--accent); margin: 0 5px; }
.footer p { font: italic 18px var(--serif); color: var(--muted); }
.footer-date { font-size: 8px; letter-spacing: 2px; color: var(--muted); }

/* Tablet and phone layouts */
@media (min-width: 1440px) {
  .hero { padding-left: 105px; padding-right: 105px; }
  .site-header { padding-left: 80px; padding-right: 80px; }
}
@media (max-width: 900px) {
  .hero { padding: 55px 6%; gap: 5%; }
  h1 { font-size: 82px; }
  .hero-side-note { display: none; }
  .date-seal { width: 90px; height: 90px; right: -12px; }
  .portrait-caption { font-size: 15px; gap: 8px; }
  .portrait-caption .short-rule { width: 20px; }
  .hero-meta { flex-wrap: wrap; }
  .section { padding: 72px 6%; }
  .contact-card { gap: 14px; padding: 22px 18px; }
  .contact-initial { display: none; }
  .programme { gap: 15px; }
  .programme-event { padding-left: 18px; gap: 14px; }
}
@media (max-width: 650px) {
  .site-header { padding: 20px 6%; gap: 14px; }
  .brand { font-size: 29px; }
  .brand small { font-size: 7px; letter-spacing: 1.3px; }
  .site-header nav { gap: 15px; font-size: 10px; }
  .nav-contact .icon { display: none; }
  .hero { grid-template-columns: 1fr; padding: 39px 8% 45px; gap: 40px; }
  .hero-copy { text-align: center; }
  .hero-copy>.eyebrow { justify-content: center; font-size: 9px; }
  .family-intro { margin-top: 20px; }
  h1 { font-size: clamp(80px, 19vw, 115px); }
  .second-name { margin-left: 0; }
  .intro { margin: 0 auto 25px; }
  .surnames { font-size: 9px; }
  .hero-meta { justify-content: center; margin-top: 24px; }
  .portrait-composition { max-width: 400px; width: 90%; margin: 0 auto; }
  .portrait-frame { aspect-ratio: .94; }
  .heritage-shield { left: -27px; width: 51px; }
  .portrait-caption { font-size: 16px; }
  .date-seal { bottom: 60px; }
  .celebration-strip { gap: 18px; font-size: 8px; letter-spacing: 1px; padding: 20px 12px; }
  .celebration-strip span:last-child,.celebration-strip .diamond:nth-last-child(2) { display: none; }
  .section { padding: 60px 7%; }
  h2 { font-size: 44px; }
  .info-grid { grid-template-columns: 1fr; margin-top: 30px; }
  .info-card { padding: 26px 20px; }
  .info-card+.info-card { border-left: 0; border-top: 1px solid var(--line); }
  .info-card h3 { font-size: 30px; }
  .programme { grid-template-columns: 1fr 1fr; gap: 25px; }
  .programme-heading { grid-column: 1/-1; text-align: center; }
  .programme-event { padding-left: 16px; justify-content: center; }
  .programme-event time { font-size: 34px; }
  .timer { margin: 28px auto; }
  .timer span { font-size: 8px; letter-spacing: 1px; }
  .timer strong { font-size: 52px; }
  .location-section { grid-template-columns: 1fr; gap: 35px; }
  .location-art { min-height: 300px; order: 2; }
  .venue-map { height: 340px; }
  .location-copy { text-align: center; }
  .location-copy .section-lead { margin: 18px auto 25px; }
  .contact-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 28px; }
  .contact-card { padding: 25px; gap: 24px; }
  .contact-initial { display: grid; }
  .contact-card a { flex-wrap: wrap; }
  .footer p { max-width: 280px; margin: 16px auto; line-height: 1.5; }
}
@media (max-width: 360px) {
  .programme { gap: 18px 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .programme-event { gap: 8px; padding-left: 8px; }
  .programme-event time { font-size: 30px; }
  .programme-event p { font-size: 9px; letter-spacing: 1px; }
  .site-header nav { gap: 10px; font-size: 9px; }
  .contact-card { padding: 20px 15px; gap: 15px; }
  .button { gap: 14px; padding-inline: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { transition: none !important; }
}

/* Downloadable event calendar */
.calendar-action { margin-top: 36px; text-align: center; }
.calendar-action p { margin: 14px auto 0; max-width: 420px; color: var(--muted); font-size: 11px; line-height: 1.8; }


/* Cinematic welcome and dimensional stationery */
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
body.intro-active{overflow:hidden}
.welcome-envelope{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;background:#21160f;color:#ead4a6;overflow:auto}
.welcome-envelope::backdrop{background:#21160f}
.welcome-backdrop,.welcome-shade{position:absolute;inset:0;width:100%;height:100%}
.welcome-backdrop img{width:100%;height:100%;object-fit:cover}
.welcome-shade{background:linear-gradient(180deg,#120c0970,transparent 45%,#120c09b0),radial-gradient(ellipse at center,#100b0820,#100b0860)}
.envelope-welcome{position:relative;min-height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:35px 20px 20px;text-align:center}
.envelope-heading{text-shadow:0 2px 18px #140b08}
.envelope-ceremony{font:400 14px 'Cinzel',Georgia,serif;letter-spacing:4px;margin:0 0 12px}
.envelope-heading h2{font:400 clamp(55px,6.8vw,92px)/1.15 'Great Vibes','Palatino Linotype',Georgia,serif;color:#f0ce8c;margin:0;letter-spacing:0}
.envelope-heading h2 span{font-size:.7em}
.envelope-date{display:flex;justify-content:center;align-items:center;gap:18px;font-size:10px;letter-spacing:4px;margin:16px 0 0}
.envelope-date>span{width:38px;height:1px;background:#d6b67c80}
.envelope-stage{width:min(540px,78vw);margin:45px 0 25px;perspective:1400px;position:relative}
.envelope{display:block;position:relative;width:100%;aspect-ratio:1.65;border:1px solid #c9ac73;padding:0;background:linear-gradient(145deg,#bfa57c,#e4d5b5);box-shadow:0 28px 65px #0009,0 3px 5px #0005;cursor:pointer;color:#493a27;font-family:'Cinzel',Georgia,serif;isolation:isolate}
.envelope-front,.envelope-side,.envelope-flap,.envelope-border{position:absolute;inset:0;pointer-events:none}
.envelope-side-left{background:linear-gradient(130deg,#fff7e5,#d5c4a4);clip-path:polygon(0 0,58% 55%,0 100%);z-index:3}
.envelope-side-right{background:linear-gradient(240deg,#f9eed8,#cbbc9b);clip-path:polygon(100% 0,42% 55%,100% 100%);z-index:3}
.envelope-front{background:repeating-linear-gradient(8deg,#ffffff07 0 1px,transparent 1px 3px),linear-gradient(165deg,#fff8e9,#e2d2af);clip-path:polygon(0 100%,0 95%,50% 39%,100% 95%,100% 100%);z-index:4}
.envelope-flap{z-index:5;transform-origin:50% 0;transform-style:preserve-3d;background:linear-gradient(155deg,#fff7e6,#e3d2ae);clip-path:polygon(0 0,100% 0,50% 57%);filter:drop-shadow(0 3px 2px #72563255)}
.envelope-flap>span{position:absolute;inset:8px 10px;background:linear-gradient(155deg,#d4b478,#aa8444);clip-path:polygon(0 0,100% 0,50% 57%,0 0,50% 55%,98% 1%,2% 1%,50% 55%)}
.envelope-border{inset:10px;border:1px solid #b8955266;z-index:6}
.envelope-message{position:absolute;top:68%;left:3%;width:94%;z-index:7;font-size:clamp(9px,1.2vw,14px);letter-spacing:2px;line-height:1.8}
.envelope-message>span{display:block;font-size:.7em;letter-spacing:4px;margin-top:5px}
.envelope-beads{position:absolute;bottom:0;width:16%;height:23%;z-index:6;background:repeating-conic-gradient(#251e17 0 25%,#e5cf9f 0 50%,#916c35 0 75%,#f8eed4 0) 0 0/12px 12px;border-top:3px solid #ad8547;opacity:.9}
.beads-left{left:0;clip-path:polygon(0 0,100% 100%,0 100%)}
.beads-right{right:0;clip-path:polygon(100% 0,100% 100%,0 100%)}
.envelope-seal{position:absolute;width:69px;height:78px;top:43%;left:50%;transform:translate(-50%,-50%) rotate(-7deg);z-index:8;filter:drop-shadow(0 4px 4px #0006)}
.seal-half{position:absolute;inset:0;border-radius:48%;background:radial-gradient(ellipse,#29241c 48%,#b89552 50%,#e4c78b 54%,#6e522b 60%,#caa565 67%,#34291c 70%)}
.seal-half img{position:absolute;height:45px;width:28px;object-fit:contain;left:21px;top:16px;filter:sepia(1)}
.seal-left{clip-path:polygon(0 0,55% 0,47% 35%,57% 55%,47% 75%,53% 100%,0 100%)}
.seal-right{clip-path:polygon(55% 0,100% 0,100% 100%,53% 100%,47% 75%,57% 55%,47% 35%)}
.envelope-letter{position:absolute;inset:8% 8% 3%;z-index:2;display:flex;flex-direction:column;align-items:center;padding:12px;background:#f8efdd;border:1px solid #b89552;box-shadow:0 4px 20px #0004;overflow:hidden}
.envelope-letter img{width:100%;height:72%;object-fit:cover;object-position:center 20%}
.letter-kicker{font-size:7px;letter-spacing:3px;margin-top:9px}
.envelope-letter strong{font:italic 25px var(--serif);margin:4px 0}
.letter-date{font-size:7px;letter-spacing:2px}
.envelope-greeting{font:italic 19px var(--serif);color:#f1e3ca;margin:0 0 18px}
.envelope-open{display:inline-flex;align-items:center;gap:35px;min-height:52px;padding:0 25px;border:1px solid #c5a16b;background:#171511e8;color:#edcf98;font:11px var(--sans);letter-spacing:2px;cursor:pointer;box-shadow:0 6px 24px #0004}
.envelope-open:hover{background:#33281b}
.envelope-arrow img{width:18px;filter:brightness(0) invert(.85) sepia(1)}
.welcome-footnote{font-size:8px;letter-spacing:3px;margin:16px 0 0;color:#dcc59e}
.welcome-footnote span{margin:0 10px}
.is-opening .envelope-seal{animation:seal-glow .7s ease both}
.is-opening .seal-left{animation:seal-left .65s .55s ease forwards}
.is-opening .seal-right{animation:seal-right .65s .55s ease forwards}
.is-opening .envelope-flap{animation:flap-open 1.25s .85s cubic-bezier(.25,.7,.25,1) forwards}
.is-opening .envelope-letter{animation:letter-rise 1.6s 1.7s cubic-bezier(.22,.65,.24,1) forwards}
.is-opening .envelope-stage{animation:camera-in 1.15s 2.85s ease-in forwards}
.is-opening .envelope-heading,.is-opening .envelope-open,.is-opening .envelope-greeting,.is-opening .welcome-footnote{transition:opacity .6s;opacity:0}
.welcome-envelope.is-leaving{opacity:0;transition:opacity .65s ease;pointer-events:none}
@keyframes seal-glow{60%{filter:drop-shadow(0 0 19px #ffe3a1)}}
@keyframes seal-left{to{transform:translate(-28px,20px) rotate(-25deg);opacity:0}}
@keyframes seal-right{to{transform:translate(28px,20px) rotate(25deg);opacity:0}}
@keyframes flap-open{49%{z-index:5}50%,100%{z-index:1}to{transform:rotateX(180deg)}}
@keyframes letter-rise{65%{transform:translateY(-69%);z-index:2}66%{z-index:9}to{transform:translateY(-65%) scale(1.08);z-index:9}}
@keyframes camera-in{to{transform:translateY(10%) scale(1.55)}}
.photo-welcome{position:relative;height:90svh;min-height:540px;overflow:hidden;background:#21160f}
.photo-welcome-image{width:100%;height:100%;object-fit:cover;object-position:center 20%}
.photo-welcome-shade{position:absolute;inset:0;background:linear-gradient(transparent 30%,#100c09cf)}
.photo-welcome-copy{position:absolute;bottom:9%;left:5%;right:5%;text-align:center;color:#fff1d8}
.photo-welcome-copy>p{font-size:11px;letter-spacing:4px}
.photo-welcome-copy h2{font:400 clamp(58px,8vw,110px)/1.2 'Great Vibes','Palatino Linotype',Georgia,serif;margin:15px 0;color:#f1d198;letter-spacing:0}
.photo-scroll{display:inline-flex;align-items:center;gap:14px;margin-top:25px;font-size:11px}
.photo-scroll img{filter:brightness(0) invert(1)}
.invitation-revealed .photo-welcome-image{animation:portrait-reveal 1.6s ease-out both}
@keyframes portrait-reveal{from{transform:scale(1.08)}to{transform:scale(1)}}
.scroll-reveal{opacity:0;transform:translateY(22px);transition:opacity .8s,transform .8s}
.scroll-reveal.is-visible{opacity:1;transform:none}
@media(max-width:650px){
.envelope-welcome{padding:36px 16px 18px}.envelope-ceremony{font-size:10px;letter-spacing:2.5px}.envelope-heading h2{font-size:60px}.envelope-stage{width:min(440px,88vw);margin:55px 0 32px}.envelope-message{letter-spacing:1px;font-size:10px}.envelope-seal{width:53px;height:62px}.seal-half img{width:22px;height:36px;left:16px;top:13px}.envelope-greeting{font-size:17px}.envelope-letter strong{font-size:19px}.letter-kicker{margin-top:5px}.photo-welcome{height:78svh;min-height:480px}
}
@media(max-height:700px) and (min-width:651px){.envelope-stage{width:420px;margin:20px 0}.envelope-heading h2{font-size:60px}.envelope-welcome{padding-top:20px}.welcome-footnote{margin-top:5px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none !important;scroll-behavior:auto !important}.scroll-reveal{opacity:1;transform:none}}


/* A refined fallback remains available when web fonts cannot load. */
.envelope-heading h2,.photo-welcome-copy h2 { font-style:italic; }
@media(max-width:380px) {
 .envelope-heading h2 { font-size:48px; }
 .envelope-message { font-size:8px; }
 .envelope-date { letter-spacing:2px; }
}

/* The reveal heading receives focus for navigation, not as an interactive control. */
#photo-welcome-title:focus { outline: none; }

/* RSVP */
.rsvp-section { background:#eee4d5; border-top:1px solid var(--line); }
.rsvp-form { max-width:720px; margin:36px auto 0; }
.rsvp-fields { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.rsvp-form label { display:flex; flex-direction:column; gap:10px; font-size:12px; line-height:1.6; }
.rsvp-form label>span { display:contents; }
.rsvp-form input,.rsvp-form select,.rsvp-form textarea { width:100%; min-height:48px; border:1px solid #b6a58d; background:#fffaf2; border-radius:0; padding:12px; color:var(--ink); font:16px var(--sans); }
.rsvp-form textarea { resize:vertical; }
.rsvp-form :is(input,select,textarea):focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.rsvp-wide { grid-column:1/-1; }
.rsvp-optional,.rsvp-privacy { color:var(--muted); }
.rsvp-privacy { font-size:12px; line-height:1.8; margin:20px 0; }
.rsvp-trap { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.rsvp-status { line-height:1.8; font-size:14px; min-height:26px; }
.rsvp-status[data-state="error"] { color:#8a2921; }
.rsvp-status[data-state="success"] { color:#315c35; }
.rsvp-form button:disabled { opacity:.65; cursor:wait; }
#rsvp-guests-label[hidden] { display:none; }
@media(max-width:650px) { .rsvp-fields { grid-template-columns:1fr; gap:20px; } .site-header nav { gap:10px; } }
@media(max-width:380px) { .site-header { flex-wrap:wrap; justify-content:center; } .site-header nav { width:100%; justify-content:space-between; } }
