:root {
  color-scheme: light;
  --ink: #38121b;
  --ink-soft: #4a1b25;
  --cream: #f6efe5;
  --paper: #efe0ce;
  --white: #fffdf8;
  --gold: #e1b989;
  --muted: #6e6b64;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 1rem/1.55 var(--sans); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid #c18b5a; outline-offset: 4px; }
[hidden] { display: none !important; }
::selection { background: var(--gold); color: var(--ink); }

.skip-link { position: fixed; z-index: 200; top: -60px; left: 16px; padding: 9px 14px; background: var(--white); color: var(--ink); }
.skip-link:focus { top: 12px; }
.topbar { position: absolute; z-index: 30; top: 0; left: 0; width: 100%; min-height: 96px; padding: 24px clamp(24px, 5.3vw, 88px); display: flex; align-items: center; justify-content: space-between; gap: 25px; color: var(--white); }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-family: var(--serif); font-size: 1.14rem; letter-spacing: -.03em; white-space: nowrap; }
.brand-mark { color: #efc89b; font-size: 1.45rem; }
.brand-caption { font-style: italic; }
.brand-rule { width: 1px; height: 23px; background: var(--gold); transform: rotate(24deg); }
.desktop-nav { display: flex; gap: clamp(18px, 2.5vw, 44px); margin-left: auto; }
.desktop-nav a, .setup-link { font-size: .8rem; font-weight: 500; text-decoration: none; letter-spacing: .08em; text-transform: uppercase; transition: color .25s ease, opacity .25s ease; }
.desktop-nav a:hover, .setup-link:hover { color: var(--gold); }
.setup-link { border: 1px solid rgba(255,255,255,.46); border-radius: 0; padding: 11px 16px; background: transparent; color: inherit; white-space: nowrap; }

.hero { position: relative; isolation: isolate; display: flex; min-height: min(900px, 100svh); min-height: max(730px, 100svh); color: var(--white); overflow: hidden; background: #290c12; }
.hero-image { position: absolute; z-index: -3; inset: 0; animation: image-arrive 2.4s ease-out both; }
.hero::before { content: ''; position: absolute; z-index: -2; inset: 0; background: linear-gradient(90deg, rgba(25,5,9,.82) 0%, rgba(25,5,9,.45) 43%, rgba(25,5,9,.03) 78%), linear-gradient(0deg, rgba(25,5,9,.38), transparent 35%); }
.hero-grain { pointer-events: none; position: absolute; z-index: -1; inset: 0; opacity: .16; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.38'/%3E%3C/svg%3E"); }
.hero-inner { width: 100%; max-width: 1600px; margin: auto; padding: 190px clamp(24px, 8.5vw, 136px) 130px; display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.hero-copy { max-width: 820px; animation: content-arrive 1.1s .15s both; }
.eyebrow { margin: 0; font-size: .78rem; font-weight: 600; letter-spacing: .19em; line-height: 1.5; text-transform: uppercase; }
.hero-intro { display: flex; align-items: center; gap: 14px; color: #e8c49b; }
.eyebrow-line { width: 37px; height: 1px; background: currentColor; }
.hero h1 { margin: 30px 0 26px; font: 400 clamp(4.3rem, 7.6vw, 8.3rem)/.96 var(--serif); letter-spacing: -.055em; text-wrap: balance; }
.serif-italic, em { font-family: var(--serif); font-weight: 400; font-style: italic; }
.serif-italic { color: #e6c5a0; }
.hero-sub { max-width: 445px; margin: 0; color: #e8e3da; font-size: 1.08rem; line-height: 1.72; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 30px; margin-top: 40px; }
.button { min-height: 54px; display: inline-flex; justify-content: center; align-items: center; gap: 23px; padding: 14px 22px; border: 1px solid transparent; border-radius: 0; text-decoration: none; font-size: .83rem; font-weight: 600; letter-spacing: .075em; text-transform: uppercase; line-height: 1.3; transition: transform .3s ease, background .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease; }
.button:hover { transform: translateY(-3px); }
.button:active { transform: translateY(0); }
.button span:last-child { font-size: 1.15rem; font-weight: 400; line-height: 1; }
.button-light { background: #f3ede3; color: #1a1d1d; }
.button-light:hover { background: #fff; box-shadow: 0 14px 35px #0004; }
.text-button { padding: 9px 0; border: 0; border-bottom: 1px solid currentColor; border-radius: 0; background: none; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; transition: color .25s ease, padding .25s ease; }
.text-button:hover { padding-left: 5px; color: var(--gold); }
.text-button-light { color: var(--white); }
.text-button span { margin-left: 10px; }
.scroll-cue { position: absolute; left: clamp(24px, 5.3vw, 88px); bottom: 27px; display: flex; align-items: center; gap: 15px; color: #e7e2d9; text-decoration: none; font-size: .73rem; letter-spacing: .13em; text-transform: uppercase; }
.scroll-cue span { width: 1px; height: 46px; background: #e7e2d9; transform-origin: top; animation: scroll-line 2s ease-in-out infinite; }

.draft-note { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px clamp(24px, 7vw, 110px); background: #dfc5a2; color: #26221e; font-size: .89rem; }
.draft-note button { border: 0; border-bottom: 1px solid currentColor; padding: 4px 0; background: none; white-space: nowrap; font-weight: 600; }
.section-pad { padding: clamp(75px, 9vw, 150px) clamp(24px, 8vw, 126px); }
.section-index { display: flex; align-items: center; gap: 26px; max-width: 1450px; margin: 0 auto; color: #8a7a67; font-size: .76rem; font-weight: 600; letter-spacing: .18em; white-space: nowrap; }
.section-index .hairline { height: 1px; flex: 1; background: #cfc5b7; }
.intro { background: var(--cream); }
.intro-grid { display: grid; grid-template-columns: 27% 1fr; gap: 35px; max-width: 1450px; margin: clamp(55px, 7vw, 115px) auto 0; }
.intro-side { margin: 12px 0 0; color: #837361; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.intro-main { max-width: 950px; }
.intro-main h2 { margin: 0; font: 400 clamp(2.8rem, 5.5vw, 6.2rem)/1.12 var(--serif); letter-spacing: -.048em; }
.intro-main h2 em { color: #8f3a47; }
.intro-main > p { max-width: 575px; margin: 36px 0 0; color: #595851; font-size: 1.09rem; line-height: 1.85; }
.signature { margin-top: 42px; font: italic 2rem var(--serif); color: #8f3a47; }

.date-section { background: #401622; color: var(--white); }
.section-index-dark { color: #ccae88; }
.section-index-dark .hairline { background: #78515a; }
.details-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .74fr); gap: clamp(50px, 8vw, 145px); max-width: 1450px; margin: clamp(65px, 7vw, 120px) auto 0; align-items: end; }
.event-kicker { margin: 0 0 22px; color: #e1bb91; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }
.event-display h2 { margin: 0; font: 400 clamp(4.5rem, 8.2vw, 9rem)/.95 var(--serif); letter-spacing: -.067em; }
.event-display h2 span { display: block; margin: 6px 0 0 8px; font: italic 400 clamp(3.9rem, 7.3vw, 8.2rem)/1.05 var(--serif); letter-spacing: -.055em; color: #e4b989; }
.event-note { max-width: 430px; margin: 24px 0 36px 8px; color: #ead9d1; font-size: 1.03rem; line-height: 1.7; }
.button-outline { border-color: #86735d; background: transparent; color: var(--white); }
.button-outline:hover { background: #d3b28c; border-color: #d3b28c; color: var(--ink); }
.detail-card { position: relative; padding: 43px clamp(25px, 3.4vw, 55px) 48px; border: 1px solid #9c6972; background: #4b1d29; }
.detail-card::before { content: ''; position: absolute; inset: 6px; border: 1px solid #78505a; pointer-events: none; }
.detail-card-number { display: block; margin-bottom: 58px; color: #b59776; font: italic 1.8rem var(--serif); }
.detail-line { display: flex; align-items: baseline; justify-content: space-between; gap: 22px; padding: 18px 0; border-bottom: 1px solid #76515a; }
.detail-line span { color: #b6aaa0; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.detail-line strong { max-width: 63%; font: 400 1.15rem/1.35 var(--serif); text-align: right; overflow-wrap: anywhere; }
.detail-pending { margin: 32px 0 0; color: #b8b0a6; font-size: .95rem; }
.detail-map { display: inline-flex; gap: 18px; margin-top: 33px; padding-bottom: 8px; border-bottom: 1px solid #d3b28c; color: #f0d0a5; font-size: .84rem; font-weight: 600; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; transition: color .2s ease; }
.detail-map:hover { color: white; }

.reply-section { position: relative; overflow: hidden; background: #efe1d0; text-align: center; }
.reply-content { position: relative; z-index: 1; max-width: 750px; margin: 0 auto; }
.reply-content > .eyebrow { color: #8e4d42; }
.reply-content h2 { margin: 32px 0 28px; font: 400 clamp(3.8rem, 7vw, 7.6rem)/1.05 var(--serif); letter-spacing: -.055em; }
.reply-content h2 em { color: #943e4b; }
.reply-content > p:not(.eyebrow) { max-width: 540px; margin: 0 auto; color: #5d5c55; font-size: 1.07rem; line-height: 1.78; }
.reply-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 42px; }
.button-dark { background: var(--ink); color: #fff9ee; }
.button-dark:hover { background: #3c332d; box-shadow: 0 12px 30px #302b2533; }
.button-ghost { border-color: #81766b; background: transparent; color: var(--ink); }
.button-ghost:hover { background: #f8f4ec; }
.reply-flourish { position: absolute; top: 40px; right: -40px; color: #d9bcae; font: 400 clamp(21rem, 33vw, 37rem)/1 var(--serif); transform: rotate(-20deg); user-select: none; }
.footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 15px 30px; min-height: 110px; padding: 25px clamp(24px, 8vw, 126px); background: #38121b; color: #f1e0cd; font-size: .85rem; }
.footer span:first-child { font: italic 1.35rem var(--serif); }
.footer button, .footer a { border: 0; padding: 8px 0; background: none; color: inherit; font-size: .79rem; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.footer button:hover, .footer a:hover { color: var(--gold); }

.modal { width: min(92vw, 550px); max-height: min(90vh, 900px); padding: 0; border: 0; background: #f6efe5; color: var(--ink); box-shadow: 0 28px 95px #0007; }
.modal::backdrop { background: rgba(12,14,15,.73); backdrop-filter: blur(5px); }
.modal[open] { animation: modal-enter .32s ease both; }
.modal-inner { position: relative; display: flex; flex-direction: column; gap: 17px; padding: clamp(27px, 5vw, 52px); }
.modal-close { position: absolute; top: 14px; right: 18px; width: 35px; height: 35px; border: 0; background: transparent; color: #555; font-size: 1.8rem; line-height: 1; }
.modal .eyebrow { color: #a27750; }
.modal h2 { margin: 0; font: 400 clamp(2.4rem, 5vw, 3.5rem)/1.12 var(--serif); letter-spacing: -.04em; }
.modal-desc, .modal-help { margin: 0; color: #69665e; font-size: .94rem; line-height: 1.55; }
.modal label { display: flex; flex-direction: column; gap: 7px; color: #383832; font-size: .88rem; font-weight: 600; }
.modal input, .modal textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #c4b9aa; border-radius: 0; background: #fffdf8; color: var(--ink); font-size: 1rem; font-weight: 400; }
.modal textarea { resize: vertical; }
.optional-label { display: inline; color: #817c71; font-size: .78rem; font-weight: 400; }
.modal-action { width: 100%; margin-top: 7px; }
.message-preview { margin: 0; padding: 19px; border-left: 2px solid #aa805b; background: #e9e2d7; white-space: pre-wrap; overflow-wrap: anywhere; }
.setup-modal { width: min(94vw, 660px); }
.setup-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; }
.link-result { display: grid; gap: 12px; margin-top: 7px; padding: 17px; border: 1px solid #cbbba7; background: #ebe1d4; }
.link-result input { font-size: .85rem; }
.link-actions { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.link-actions button, .link-actions a { padding: 3px 0; border: 0; border-bottom: 1px solid #8c6b4e; background: none; color: #55402c; font-size: .84rem; font-weight: 600; text-decoration: none; }
.toast { position: fixed; z-index: 80; bottom: 25px; left: 50%; width: max-content; max-width: calc(100vw - 32px); padding: 11px 17px; background: #242323; color: #fff; font-size: .9rem; text-align: center; box-shadow: 0 10px 35px #0004; opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes content-arrive { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
@keyframes image-arrive { from { transform: scale(1.06); opacity: .6; } to { transform: scale(1); opacity: 1; } }
@keyframes scroll-line { 50% { transform: scaleY(.58); } }
@keyframes modal-enter { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (max-width: 1050px) {
  .hero-inner { align-items: start; flex-direction: column; gap: 40px; }
  .details-grid { gap: 40px; }
  .event-display h2 { font-size: clamp(4.5rem, 8vw, 7rem); }
}
@media (max-width: 700px) {
  .topbar { min-height: 78px; padding: 18px 24px; }
  .desktop-nav { display: none; }
  .setup-link { font-size: .68rem; padding: 8px 10px; }
  .hero { min-height: 800px; min-height: 100svh; }
  .hero-image { background-position: 58% center; }
  .hero::before { background: linear-gradient(90deg, rgba(25,5,9,.88), rgba(25,5,9,.48) 78%), linear-gradient(0deg, rgba(25,5,9,.5), transparent 40%); }
  .hero-inner { min-height: 760px; min-height: 100svh; justify-content: center; padding: 110px 25px 100px; }
  .hero h1 { margin: 25px 0; font-size: clamp(3.25rem, 11vw, 5.6rem); }
  .hero-sub { font-size: 1rem; }
  .hero-actions { gap: 18px; margin-top: 30px; }
  .scroll-cue { bottom: 16px; }
  .scroll-cue span { height: 26px; }
  .draft-note { align-items: start; flex-direction: column; }
  .intro-grid, .details-grid { grid-template-columns: 1fr; }
  .intro-grid { gap: 18px; margin-top: 58px; }
  .intro-main h2 { font-size: clamp(2.9rem, 10vw, 4.6rem); }
  .intro-main > p { margin-top: 25px; }
  .details-grid { margin-top: 60px; gap: 58px; }
  .event-display h2 { font-size: clamp(4.5rem, 13vw, 6rem); }
  .event-display h2 span { font-size: clamp(4rem, 12vw, 5.5rem); }
  .detail-card-number { margin-bottom: 35px; }
  .reply-content h2 { font-size: clamp(3.35rem, 11vw, 5.5rem); }
  .reply-flourish { opacity: .5; }
  .footer { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 390px) {
  .hero h1 { font-size: 3.18rem; }
  .eyebrow { font-size: .72rem; }
  .hero-actions .button { width: 100%; }
  .event-display h2 { font-size: 4rem; }
  .event-display h2 span { font-size: 3.7rem; }
  .setup-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Floral stationery direction: a calm paper column opens from the envelope. */
:root {
  --ink: #632c3c;
  --ink-soft: #784355;
  --cream: #fff7f7;
  --paper: #f7e9ed;
  --white: #fffdfb;
  --gold: #cda56e;
}
body { background: #ead7dd; color: var(--ink); }
body.cover-locked { overflow: hidden; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.cover { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; overflow: hidden; background: #e9d5d9; opacity: 1; transition: opacity .9s ease, transform .9s ease; }
.cover-card { position: relative; width: min(100%, 540px); height: 100svh; min-height: 580px; background: #efe4d6 url('cover.png') center center/cover no-repeat; box-shadow: 0 0 70px #723b4b33; cursor: pointer; transition: transform 1.1s cubic-bezier(.16,.8,.22,1); }
.cover-kicker { position: absolute; top: 31%; left: 10%; right: 10%; margin: 0; color: #744153; font: italic 400 clamp(1.75rem, 5vw, 2.35rem)/1.25 var(--serif); letter-spacing: .025em; text-align: center; text-shadow: 0 1px 8px #fff7f2aa; }
.cover-open { position: absolute; top: 64%; left: 50%; width: 112px; height: 112px; padding: 0; border: 1px solid transparent; border-radius: 50%; background: transparent; transform: translate(-50%, -50%); transition: box-shadow .55s ease, transform .55s ease, opacity .55s ease; }
.cover-open:hover, .cover-open:focus-visible { box-shadow: 0 0 0 9px #fffaf688, 0 0 0 18px #fffaf633; transform: translate(-50%, -50%) scale(1.035); }
.cover-hint { position: absolute; bottom: 6.5%; left: 10%; right: 10%; margin: 0; color: #745663; font-size: .82rem; font-weight: 600; letter-spacing: .16em; text-align: center; text-transform: uppercase; animation: hint-pulse 2.6s ease-in-out infinite; }
.cover.opening { opacity: 0; transform: translateY(-14px); pointer-events: none; }
.cover.opening .cover-card { transform: translateY(-55px) scale(1.05); }
@keyframes hint-pulse { 50% { opacity: .45; } }

.topbar { left: 50%; width: min(100%, 820px); min-height: 80px; padding: 20px 44px; transform: translateX(-50%); color: #744255; }
.brand-mark { color: #a46979; }
.brand-rule { background: #bb9679; }
.desktop-nav a:hover, .setup-link:hover { color: #a86170; }
.setup-link { border-color: #c69aab; border-radius: 50px; }
.hero { max-width: 820px; min-height: 100svh; margin: 0 auto; background: #fbeef2; color: #672c3e; }
.hero-image { background: url('frame.png') center center/100% 100% no-repeat; animation: floral-arrive 1.9s ease-out both; }
.hero::before { background: radial-gradient(circle at center, #fffafb88 0%, transparent 63%); }
.hero-grain { opacity: .07; }
.hero-inner { min-height: 100svh; padding: 160px 85px 130px; align-items: center; justify-content: center; text-align: center; }
.hero-copy { max-width: 590px; }
.hero-intro { justify-content: center; color: #9a6073; }
.eyebrow-line { background: #ba8d9c; }
.hero h1 { margin: 27px 0 25px; color: #632c3c; font-size: clamp(3.7rem, 6.8vw, 5.6rem); line-height: 1.08; letter-spacing: -.055em; }
.serif-italic { color: #88465b; }
.hero-sub { max-width: 440px; margin: 0 auto; color: #765661; line-height: 1.72; }
.hero-actions { justify-content: center; }
.button { border-radius: 100px; }
.button-light { background: #8b5365; color: #fffaf6; }
.button-light:hover { background: #6d3447; }
.text-button-light { color: #78495b; }
.text-button-light:hover { color: #a46a7b; }
.scroll-cue { left: 50%; bottom: 25px; color: #9b6b7a; transform: translateX(-50%); white-space: nowrap; }
.scroll-cue span { background: #b88996; }
.draft-note { max-width: 820px; margin: auto; background: #f2dce2; }
.section-pad { position: relative; max-width: 820px; margin: 0 auto; padding: 105px 75px; }
.section-index { position: relative; color: #a47682; }
.section-index .hairline { background: #d8bdc5; }
.intro { min-height: 650px; background: #fffaf8; }
.intro::before, .reply-section::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: url('frame.png') center center/100% 100% no-repeat; opacity: .22; }
.intro-grid { position: relative; display: grid; grid-template-columns: 1fr; gap: 10px; max-width: 610px; margin: 65px auto 0; text-align: center; }
.intro-side { margin: 0; color: #ac7b87; }
.intro-main h2 { margin: 0 auto; font-size: clamp(2.65rem, 4.8vw, 4.15rem); line-height: 1.16; }
.intro-main h2 em { color: #b57385; }
.intro-main > p { max-width: 520px; margin: 28px auto 0; color: #715c61; }
.signature { color: #9b5d72; }
.date-section { background: #f9e9ee; color: #632c3c; }
.section-index-dark { color: #a47682; }
.section-index-dark .hairline { background: #d8bdc5; }
.details-grid { display: grid; grid-template-columns: 1fr; gap: 55px; max-width: 570px; margin: 65px auto 0; text-align: center; }
.event-kicker { color: #a46878; }
.event-display h2 { font-size: clamp(3.7rem, 6vw, 5.25rem); }
.event-display h2 span { margin: 5px 0 0; color: #ae7282; font-size: clamp(3.35rem, 5.5vw, 4.7rem); }
.event-note { margin: 24px auto 30px; color: #775b65; }
.button-outline { border-color: #aa7485; color: #753d4f; }
.button-outline:hover { background: #855063; border-color: #855063; color: white; }
.detail-card { max-width: 520px; width: 100%; margin: 0 auto; padding: 32px 44px 40px; border: 1px solid #dbb9c4; background: #fffaf8; text-align: left; box-shadow: 0 15px 45px #89445c14; }
.detail-card::before { border-color: #ead7d3; }
.detail-card-number { margin-bottom: 18px; color: #b88290; }
.detail-line { border-color: #ead8dc; }
.detail-line span { color: #94717b; }
.detail-pending { color: #816a71; }
.detail-map { color: #8c4e62; border-color: #b77f8f; }
.detail-map:hover { color: #5a2434; }
.reply-section { min-height: 660px; background: #fff8f7; }
.reply-content { position: relative; }
.reply-content > .eyebrow { color: #9d6879; }
.reply-content h2 { font-size: clamp(3.8rem, 6.4vw, 5.9rem); }
.reply-content h2 em { color: #a76b7e; }
.reply-content > p:not(.eyebrow) { color: #735962; }
.reply-flourish { display: none; }
.button-dark { background: #7e4658; }
.button-dark:hover { background: #613043; }
.button-ghost { border-color: #ae8390; color: #6e3447; }
.button-ghost:hover { background: #f6e4e9; }
.footer { max-width: 820px; margin: 0 auto; background: #845668; }
.modal { border-radius: 14px; background: #fff9f7; }
.modal input, .modal textarea { border-radius: 7px; }
.toast { border-radius: 30px; background: #6d3a4d; }
@keyframes floral-arrive { from { opacity: 0; transform: scale(1.035); } to { opacity: 1; transform: scale(1); } }

@media (max-width: 700px) {
  .topbar { width: 100%; min-height: 72px; padding: 15px 22px; }
  .hero { min-height: 100svh; }
  .hero-image { background-position: center; background-size: 100% 100%; }
  .hero::before { background: radial-gradient(circle at center, #fffafa99 0%, transparent 67%); }
  .hero-inner { min-height: 100svh; padding: 126px 49px 100px; }
  .hero h1 { font-size: clamp(3.1rem, 10vw, 4.6rem); }
  .hero-sub { font-size: .97rem; }
  .hero-actions { gap: 16px; }
  .section-pad { padding: 82px 34px; }
  .intro { min-height: 650px; }
  .intro-grid { margin-top: 55px; }
  .intro-main h2 { font-size: clamp(2.45rem, 9vw, 3.6rem); }
  .details-grid { gap: 45px; margin-top: 60px; }
  .event-display h2 { font-size: clamp(3.5rem, 11vw, 4.7rem); }
  .event-display h2 span { font-size: clamp(3.3rem, 10vw, 4.4rem); }
  .detail-card { padding: 27px 30px 34px; }
  .reply-section { min-height: 620px; }
  .reply-content h2 { font-size: clamp(3.5rem, 11vw, 4.8rem); }
}
@media (max-width: 390px) {
  .hero-inner { padding-left: 38px; padding-right: 38px; }
  .hero h1 { font-size: 2.95rem; }
  .hero-actions .button { width: auto; }
  .section-pad { padding-left: 28px; padding-right: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .cover, .cover-card, .cover-open, .cover-hint, .hero-image { animation: none !important; transition: none !important; }
}

/* The paper invitation eases in while the envelope lifts away. */
html { scroll-padding-top: 88px; }
section[id] { scroll-margin-top: 88px; }
body > .topbar, body > main, body > .footer {
  opacity: 1;
  transition: opacity 1.1s cubic-bezier(.22,.61,.36,1);
}
.page-before-open > .topbar, .page-before-open > main, .page-before-open > .footer { opacity: 0; }
.cover {
  transition: opacity 1.12s cubic-bezier(.22,.61,.36,1), transform 1.12s cubic-bezier(.22,.61,.36,1);
}
.cover-card {
  transition: transform 1.2s cubic-bezier(.16,.8,.22,1), filter 1.2s cubic-bezier(.16,.8,.22,1);
}
.cover.opening { opacity: 0; transform: translateY(-22px); transition-delay: .25s; }
.cover.opening .cover-card { transform: translateY(-65px) scale(1.045); filter: blur(2px); }
.cover.opening .cover-open { transform: translate(-50%, -50%) scale(1.12); box-shadow: 0 0 0 22px #fffaf660; opacity: 0; }
.reveal { transition: opacity 1.05s ease, transform 1.05s cubic-bezier(.16,.8,.2,1); }

/* Keep the navigation readable over both flowers and the paper sections. */
.topbar {
  position: sticky;
  top: 0;
  left: auto;
  width: min(100%, 820px);
  margin: 0 auto;
  transform: none;
  background: rgba(255, 250, 249, .97);
  border-bottom: 1px solid #e2c5cc;
  box-shadow: 0 8px 25px #6b364314;
  color: #5b2a3a;
  backdrop-filter: blur(14px);
}
.desktop-nav a, .setup-link { color: #5b2a3a; font-weight: 700; }
.setup-link { background: #fffaf8; border-color: #b78190; }
.hero, .hero-inner { min-height: calc(100svh - 80px); }
.scroll-cue {
  bottom: 25px;
  gap: 11px;
  padding: 11px 18px 11px 11px;
  border: 1px solid #a87586;
  border-radius: 999px;
  background: rgba(255, 252, 251, .97);
  box-shadow: 0 8px 28px #6b36432b;
  color: #5b2a3a;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .06em;
  transition: background .3s ease, box-shadow .3s ease, transform .3s ease;
}
.scroll-cue span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #8b5365;
  color: white;
  font-size: 1rem;
  line-height: 1;
  animation: none;
}
.scroll-cue:hover, .scroll-cue:focus-visible {
  background: white;
  box-shadow: 0 12px 34px #6b364345;
  transform: translate(-50%, -3px);
}
@media (max-width: 700px) {
  .hero, .hero-inner { min-height: calc(100svh - 72px); }
  .scroll-cue { bottom: 17px; }
}
