/* Francesco - an illustrated invitation. All artwork is served locally. */
:root {
  --night: #102c40;
  --night-deep: #0a1e2e;
  --night-soft: #224b60;
  --gold: #edc783;
  --gold-dark: #9c7035;
  --paper: #faf6ed;
  --paper-soft: #f3ecde;
  --ink: #213b49;
  --muted: #63717a;
  --line: #ded6c6;
  --green: #eaf0e6;
  --font-story: "Le Petit Prince", "Petit Prince", "Bradley Hand", "Segoe Print", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --shadow: 0 18px 54px rgb(48 59 54 / 6%);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 94px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-ui); line-height: 1.6; -webkit-font-smoothing: antialiased; }
::selection { background: #edc78366; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: 4px; }
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #b88a45; outline-offset: 5px; }
img { display: block; max-width: 100%; }
.illustration { width: 100%; height: auto; object-fit: contain; user-select: none; pointer-events: none; }
h1, h2, h3, h4, blockquote { font-family: var(--font-story); font-weight: 400; text-wrap: balance; }
.wrap { width: min(1160px, calc(100% - 80px)); margin-inline: auto; }
.section { position: relative; padding: 112px 0; }
.eyebrow { color: var(--gold); font: 600 11px/1.6 var(--font-ui); text-transform: uppercase; letter-spacing: .23em; margin: 0 0 18px; }
.eyebrow.dark { color: var(--gold-dark); }
.skip-link { position: fixed; z-index: 1000; top: 10px; left: 10px; padding: 12px 20px; border-radius: 10px; color: var(--ink); background: white; transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.reading-progress { height: 3px; position: fixed; z-index: 100; top: 0; left: 0; right: 0; pointer-events: none; }
.reading-progress span { display: block; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; }

/* The cover: a moon, a handwritten name, and a quiet night sky. */
.hero {
  position: relative; isolation: isolate; overflow: hidden; color: var(--paper); min-height: 880px;
  background: radial-gradient(ellipse at 74% 44%, #31566a88, transparent 46%), radial-gradient(ellipse at 10% 98%, #385d6866, transparent 54%), linear-gradient(125deg, var(--night-deep), var(--night) 65%, #173b4e);
}
.hero::before, .gift-section::after {
  content: ""; position: absolute; pointer-events: none; z-index: -1; inset: 0; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23n)' d='M0 0h180v180H0z' opacity='.7'/%3E%3C/svg%3E");
}
.hero::after { content: ""; position: absolute; bottom: -1px; left: -5%; width: 110%; height: 34px; background: var(--paper); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.sky, .stars { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; background: radial-gradient(circle at 9% 21%, #f6deb6 0 1px, transparent 2px), radial-gradient(circle at 81% 13%, #f6deb6 0 1px, transparent 2px), radial-gradient(circle at 52% 65%, #f6deb6 0 1px, transparent 2px); }
.sky .planet { display: none; }
.speck { position: absolute; border-radius: 50%; background: #f9e9c6; }
.speck.cross { background: none; border-radius: 0; }
.speck.cross::before, .speck.cross::after { content: ""; position: absolute; inset: 0; background: #f4deb5; border-radius: 100%; transform: scaleX(.15); }
.speck.cross::after { transform: scaleY(.15); }
.shooting-star { position: absolute; width: 95px; height: 1px; background: linear-gradient(90deg, transparent, #f5dfb6); transform: rotate(-25deg); opacity: .2; }
.s1 { top: 21%; left: 8%; }
.s2 { top: 13%; right: 34%; width: 55px; }
.orbit { position: absolute; border: 1px solid #ecd49a13; border-radius: 50%; pointer-events: none; }
.orbit-a { width: 480px; height: 480px; top: -285px; left: 27%; }
.orbit-b { width: 250px; height: 250px; bottom: 90px; left: -190px; }
.nav { position: relative; z-index: 3; height: 96px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #d5d8c61a; }
.brand { display: flex; align-items: center; gap: 12px; font: 25px/1.2 var(--font-story); text-decoration: none; letter-spacing: -.01em; }
.brand span { font: 19px/1 var(--font-ui); color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 12px; font-weight: 500; color: #e0e6e7; text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--gold); }
.nav-links .nav-rsvp { padding: 9px 22px; border: 1px solid #edc7837d; border-radius: 999px; color: var(--gold); }
.hero-inner { display: grid; grid-template-columns: 1.12fr 1fr; align-items: center; gap: 34px 32px; position: relative; padding: 57px 0 104px; }
.hero-copy { position: relative; z-index: 2; }
.hero-copy > .eyebrow { display: flex; align-items: center; gap: 13px; margin-bottom: 23px; font-size: 10px; letter-spacing: .2em; }
.hero-copy > .eyebrow::before { content: ""; height: 1px; width: 31px; background: #edc7838f; }
.hero h1 { margin: 0; letter-spacing: -.035em; line-height: 1.02; }
.title-prelude { display: block; font-size: clamp(34px, 3.5vw, 48px); color: #f4edde; margin: 0 0 9px; letter-spacing: -.015em; }
.title-name { display: block; font-size: clamp(68px, 7.1vw, 98px); color: var(--gold); letter-spacing: -.055em; white-space: nowrap; }
.title-di { display: inline-block; font-size: .34em; font-style: italic; vertical-align: middle; letter-spacing: 0; margin-right: .04em; color: #f6e3c0; }
.hero-date { display: inline-flex; align-items: center; gap: 16px; margin: 27px 0 0; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .19em; color: #eadabe; }
.hero-date::after { content: ""; width: 30px; height: 1px; background: #edc7834d; }
.intro { max-width: 475px; color: #c4d3db; margin: 24px 0 0; font-size: 15px; line-height: 1.85; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid transparent; border-radius: 12px; padding: 13px 20px; font-size: 12px; font-weight: 650; text-decoration: none; line-height: 1.5; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { color: #173344; background: linear-gradient(130deg, #f3d59f, #e7bd75); box-shadow: 0 7px 22px #d8ae601a, inset 0 1px 0 #fff5df66; }
.btn.primary:hover { background: #f6d9a4; box-shadow: 0 10px 25px #d8ae602b; }
.btn.ghost { border-color: #e3ebea40; color: #e1e8e9; background: #ffffff05; }
.btn.ghost:hover { background: #ffffff0d; border-color: #edc7837d; }
.btn.secondary { border-color: #d0c9b8; color: var(--ink); background: #fffcf7; }
.btn.secondary:hover { background: #fff; border-color: #a68d62; }
.btn.small { min-height: 44px; padding: 10px 16px; }
.btn:disabled { opacity: .55; cursor: wait; transform: none; }
.rsvp-deadline { margin: 17px 0 0; color: #aebfcc; font-size: 11px; line-height: 1.75; }
.rsvp-deadline > span { padding-right: 6px; color: var(--gold); }
.rsvp-deadline strong { color: #dccaab; font-weight: 600; }
.hero-illustration { position: relative; display: grid; place-items: center; height: 525px; }
.celestial-disc { position: absolute; width: 87%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 47% 45%, #84a2a221, #84a2a205 67%, transparent 70%); box-shadow: inset 0 0 0 1px #ddd0a910; }
.celestial-ring { position: absolute; border-radius: 50%; border: 1px solid #dfd2ab26; pointer-events: none; }
.ring-one { width: 94%; aspect-ratio: 1; transform: rotate(-21deg); }
.ring-one::before { content: ""; width: 7px; height: 7px; border: 1px solid #c5b17d; background: var(--night); border-radius: 50%; position: absolute; left: 16%; top: 12%; }
.ring-two { width: 108%; height: 55%; transform: rotate(-36deg); border-color: #dfd2ab10; }
.moon-art { position: relative; z-index: 2; width: min(82%, 376px); max-height: 515px; filter: drop-shadow(0 20px 22px #03162240); }
.scene-star { position: absolute; color: var(--gold); z-index: 2; font: 22px/1 Georgia, serif; }
.star-one { left: 7%; top: 32%; font-size: 26px; }
.star-two { right: 3%; top: 23%; font-size: 31px; }
.star-three { right: 12%; bottom: 21%; font-size: 12px; }
.scene-caption { position: absolute; bottom: 13px; right: 0; font: 10px/1.3 var(--font-ui); letter-spacing: .19em; color: #c3c9b1; writing-mode: vertical-rl; }
.scene-caption i { margin: 8px 0; font-style: normal; }
.countdown-card { grid-column: 1/-1; border-top: 1px solid #d5d8c620; display: flex; align-items: center; justify-content: center; gap: 42px; padding-top: 25px; }
.countdown-card > p { color: #b9c8ce; font: 500 10px/1.7 var(--font-ui); text-transform: uppercase; letter-spacing: .16em; max-width: 160px; margin: 0; }
.countdown { display: flex; align-items: center; gap: 22px; }
.countdown div { text-align: center; min-width: 50px; }
.countdown strong { display: block; color: #f4e6ce; font: 38px/1 var(--font-story); font-variant-numeric: tabular-nums; }
.countdown span { display: block; color: #afc0cb; font: 10px/1.8 var(--font-ui); letter-spacing: .12em; margin-top: 6px; }
.countdown i { font-style: normal; color: #cfb16e70; }
.scroll-cue { position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; color: #bdcbc8; text-decoration: none; font-size: 9px; letter-spacing: .15em; }
.scroll-cue i { font-style: normal; font-size: 19px; }

/* Chapter one: a flight into a day together. */
.journey-section { background: var(--paper); }
.journey-heading { display: grid; grid-template-columns: 1.35fr .75fr; align-items: center; gap: 72px; margin-bottom: 48px; }
.section-heading { position: relative; }
.mini-star { display: block; color: #aa854c; font: 23px/1 var(--font-ui); margin-bottom: 16px; }
.section-heading h2 { font-size: clamp(38px, 4.3vw, 55px); line-height: 1.12; letter-spacing: -.035em; margin: 0 0 20px; }
.section-heading > p:not(.eyebrow) { font-size: 15px; line-height: 1.8; color: var(--muted); margin: 0; max-width: 565px; }
.section-heading strong { font-weight: 600; color: var(--ink); }
.journey-art { position: relative; min-height: 270px; display: grid; align-items: center; }
.plane-art { position: relative; max-width: 360px; transform: rotate(-5deg); z-index: 1; filter: drop-shadow(0 14px 9px #5847260c); }
.flight-trail { position: absolute; left: -72px; top: 40%; width: 90%; height: 64%; border: 1px dashed #b8a47980; border-top-color: transparent; border-radius: 50%; transform: rotate(16deg); }
.timeline { display: grid; grid-template-columns: minmax(0,1fr) 60px minmax(0,1fr); align-items: stretch; }
.event-card { display: flex; flex-direction: column; position: relative; padding: 30px 34px 34px; border-radius: 23px; border: 1px solid var(--line); background: #fffdf8; box-shadow: var(--shadow); transition: box-shadow .3s, transform .3s; }
.event-card::before { content: ""; position: absolute; top: 0; left: 33px; right: 33px; height: 2px; background: linear-gradient(90deg, transparent, #c0a676, transparent); }
.event-card:hover { transform: translateY(-5px); box-shadow: 0 24px 60px #3b44381a; }
.event-topline { display: flex; align-items: center; justify-content: space-between; }
.event-number { font: 57px/1 var(--font-story); color: #ddd2bb; letter-spacing: -.05em; }
.event-symbol { display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid #dcd1b8; border-radius: 50%; font-size: 14px; color: #9b793e; background: #f9f4e8; }
.event-symbol.moon { font-size: 23px; }
.card-kicker { margin: 24px 0 9px; color: var(--gold-dark); font: 600 10px/1.5 var(--font-ui); text-transform: uppercase; letter-spacing: .18em; }
.event-card h3 { font-size: 34px; line-height: 1.12; letter-spacing: -.03em; margin: 0; }
.muted { color: var(--muted); }
.event-card > .muted { font-size: 12px; margin: 10px 0 0; }
.event-details { margin: 24px 0 28px; border-top: 1px solid #e7dfd0; }
.event-details p { display: grid; grid-template-columns: 76px minmax(0,1fr); gap: 12px; padding: 15px 0; margin: 0; border-bottom: 1px solid #e7dfd0; }
.event-details span { color: #707b7d; text-transform: uppercase; letter-spacing: .13em; font-size: 9px; font-weight: 500; padding-top: 3px; }
.event-details strong { font-size: 13px; font-weight: 550; line-height: 1.65; }
.event-details small { grid-column: 2; color: #936c39; font-size: 11px; margin-top: -9px; }
.event-card > .btn { margin-top: auto; align-self: flex-start; border-radius: 10px; }
.journey-line { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: #baa276; }
.journey-line i { display: block; height: 53%; border-left: 1px dashed #cbbd9a; }
.journey-line span { font-size: 13px; }

/* A keepsake: the original words, a new illustrated scene. */
.gift-section { isolation: isolate; overflow: hidden; color: var(--paper); background: radial-gradient(ellipse at 20% 40%, #31546080, transparent 60%), linear-gradient(120deg, #173848, #102a3e 75%); }
.gift-section::before { content: ""; position: absolute; inset: 17px; border: 1px solid #ddc89a1c; border-radius: 3px; pointer-events: none; }
.gift-stars { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: -1; }
.gift-layout { display: grid; grid-template-columns: 1fr 1.06fr; align-items: center; gap: 70px; }
.gift-visual { position: relative; display: grid; align-items: center; min-height: 385px; }
.gift-halo { position: absolute; width: 86%; aspect-ratio: 1; left: 7%; border: 1px solid #e5d19e1c; border-radius: 50%; box-shadow: 0 0 0 26px #cfdcb503; background: radial-gradient(circle at 50% 50%, #e5d19e0b, transparent 66%); }
.friends-art { position: relative; z-index: 2; filter: drop-shadow(0 17px 13px #08162435); }
.illustration-ground { width: 78%; height: 20px; position: absolute; bottom: 33px; left: 11%; border-radius: 50%; background: #071c254a; filter: blur(10px); }
.gift-spark { color: var(--gold); position: absolute; font: 17px/1 Georgia,serif; }
.spark-one { top: 10%; left: 10%; }
.spark-two { top: 0; right: 10%; font-size: 26px; }
.spark-three { bottom: 7%; right: 14%; font-size: 11px; }
.gift-copy { position: relative; }
.gift-copy h2.eyebrow { font-family: var(--font-ui); font-size: 11px; font-weight: 600; line-height: 1.6; letter-spacing: .21em; margin: 0 0 24px; }
.gift-copy blockquote { font-size: clamp(27px, 3.1vw, 39px); line-height: 1.38; font-style: italic; letter-spacing: -.02em; color: #f2deb4; margin: 0 0 23px; text-wrap: pretty; }
.gift-intro { font-size: 14px; line-height: 1.85; color: #c4d2d9; margin: 0; }
.iban-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 19px 20px; margin-top: 29px; border: 1px solid #d6bf8d54; border-radius: 15px; background: #fcf3dc09; }
.iban-card > div { min-width: 0; }
.field-label { display: block; font: 500 9px/1.5 var(--font-ui); text-transform: uppercase; letter-spacing: .19em; color: #c0cfce; margin-bottom: 7px; }
.iban-card strong { display: block; font: 500 13px/1.7 var(--font-ui); color: #fff0ce; letter-spacing: .015em; overflow-wrap: anywhere; }
.copy-btn { display: inline-flex; align-items: center; justify-content: center; border: 1px solid #ffffff26; border-radius: 8px; padding: 11px 13px; min-height: 44px; background: #edc783; color: #193340; font-size: 11px; font-weight: 650; white-space: nowrap; }
.copy-btn:hover { background: #f7dba7; }
.holder { color: #c0cdd2; margin: 12px 0 0; font-size: 11px; }
.holder strong { color: #ecdec1; font-weight: 500; }

/* A letter to reply to. The RSVP contract and all field names are unchanged. */
.rsvp-section { background: radial-gradient(ellipse at 100% 2%, #e6eadb5c, transparent 40%), var(--paper); overflow: hidden; }
.rsvp-section::before { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 45%; pointer-events: none; background: linear-gradient(transparent, #efe8db73); }
.rsvp-constellation { position: absolute; width: 430px; height: 430px; border: 1px solid #bead8426; border-radius: 50%; top: 37%; left: -300px; box-shadow: 0 0 0 30px #bead8409; }
.rsvp-introduction { display: grid; grid-template-columns: minmax(0,1.5fr) 280px; align-items: center; gap: 65px; max-width: 980px; margin: 0 auto 45px; }
.rsvp-introduction .rose-icon { display: none; }
.rsvp-introduction .section-heading h2 { max-width: 565px; }
.rsvp-introduction .section-heading > .deadline-note { display: block; margin-top: 22px; padding: 13px 17px; font-size: 11px; color: #72582e; line-height: 1.8; border-left: 2px solid #c1a16c; background: #eee5d44d; border-radius: 0 7px 7px 0; }
.deadline-note span { margin-right: 5px; }
.deadline-note strong { color: #72582e; }
.rsvp-art { position: relative; }
.rsvp-art-halo { position: absolute; width: 90%; aspect-ratio: 1; border: 1px solid #b39e6f33; background: #e5eadb40; border-radius: 50%; left: 3%; top: -3%; }
.star-art { position: relative; z-index: 1; transform: rotate(-4deg); }
.manage-booking { position: relative; max-width: 980px; margin: 0 auto 26px; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.15fr); align-items: end; gap: 0 30px; padding: 26px 30px; border: 1px solid #d6cebc; border-radius: 17px; background: #f4efe4; }
.manage-booking .eyebrow { font-size: 9px; margin: 0 0 7px; }
.manage-booking h3 { margin: 0 0 8px; font-size: 25px; line-height: 1.15; letter-spacing: -.02em; }
.manage-booking p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.lookup-form { display: flex; align-items: end; gap: 10px; }
.lookup-form label { margin: 0; min-width: 0; flex: 1; }
.lookup-form input { font-size: 14px; }
.lookup-form .btn { flex-shrink: 0; padding-inline: 13px; font-size: 11px; }
.manage-booking .form-message { grid-column: 1/-1; }
.manage-booking .form-message:not(:empty) { margin-top: 14px; }
.rsvp-form { position: relative; max-width: 980px; margin: 0 auto; background: #fffdf9; border: 1px solid #d6cebd; border-radius: 24px; overflow: hidden; box-shadow: 0 24px 74px #3c473913; }
.rsvp-form.editing { outline: 3px solid #d9bd8033; outline-offset: 3px; }
.form-section { border-top: 1px solid #e7e0d2; padding: 34px 38px; }
.form-section:first-child { border-top: 0; }
.form-intro-section { background: linear-gradient(150deg,#fffdf7,#f6f6ed); }
.form-section-title { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.form-section-title > span { flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #b5c1b3; border-radius: 50%; color: #3d5d4c; font: 20px/1 var(--font-story); background: #e9eee5; }
.form-section-title.soft > span { background: #f2e9d9; border-color: #d4bb90; color: #856638; }
.form-section-title h3 { font-size: 30px; line-height: 1.15; margin: 0; letter-spacing: -.02em; }
.form-section-title p { color: var(--muted); font-size: 11px; margin: 5px 0 0; }
.form-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 0 20px; }
.form-grid .full { grid-column: 1/-1; }
label { display: block; margin-bottom: 20px; font-size: 12px; font-weight: 550; }
label > span:first-child { display: block; margin-bottom: 8px; color: #3f525b; }
label em { font-style: normal; color: #6e797b; font-weight: 400; font-size: 10px; margin-left: 4px; }
input, select, textarea { width: 100%; min-width: 0; min-height: 51px; border: 1px solid #d4cdbc; border-radius: 9px; padding: 12px 14px; background: #fffefa; color: var(--ink); font-family: var(--font-ui); font-size: 16px; line-height: 1.5; transition: background .2s, border-color .2s, box-shadow .2s; }
input::placeholder, textarea::placeholder { color: #7a807e; font-size: 13px; opacity: 1; }
input:focus, select:focus, textarea:focus { outline: none; border-color: #8eab9a; box-shadow: 0 0 0 3px #67846b1f; background: #fff; }
input:user-invalid, select:user-invalid { border-color: #b95a5a; }
textarea { resize: vertical; min-height: 107px; }
.choice-label { margin-bottom: 0; }
.choice-label select { background-color: #edf0e5; border-color: #c1cbbb; font-size: 15px; }
.decline-section { background: #fbf5e9; }
.decline-section > label { margin-bottom: 0; }
.person-card { position: relative; padding: 24px; border: 1px solid #d8dfcf; border-radius: 15px; background: #f3f5ed; margin-bottom: 18px; }
.primary-person { background: #eff3e9; }
.person-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 21px; padding-right: 68px; min-width: 0; }
.person-heading > div:last-child { min-width: 0; }
.person-avatar { flex: 0 0 auto; display: grid; place-items: center; width: 37px; height: 37px; background: #e0e7d8; border: 1px solid #c3cfb9; border-radius: 50%; color: #506345; font-size: 13px; }
.person-label { font: 600 9px/1.6 var(--font-ui); text-transform: uppercase; letter-spacing: .12em; color: #586c4e; margin: 0; }
.person-heading h4 { font-size: 23px; line-height: 1.2; margin: 3px 0 0; overflow-wrap: anywhere; }
.person-fields { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 18px; }
.person-fields label { margin-bottom: 0; }
.companions-head { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin: 26px 0 20px; padding-top: 26px; border-top: 1px dashed #d8cfbc; }
.companions-head h3 { margin: 0; font-size: 26px; line-height: 1.2; }
.companions-head p { font-size: 11px; color: var(--muted); margin: 6px 0 0; }
.companions-head .btn { flex-shrink: 0; }
.companions-list { display: grid; gap: 16px; }
.companion { background: #faf7ef; border-color: #ded5c3; margin: 0; }
.companion .person-avatar { background: #f0e4cb; color: #826438; border-color: #d7c6a1; }
.companion .person-label { color: #826438; }
.companion-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) 130px; gap: 0 16px; }
.remove { position: absolute; top: 16px; right: 16px; min-height: 40px; border: 1px solid #d4c9b7; border-radius: 8px; padding: 8px 10px; color: #755840; background: #fffaf1; font-size: 10px; }
.remove:hover { background: #f5e9df; }
.privacy { display: flex; gap: 12px; align-items: flex-start; font-size: 11px; line-height: 1.8; font-weight: 400; }
.privacy input { width: 19px; height: 19px; min-height: 0; flex: 0 0 auto; accent-color: #456956; margin: 3px 0 0; }
.privacy > span { margin: 0; }
.final-step .submit { width: 100%; background: var(--night); color: #f5ddb4; font-size: 14px; min-height: 54px; box-shadow: 0 9px 20px #173b4e12; }
.final-step .submit:hover { background: #22495c; }
.final-step .submit span:last-child { color: #edc783; }
.privacy-note { color: var(--muted); font-size: 10px; line-height: 1.8; text-align: center; margin: 15px 0 0; }
.form-message { font-size: 13px; line-height: 1.75; margin: 0; overflow-wrap: anywhere; }
.form-message:not(:empty) { padding: 12px 16px; margin-top: 16px; border-radius: 9px; background: #f4f0e5; }
.form-message.ok { color: #2f6444; background: #eaf3e8; }
.form-message.err { color: #903a35; background: #faeae6; }
.booking-code { position: relative; display: grid; justify-items: center; text-align: center; gap: 10px; margin-top: 25px; padding: 22px 18px 28px; background: #f6edda; border: 1px solid #ceb983; border-radius: 18px; }
.booking-art { width: 88px; margin: 0 auto 3px; }
.booking-code > span { color: #785e31; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.booking-code strong { font: 600 28px/1.3 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .12em; overflow-wrap: anywhere; max-width: 100%; }
.booking-code small { font-size: 11px; color: var(--muted); }
.booking-code .copy-btn { background: var(--night); color: #f4debb; min-width: 160px; }

/* The final page of the story. */
footer { position: relative; text-align: center; padding: 5px 20px 75px; background: #f4eee3; color: #67746e; }
.footer-art { width: 135px; margin: 0 auto -7px; position: relative; z-index: 1; }
.footer-rule { position: relative; width: min(320px, 85%); height: 26px; display: flex; align-items: center; justify-content: center; color: #a78c57; margin: 0 auto 13px; }
.footer-rule::before, .footer-rule::after { content: ""; height: 1px; width: 45%; background: linear-gradient(90deg,transparent,#cdbb91); }
.footer-rule::after { transform: rotate(180deg); }
.footer-rule span { padding: 0 13px; font-size: 12px; }
footer p { margin: 4px 0; font-size: 12px; }
footer strong { font: 28px/1.3 var(--font-story); color: var(--ink); margin-right: 5px; }
footer .tiny { font-size: 11px; margin-top: 10px; color: #70796e; }
.quick-nav { position: fixed; z-index: 50; top: 17px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 4px; padding: 6px; background: #102b40f2; color: #f1e8d7; border: 1px solid #cbb88970; border-radius: 999px; box-shadow: 0 9px 30px #07172426; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.quick-nav a { display: flex; align-items: center; gap: 7px; padding: 10px 19px; border-radius: 999px; font-size: 11px; text-decoration: none; }
.quick-nav a > span { font-size: 9px; color: #cdb78b; }
.quick-nav a[aria-current="location"]:not(.quick-confirm) { background: #ffffff13; }
.quick-nav a.quick-confirm { background: #edc783; color: #203c49; font-weight: 650; }
.quick-nav a.quick-confirm > span { color: #5e4c2e; }
.toast { position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 100px); z-index: 90; max-width: calc(100% - 30px); padding: 13px 19px; border: 1px solid #ddcda655; border-radius: 12px; box-shadow: 0 10px 35px #06202e30; background: var(--night); color: #f6e7cf; text-align: center; font-size: 12px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .75s, transform .75s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in-view { opacity: 1; transform: none; }
/* Never hide a long, interactive form behind a visibility threshold. */
.js .rsvp-form.reveal { opacity: 1; transform: none; }

/* Password gate, with the same illustrated stationery. */
.login-page { position: relative; isolation: isolate; min-height: 100svh; display: grid; place-items: center; padding: 45px 35px; overflow-x: hidden; background: radial-gradient(ellipse at 23% 48%, #36606c77, transparent 60%), linear-gradient(125deg,#0a1e2e,#16364c); color: var(--paper); }
.login-page .stars { position: fixed; }
.login-page > .orbit { width: 580px; height: 580px; top: -385px; right: -50px; }
.login-shell { width: min(980px, 100%); display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.login-art { position: relative; min-height: 440px; display: grid; place-items: center; }
.login-art .moon-art { max-height: 450px; width: 300px; }
.login-page .box { position: relative; background: var(--paper); color: var(--ink); padding: 50px 38px 32px; border-radius: 140px 140px 22px 22px; text-align: center; border: 1px solid #efd9ae; box-shadow: 0 30px 65px #0000001f; }
.login-page .box::before { content: ""; position: absolute; inset: 9px; border: 1px solid #d5c49e; border-radius: 132px 132px 14px 14px; pointer-events: none; }
.login-page .eyebrow { margin: 18px 0 9px; color: #977440; font-size: 9px; letter-spacing: .18em; }
.login-page h1 { font-size: 60px; letter-spacing: -.04em; line-height: 1.05; margin: 12px 0 19px; }
.login-page .box > p:not(.date):not(.small) { color: var(--muted); font-size: 13px; line-height: 1.85; max-width: 315px; margin: 0 auto; }
.login-page form { display: grid; gap: 12px; margin: 25px 0 0; }
.input-wrap { position: relative; }
.login-page input { padding-right: 79px; background: #fffdf8; font-size: 16px; }
.login-page .show { position: absolute; right: 4px; top: 4px; bottom: 4px; border: 0; background: transparent; color: #4b675c; padding: 10px; font-size: 11px; min-width: 62px; }
.enter { min-height: 51px; border: 1px solid #17394d; border-radius: 9px; background: var(--night); color: #f2dab1; font-size: 13px; font-weight: 600; transition: background .2s; }
.enter:hover { background: #224a5e; }
.enter:disabled { opacity: .6; cursor: wait; }
.login-page .msg { min-height: 20px; color: #9d463d; font-size: 12px; line-height: 1.6; }
.login-page .date { color: #826434; font-size: 11px; letter-spacing: .23em; margin: 17px 0 9px; }
.login-page .small { color: #737c78; font-size: 10px; margin: 0; }

@media (max-width: 1100px) {
  .wrap { width: calc(100% - 56px); }
  .hero { min-height: 820px; }
  .hero-inner { grid-template-columns: 1.15fr .85fr; gap: 25px; padding-top: 45px; }
  .hero-illustration { height: 485px; }
  .moon-art { max-height: 458px; }
  .title-name { font-size: 7.6vw; }
  .hero-actions .btn { font-size: 11px; padding-inline: 15px; }
  .journey-heading { gap: 45px; }
  .gift-layout { gap: 40px; }
  .gift-visual { min-height: 340px; }
  .iban-card { flex-direction: column; align-items: stretch; }
  .iban-card .copy-btn { align-self: flex-start; }
  .rsvp-introduction { gap: 35px; grid-template-columns: minmax(0,1.5fr) 230px; }
  .manage-booking { grid-template-columns: minmax(0,1fr) minmax(0,1.2fr); gap: 23px; }
  .lookup-form { flex-direction: column; align-items: stretch; gap: 8px; }
  .event-card { padding: 27px; }
  .timeline { grid-template-columns: minmax(0,1fr) 40px minmax(0,1fr); }
  .login-shell { gap: 30px; }
  .login-page .box { padding-inline: 30px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 25px; }
  .wrap { width: calc(100% - 40px); }
  .section { padding: 72px 0; }
  .hero { min-height: 0; }
  .nav { height: 76px; }
  .brand { font-size: 23px; gap: 8px; }
  .nav-links { gap: 20px; }
  .nav-links > a:not(.nav-rsvp) { display: none; }
  .nav-links .nav-rsvp { padding: 7px 17px; font-size: 11px; }
  .hero-inner { display: flex; flex-direction: column; gap: 0; padding: 38px 0 92px; text-align: center; }
  .hero-copy { display: contents; }
  .hero-copy > .eyebrow { order: 0; justify-content: center; font-size: 8px; letter-spacing: .2em; margin: 0 0 16px; gap: 10px; }
  .hero-copy > .eyebrow::before { width: 19px; }
  .hero-copy > .eyebrow::after { content: ""; height: 1px; width: 19px; background: #edc7838f; }
  .hero h1 { order: 1; }
  .title-prelude { font-size: 31px; margin-bottom: 8px; }
  .title-name { font-size: clamp(58px, 13.5vw, 87px); }
  .title-di { font-size: .33em; }
  .hero-date { order: 2; margin: 21px 0 0; font-size: 9px; letter-spacing: .14em; }
  .hero-date::after { display: none; }
  .hero-illustration { order: 3; width: min(330px,100%); height: 335px; margin: 12px 0 8px; }
  .moon-art { max-height: 330px; width: 236px; }
  .celestial-disc { width: 87%; }
  .ring-one { width: 90%; }
  .ring-two { width: 106%; }
  .scene-caption { right: -2px; bottom: 18px; font-size: 8px; letter-spacing: .14em; }
  .scene-star.star-one { left: 3%; font-size: 22px; }
  .scene-star.star-two { right: 1%; font-size: 26px; }
  .intro { order: 4; max-width: 445px; font-size: 14px; line-height: 1.8; margin: 7px 0 0; }
  .hero-actions { order: 5; display: grid; grid-template-columns: 1fr; width: min(360px,100%); margin: 24px 0 0; gap: 10px; }
  .hero-actions .btn { font-size: 12px; width: 100%; min-height: 50px; }
  .hero-actions .btn.ghost { border-color: #e3ebea33; min-height: 45px; }
  .rsvp-deadline { order: 6; margin: 16px 0 0; max-width: 330px; font-size: 10px; }
  .countdown-card { order: 7; width: 100%; display: flex; flex-direction: column; gap: 17px; padding-top: 25px; margin-top: 27px; }
  .countdown-card > p { max-width: none; font-size: 9px; }
  .countdown { gap: 24px; }
  .countdown strong { font-size: 34px; }
  .countdown span { font-size: 9px; }
  .scroll-cue { bottom: 36px; font-size: 8px; }
  .hero::after { height: 23px; }
  .journey-heading { display: flex; flex-direction: column; gap: 26px; margin-bottom: 32px; }
  .section-heading { text-align: center; }
  .section-heading .eyebrow { font-size: 9px; margin-bottom: 14px; }
  .mini-star { font-size: 20px; margin-bottom: 14px; }
  .section-heading h2 { font-size: clamp(34px, 8.6vw, 44px); letter-spacing: -.035em; margin-bottom: 17px; }
  .section-heading > p:not(.eyebrow) { font-size: 13px; max-width: 460px; margin-inline: auto; }
  .journey-art { width: 245px; min-height: 0; }
  .plane-art { width: 245px; }
  .flight-trail { left: -40px; width: 80%; }
  .timeline { grid-template-columns: minmax(0,1fr); gap: 0; max-width: 530px; margin-inline: auto; }
  .journey-line { height: 51px; flex-direction: row; gap: 15px; }
  .journey-line i { border: 0; height: 1px; width: 90px; border-bottom: 1px dashed #cbbd9a; }
  .event-card { padding: 27px; border-radius: 18px; }
  .event-card h3 { font-size: 30px; }
  .event-details p { grid-template-columns: 66px minmax(0,1fr); gap: 9px; }
  .event-details strong { font-size: 12px; }
  .event-details small { font-size: 10px; }
  .event-card > .btn { width: 100%; font-size: 11px; }
  .event-number { font-size: 52px; }
  .gift-section { padding: 70px 0 64px; }
  .gift-section::before { inset: 10px; }
  .gift-layout { grid-template-columns: minmax(0,1fr); gap: 42px; }
  .gift-visual { min-height: 0; width: min(430px,95%); margin: 0 auto; padding-top: 22px; }
  .gift-halo { width: 76%; left: 12%; }
  .illustration-ground { bottom: -5px; }
  .spark-one { top: 2%; left: 13%; }
  .spark-two { top: -4%; }
  .gift-copy { text-align: center; max-width: 510px; margin-inline: auto; }
  .gift-copy h2.eyebrow { font-size: 9px; margin-bottom: 20px; }
  .gift-copy blockquote { font-size: clamp(26px,7.5vw,34px); margin: 0 0 20px; line-height: 1.38; }
  .gift-intro { font-size: 13px; }
  .iban-card { padding: 20px; align-items: center; max-width: 410px; margin-inline: auto; }
  .iban-card strong { font-size: 13px; }
  .iban-card .copy-btn { align-self: stretch; }
  .holder { font-size: 11px; margin-top: 16px; }
  .rsvp-introduction { display: flex; flex-direction: column; gap: 26px; margin-bottom: 30px; }
  .rsvp-introduction .section-heading h2 { max-width: 470px; margin-inline: auto; }
  .rsvp-introduction .section-heading > .deadline-note { text-align: left; font-size: 11px; padding: 12px 14px; margin-top: 20px; }
  .rsvp-art { width: 210px; }
  .rsvp-art-halo { width: 88%; }
  .manage-booking { grid-template-columns: minmax(0,1fr); padding: 24px; border-radius: 15px; gap: 21px; }
  .manage-booking h3 { font-size: 26px; }
  .manage-booking .form-message { margin: 0; }
  .manage-booking .form-message:empty { display: none; }
  .lookup-form { flex-direction: column; }
  .lookup-form input { font-size: 16px; }
  .lookup-form .btn { font-size: 12px; }
  .rsvp-form { border-radius: 18px; }
  .form-section { padding: 27px 22px; }
  .form-section-title { gap: 12px; margin-bottom: 26px; }
  .form-section-title > span { width: 33px; height: 33px; font-size: 17px; }
  .form-section-title h3 { font-size: 27px; }
  .form-section-title p { font-size: 10px; }
  .form-grid, .person-fields, .companion-grid { grid-template-columns: minmax(0,1fr); }
  .form-grid .full { grid-column: 1; }
  .choice-label select { font-size: 16px; }
  label { font-size: 12px; }
  .person-card { padding: 20px 16px; border-radius: 12px; }
  .person-heading { gap: 9px; padding-right: 64px; }
  .person-avatar { width: 32px; height: 32px; }
  .person-heading h4 { font-size: 22px; }
  .person-label { font-size: 8px; }
  .person-fields { gap: 17px; }
  .companions-head { flex-direction: column; align-items: stretch; gap: 16px; }
  .companions-head h3 { font-size: 26px; }
  .companions-head .btn { width: 100%; }
  .remove { font-size: 9px; top: 14px; right: 12px; padding: 7px 8px; }
  .privacy { font-size: 10px; }
  .privacy-note { font-size: 9px; }
  .booking-code { padding-inline: 12px; }
  .booking-code strong { font-size: clamp(17px,5.4vw,25px); }
  .quick-nav { top: auto; bottom: max(13px,env(safe-area-inset-bottom)); padding: 5px; gap: 2px; width: min(365px,calc(100% - 24px)); justify-content: space-between; }
  .quick-nav a { padding: 11px 15px; gap: 5px; font-size: 11px; }
  .quick-nav a > span { font-size: 8px; }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); width: max-content; }
  footer { padding-bottom: calc(107px + env(safe-area-inset-bottom)); }
  .login-page { padding: 27px 22px; }
  .login-shell { display: flex; flex-direction: column; gap: 5px; max-width: 420px; }
  .login-art { width: 210px; min-height: 0; height: 217px; margin-bottom: -15px; z-index: 2; }
  .login-art .moon-art { width: 151px; max-height: 213px; }
  .login-art .ring-one { width: 91%; }
  .login-page .box { border-radius: 29px; padding: 25px 27px; width: 100%; }
  .login-page .box::before { border-radius: 22px; inset: 7px; }
  .login-page .eyebrow { margin-top: 5px; font-size: 8px; }
  .login-page h1 { font-size: 49px; margin-bottom: 15px; }
  .login-page .box > p:not(.date):not(.small) { font-size: 12px; }
  .login-page .date { margin-top: 7px; }
  .login-page form { margin-top: 21px; }
}
@media (max-width: 370px) {
  .wrap { width: calc(100% - 30px); }
  .title-name { font-size: 55px; }
  .hero-copy > .eyebrow { font-size: 7px; }
  .form-section { padding-inline: 17px; }
  .quick-nav a { padding: 10px 12px; font-size: 10px; }
  .iban-card { padding-inline: 12px; }
  .event-card { padding: 23px; }
}
@media (prefers-reduced-motion: no-preference) {
  .moon-art { animation: drift 8s ease-in-out infinite; }
  .plane-art { animation: flight 9s ease-in-out infinite; }
  .scene-star, .gift-spark { animation: glimmer 5s ease-in-out infinite; }
  .star-two, .spark-two { animation-delay: -2s; }
  .sky .speck:nth-child(9n) { animation: glimmer 6s ease-in-out infinite; }
  @keyframes drift { 50% { transform: translateY(-9px) rotate(1deg); } }
  @keyframes flight { 50% { transform: translateY(-6px) rotate(-2deg); } }
  @keyframes glimmer { 50% { opacity: .42; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media print {
  .hero { background: white; color: black; min-height: 0; }
  .hero h1, .title-name, .title-prelude, .title-di, .intro, .hero-date { color: black; }
  .nav, .quick-nav, .reading-progress, .scroll-cue, .sky, .hero-actions, .countdown-card, .toast, .rsvp-section, .gift-section, footer { display: none !important; }
  .hero-inner { padding: 25px 0; }
  .hero-illustration { height: 250px; }
  .moon-art { max-height: 240px; }
  .section { padding: 25px 0; }
  .journey-art { display: none; }
  .journey-heading { display: block; margin-bottom: 22px; }
  .event-card { break-inside: avoid; box-shadow: none; }
  .js .reveal { opacity: 1; transform: none; }
}
