/* Faroles003 · a complete seasonal invitation, using the established type and materials. */
body { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
html { scroll-padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
main :is(a,button,input,select,textarea) { scroll-margin-block: 28px 100px; }
select, textarea { font: inherit; }
select:focus-visible, textarea:focus-visible { outline: 2px solid var(--bright); outline-offset: 4px; }
main > section[id] { scroll-margin-top: 22px; }
main :is(h1,h2)[tabindex='-1']:focus { outline: none; }
.chapter { padding-block: clamp(68px, 9vw, 120px); }
.chapter h2 em { color: var(--bright); font-weight: 400; }
.chapter-intro { color: var(--muted); font-size: .94rem; margin: 20px auto 0; }
.small-note { font-size: .76rem; line-height: 1.6; color: var(--muted); }
.motion-ready [data-reveal]:focus-within { opacity: 1; transform: none; transition: none; }
.editorial-rule { display: block; width: 65px; height: 1px; margin-top: 32px; background: var(--gold); opacity: .65; }

/* Compact chapter navigation; no fixed large header. */
.menu-trigger { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; background: none; border: 0; color: var(--ivory); font-size: .8rem; }
.menu-lines { display: inline-block; width: 16px; height: 9px; border-block: 1px solid currentColor; }
.topbar { gap: 15px; }
.topbar .topbar-line { margin-right: 1px; }
.topbar-menu { font-size: .78rem; }
.quick-nav {
  position: fixed; z-index: 35; left: 50%; bottom: max(12px, env(safe-area-inset-bottom));
  translate: -50% 0;
  display: grid; grid-template-columns: 1fr 1.18fr .75fr .84fr;
  width: min(510px, calc(100% - 28px)); padding: 5px;
  border: 1px solid #bd935873; border-radius: 10px;
  background: #191a21; box-shadow: 0 5px 20px #0005, inset 0 1px 0 #ffe2b324;
}
.quick-nav a, .quick-nav button { display: flex; justify-content: center; align-items: center; gap: 6px; min-width: 0; min-height: 46px; padding: 6px 3px; border-radius: 5px; text-decoration: none; font-size: .75rem; }
.quick-nav a[aria-current] { color: var(--bright); box-shadow: inset 0 -1px var(--gold); background: #d49a420c; }
.quick-nav .quick-rsvp { background: #49212d; color: #fcf3e3; }
.quick-nav :focus-visible { outline-offset: -3px; }
.flower-pending .quick-nav { visibility: hidden; }
@supports (backdrop-filter: blur(8px)) {
  .quick-nav { background: #171820ee; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
}
.chapter-dialog { width: min(660px, calc(100% - 28px)); background: #121821; border-color: #d49a428f; }
.chapter-dialog-inner { position: relative; padding: 30px 25px 20px; }
.chapter-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; background: none; color: var(--ivory); font-size: 1.8rem; }
.chapter-dialog h2 { font-size: clamp(2.3rem, 7vw, 3.7rem); margin: 15px 0 25px; }
.chapter-dialog em { color: var(--bright); font-weight: 400; }
.chapter-links { display: grid; }
.chapter-links a { display: flex; gap: 20px; align-items: center; min-height: 49px; padding: 10px 2px; border-top: 1px solid #d49a423d; font: 1.25rem/1.1 var(--serif); text-decoration: none; }
.chapter-links a span { font: .62rem var(--sans); letter-spacing: .08em; color: var(--bright); }
.chapter-links a[aria-current] { color: var(--bright); }
.chapter-commercial { display: flex; gap: 15px; justify-content: space-between; flex-wrap: wrap; margin-top: 20px; }
.chapter-commercial a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--muted); font-size: .75rem; }

.countdown-panel { margin: 28px 0 18px; border-block: 1px solid #98682c50; padding: 24px 0 17px; }
.countdown-panel .eyebrow { color: #6f3828; font-size: .62rem; }
.countdown-grid { display: flex; justify-content: center; gap: clamp(22px, 7vw, 65px); margin-top: 14px; }
.countdown-grid div { display: grid; gap: 5px; }
.countdown-grid span { font: 400 clamp(2.4rem, 8vw, 4.1rem)/1 var(--serif); font-variant-numeric: tabular-nums; }
.countdown-grid small { text-transform: uppercase; color: #6f3828; font-size: .58rem; letter-spacing: .13em; }

/* A quiet, nonreligious toast, framed by lantern light. */
.reflection { position: relative; isolation: isolate; overflow: hidden; margin-top: clamp(50px, 8vw, 100px); background: #2a171f; border-block: 1px solid #d49a4237; }
.reflection::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 12% 35%, #aa6c2638, transparent 55%); pointer-events: none; }
.reflection-light { position: relative; width: 64px; margin: 0 auto 25px; }
.reflection-light svg { width: 100%; height: auto; filter: drop-shadow(0 0 14px #e9b7623b); }
.reflection-copy { width: min(640px, calc(100% - 46px)); margin-inline: auto; text-align: center; }
.reflection-copy h2 { margin: 16px 0 28px; }
.reflection-copy p:not(.eyebrow) { font: 400 clamp(1.02rem, 3.65vw, 1.25rem)/1.75 var(--serif); }
.reflection-copy .reflection-lead { color: #f9e7d2; }
.reflection-copy .reflection-toast { margin-top: 24px; color: #e7bd78; font-style: italic; }
.reflection .editorial-rule { margin-inline: auto; }
.reflection-light::before { content: ''; position: absolute; bottom: 80%; left: 50%; height: 300px; width: 1px; background: #d49a4261; }
.program { padding-inline: 26px; }
.program .program-heading .tiny-star { margin-bottom: 18px; }
.program h2 { margin-top: 10px; }
.program .schedule { max-width: 590px; margin-top: 34px; }
.program .schedule li { gap: 27px; padding-block: 22px; }
.program .schedule li::before { content: ''; width: 5px; height: 5px; border: 1px solid #d49a4280; position: absolute; left: 68px; top: 30px; rotate: 45deg; }
.program .schedule time { min-width: 65px; font-size: .84rem; }
.program .schedule span { padding-left: 5px; font-size: clamp(1.22rem, 4vw, 1.6rem); }
.motion-ready .schedule.is-visible li { animation: program-arrive 650ms ease-out both; }
.schedule.is-visible li:nth-child(2) { animation-delay: 70ms; }
.schedule.is-visible li:nth-child(3) { animation-delay: 140ms; }
.schedule.is-visible li:nth-child(4) { animation-delay: 210ms; }
.schedule.is-visible li:nth-child(5) { animation-delay: 280ms; }
@keyframes program-arrive { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }

.dinner { display: grid; gap: 30px; width: min(1100px, calc(100% - 40px)); margin-inline: auto; padding-top: 0; }
.dinner-heading { text-align: center; }
.dinner-heading h2 { margin-top: 15px; }
.dinner-heading > p:not(.eyebrow) { font-size: .92rem; line-height: 1.7; color: var(--muted); margin-top: 23px; }
.dinner-heading .tiny-star { margin-top: 25px; }
.dinner-paper { position: relative; background: #eae0cf; color: var(--ink); padding: 37px 25px 25px; text-align: center; box-shadow: 0 14px 30px #00000029; }
.dinner-paper::before { content: ''; position: absolute; inset: 8px; border: 1px solid #97673078; pointer-events: none; }
.menu-caption { margin: 0; font: italic 1.75rem/1.1 var(--serif); color: #713226; }
.dinner-menu { margin: 25px 0; }
.dinner-menu div + div { margin-top: 23px; }
.dinner-menu dt { color: #7a4935; font-size: .6rem; text-transform: uppercase; letter-spacing: .15em; margin-bottom: 7px; }
.dinner-menu dd { font: 400 1.3rem/1.35 var(--serif); margin: 0; }
.dinner-note { margin: 15px 0 0; border-top: 1px solid #97673044; padding: 15px 5px 0; font-size: .73rem; line-height: 1.6; color: #63513f; }

.exchange { max-width: 1150px; padding: 0 24px clamp(70px, 9vw, 120px); margin-inline: auto; display: grid; gap: 8px; }
.exchange-art { position: relative; width: min(100%, 480px); margin-inline: auto; isolation: isolate; }
.exchange-art img { position: relative; width: 100%; height: auto; filter: drop-shadow(0 13px 18px #0005); }
.exchange-art::before { content: ''; position: absolute; inset: 10%; z-index: -1; background: radial-gradient(circle, #b67f3722, transparent 68%); }
.exchange-orbit { position: absolute; inset: 11%; border: 1px solid #d49a4237; border-radius: 50%; }
.exchange-caption { display: block; text-align: center; font: italic 1.03rem var(--serif); color: var(--muted); margin-top: -18px; }
.motion-ready .exchange-art[data-reveal] { transform: translateY(20px) rotate(-2deg); transition-duration: 1050ms; }
.motion-ready .exchange-art.is-visible { transform: translateY(0) rotate(0); }
.exchange-copy { max-width: 530px; margin: 25px auto 0; }
.exchange-copy h2 { margin: 16px 0 22px; }
.exchange-copy > p:not(.eyebrow) { color: var(--muted); max-width: 420px; font-size: .94rem; line-height: 1.7; }
.exchange-rules { list-style: none; padding: 0; margin: 25px 0 30px; }
.exchange-rules li { display: flex; gap: 17px; padding: 15px 0; border-top: 1px solid #d49a423b; }
.exchange-rules li > span { padding-top: 3px; color: var(--bright); font-size: .64rem; }
.exchange-rules h3 { margin: 0; font-size: .86rem; font-weight: 500; }
.exchange-rules p { margin: 6px 0 0; font-size: .8rem; color: var(--muted); line-height: 1.55; }

.dress { display: grid; gap: 32px; background: #e5dac7; color: var(--ink); padding-inline: max(25px, calc((100% - 1000px) / 2)); }
.dress .eyebrow { color: #753e2b; }
.dress h2 em { color: #78352c; }
.dress h2 { margin-top: 16px; }
.dress h3 { font: 400 1.5rem var(--serif); margin: 0 0 12px; }
.dress-copy > p:not(.small-note) { max-width: 470px; line-height: 1.7; font-size: .92rem; }
.dress .small-note { color: #63513f; margin-bottom: 0; }
.dress-swatches { display: flex; gap: 27px; list-style: none; padding: 0; margin-top: 25px; }
.dress-swatches li { display: grid; gap: 9px; font-size: .7rem; color: #634737; }
.dress-swatches span { width: 25px; height: 25px; border-radius: 50%; border: 1px solid #715b4240; }
.swatch-red { background: #791e2b; }
.swatch-ivory { background: #f8efdf; }
.swatch-gold { background: #bd8b43; }

.confirmation { margin-bottom: 0; padding-top: clamp(70px, 9vw, 120px); padding-bottom: clamp(60px, 8vw, 100px); }
.confirmation-frame { padding: clamp(42px, 6vw, 65px) 22px; background: #25191f; }
.confirmation-frame .eyebrow { margin: 0; }
.confirmation-frame h2 { margin-top: 16px; }
.confirmation-frame > p:not(.eyebrow) { max-width: 480px; }
.rsvp-card-result { border-top: 1px solid #d49a4250; padding-top: 16px; font-size: .83rem; color: var(--bright); }

.wishes { display: grid; gap: 28px; max-width: 1120px; margin: 0 auto; padding-inline: 25px; padding-top: 0; }
.wishes-intro h2 { margin: 16px 0 22px; }
.wishes-intro > p:not(.eyebrow) { max-width: 360px; font-size: .94rem; line-height: 1.7; color: var(--muted); }
.wish-book { padding: 29px 22px; color: var(--ink); background: #ede5d7; border-top: 3px solid #7a2936; }
.wish-book label { display: block; margin: 0 0 7px; font-size: .8rem; }
.wish-book label span { color: #766451; font-size: .7rem; }
.wish-book input, .wish-book textarea { display: block; width: 100%; border: 1px solid #a28b716a; background: #f4eddf; border-radius: 0; padding: 11px; min-height: 46px; margin-bottom: 20px; color: #282017; }
.wish-book ::placeholder { color: #766451; }
.wish-book :focus-visible { outline-color: #78352c; }
.wish-book .button { width: 100%; font-size: .8rem; padding-inline: 12px; gap: 10px; }
.wish-book .small-note { color: #63513f; margin: 14px 0 0; }
.wish-status { font-size: .83rem; color: #632b31; outline: none; }
.wish-status:empty { display: none; }
.wish-empty { font: italic 1.08rem/1.5 var(--serif); color: #765642; margin: 26px 0 0; padding-top: 18px; border-top: 1px solid #a28b7155; }
.wish-list { list-style: none; padding: 0; margin: 0; }
.wish-list li { margin-top: 24px; padding: 20px 0 0; border-top: 1px solid #a28b7155; overflow-wrap: anywhere; }
.wish-list li > p { font: 1.3rem/1.4 var(--serif); margin: 0 0 10px; }
.wish-list li > span { display: block; color: #715441; font-size: .75rem; }
.wish-remove { display: block; min-height: 44px; padding: 8px 0 0; background: none; border: 0; font-size: .72rem; text-decoration: underline; text-underline-offset: 3px; color: #7b3438; }
.closing { text-align: center; padding-inline: 22px; padding-top: 20px; }
.closing-lantern { width: 58px; height: auto; margin: 0 auto 30px; filter: drop-shadow(0 0 20px #d49a422a); }
.closing h2 { margin-top: 17px; }
.closing p:not(.eyebrow) { color: var(--muted); margin: 25px 0 10px; }
.closing .replay-opening { margin-top: 10px; }

/* RSVP is still explicit about demo mode and has a reviewable summary. */
#rsvp-dialog { width: min(540px, calc(100% - 28px)); }
#rsvp-form > label span { color: var(--muted); font-size: .75rem; }
#rsvp-form textarea, #rsvp-form select { display: block; width: 100%; min-height: 46px; margin: 7px 0 18px; padding: 9px 11px; color: var(--ivory); background: var(--night); border: 1px solid #d49a428e; border-radius: 0; }
#rsvp-form textarea::placeholder { color: #bcb0a4; font-size: .82rem; }
.attending-details { border-block: 1px solid #d49a423b; padding: 16px 0 10px; margin-bottom: 18px; }
.attending-details > label:first-child { font-size: .85rem; }
#rsvp-form .attending-details select { margin-bottom: 5px; }
.field-hint { font-size: .73rem; color: var(--muted); margin: 5px 0 13px; }
.exchange-choice { font-size: .85rem; line-height: 1.45; }
.exchange-choice input { flex-shrink: 0; }
.field-error { color: #ffd2be; font-size: .82rem; }
[aria-invalid=true] { outline: 1px solid #ffd2be; outline-offset: 2px; }
.reply-summary { margin: 20px 0 0; text-align: left; }
.reply-summary div { padding-block: 12px; border-top: 1px solid #d49a423b; }
.reply-summary dt { font-size: .64rem; letter-spacing: .09em; text-transform: uppercase; color: var(--bright); }
.reply-summary dd { margin: 5px 0 0; font-size: .92rem; overflow-wrap: anywhere; }
.rsvp-result #rsvp-status { font: 400 1.8rem/1.1 var(--serif); outline: none; margin-bottom: 10px; }
.rsvp-result #result-note { margin: 13px 0 20px; }

@media (min-width: 650px) {
  .chapter-links { grid-template-columns: 1fr 1fr; gap: 0 30px; }
  .chapter-dialog-inner { padding: 38px 38px 24px; }
  .chapter-links a { min-height: 57px; }
  .quick-nav { padding: 5px 8px; }
  .quick-nav a, .quick-nav button { font-size: .82rem; }
}
@media (min-width: 860px) {
  .dinner { grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(50px, 8vw, 130px); }
  .dinner-heading { text-align: left; }
  .dinner-heading .tiny-star { margin-left: 0; }
  .dinner-paper { padding: 43px 38px 30px; }
  .exchange { grid-template-columns: 1fr 1.08fr; gap: 70px; align-items: center; }
  .exchange-copy { margin: 0; }
  .exchange-art { width: 100%; }
  .exchange-caption { margin-top: -25px; }
  .dress { grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; }
  .wishes { grid-template-columns: 1fr 1.12fr; gap: 70px; align-items: start; }
  .wishes-intro { padding-top: 22px; }
  .wish-book { padding: 36px; }
}
@media (max-width: 374px) {
  .topbar { gap: 11px; }
  .topbar img { width: 66px; height: 33px; }
  .topbar-rsvp { font-size: .72rem; }
  .topbar .topbar-line { display: none; }
  .topbar-menu { font-size: .74rem; }
  .quick-nav a, .quick-nav button { font-size: .69rem; }
  .quick-nav .menu-lines { width: 12px; }
  .reflection-copy { width: calc(100% - 34px); }
  .exchange { padding-inline: 21px; }
  .wish-book { padding: 24px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .quick-nav { scroll-behavior: auto; }
}
