/* Paper Moon: cut-paper invitation styles */

@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/instrument-serif-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/instrument-serif-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/instrument-serif-latin-ext-400-italic.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/instrument-serif-latin-400-italic.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/newsreader-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/newsreader-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/newsreader-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/newsreader-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/newsreader-latin-ext-400-italic.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/newsreader-latin-400-italic.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --paper: #f3ead8;
  --paper-2: #eadfc8;
  --ink: #141f42;
  --ink-soft: #46506f;
  --night: #101936;
  --deep: #1d2d5c;
  --dusk: #2d467f;
  --haze: #4e6fa3;
  --gold: #8f6d2c;
  --gold-light: #d8b56a;
  --moon: #fbf4e4;
  --on-night: #f3ead8;
  --on-night-soft: #bfc8dc;
  --err-night: #ffc9b8;
  --display: "Instrument Serif", Georgia, serif;
  --body: "Newsreader", Georgia, serif;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .25 0 0 0 0 .2 0 0 0 .1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.locked, html.locked body { overflow: hidden; height: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.125rem/1.55 var(--body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ol, ul, dl, dd, fieldset { margin: 0; padding: 0; }
ol, ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; border-radius: 4px; }
.paper :focus-visible, .hero :focus-visible { outline-color: var(--gold); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.center { text-align: center; }
.center-text { text-align: center; }

/* ---------- opening ---------- */

.opening { position: fixed; inset: 0; z-index: 50; background: #0a1024; overflow: hidden; }
.stage { position: absolute; inset: 0; }
.stage canvas { display: block; width: 100%; height: 100%; }
.poster { position: absolute; inset: 0; display: grid; place-items: center; padding: 8vh 8vw 16vh; background: radial-gradient(circle at 50% 38%, #1d2d5c, #0a1024 70%); transition: opacity .7s ease; }
.poster.hide { opacity: 0; pointer-events: none; }
.poster-card { width: min(78vw, 56vh); aspect-ratio: 5 / 7; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4%; padding: 8%; text-align: center; background: var(--night); color: var(--gold-light); border: 1px solid rgba(216, 181, 106, .75); outline: 1px solid rgba(216, 181, 106, .4); outline-offset: -10px; box-shadow: 0 30px 70px rgba(0, 0, 0, .55); }
.poster-kicker { font-size: .95rem; letter-spacing: .14em; text-transform: uppercase; }
.poster-moon { width: 26%; aspect-ratio: 1; margin: 6% 0; border-radius: 50%; box-shadow: inset -1.5rem .6rem 0 0 var(--gold-light); transform: rotate(-16deg); }
.poster-names { font: italic 400 clamp(2rem, 9vw, 3.4rem)/1.05 var(--display); }
.poster-date { font-size: 1rem; }

.open-btn { position: absolute; inset: 0; width: 100%; background: none; border: 0; opacity: 0; display: flex; align-items: flex-end; justify-content: center; padding: 0 1rem calc(4.5vh + env(safe-area-inset-bottom)); color: var(--on-night); transition: opacity .6s ease; }
.open-btn.ready { opacity: 1; }
.open-btn.gone { opacity: 0; pointer-events: none; }
.open-btn:focus-visible { outline-offset: -8px; }
.open-btn span { display: inline-flex; align-items: center; gap: .6rem; font: italic 400 1.45rem/1.2 var(--display); padding: .62rem 1.25rem; border-radius: 99px; background: rgba(10, 16, 36, .62); border: 1px solid rgba(216, 181, 106, .55); animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(216, 181, 106, .1); border-color: rgba(216, 181, 106, .95); } }
.skip-btn { position: absolute; z-index: 3; top: calc(1rem + env(safe-area-inset-top)); right: 1rem; min-height: 44px; min-width: 64px; padding: .35rem 1rem; color: var(--on-night); font-size: 1rem; background: rgba(10, 16, 36, .55); border: 1px solid rgba(243, 234, 216, .35); border-radius: 99px; opacity: 0; pointer-events: none; transition: opacity .4s ease .5s; }
.skip-btn.show { opacity: 1; pointer-events: auto; }
.veil { position: fixed; inset: 0; z-index: 60; background: #f8f0df; opacity: 0; pointer-events: none; }
.veil.fade { transition: opacity 1.15s ease; }

/* ---------- hero: three nested paper arches ---------- */

.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: max(1.4rem, env(safe-area-inset-top)) 1.25rem 0; background: var(--grain), var(--paper); overflow: hidden; }
.arch { border-radius: 999px 999px 0 0; }
.arch-1 { width: min(100%, 31rem); flex: 1; display: flex; padding: .95rem .95rem 0; background: var(--night); box-shadow: 0 -8px 26px rgba(20, 31, 66, .32); }
.arch-2 { flex: 1; display: flex; padding: .95rem .95rem 0; background: var(--deep); box-shadow: 0 -6px 18px rgba(0, 0, 0, .35); }
.arch-3 { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .55rem; padding: 6rem 1.1rem 12.5rem; text-align: center; color: var(--on-night); background: var(--dusk); box-shadow: 0 -6px 18px rgba(0, 0, 0, .35); overflow: hidden; }
.arch-3::after { content: ""; position: absolute; inset: 0; background: var(--grain); pointer-events: none; }
.arch-3 > * { position: relative; z-index: 1; }
.arch-3 > .hero-sky { position: absolute; z-index: 0; top: 0; left: 0; width: 100%; height: 11rem; }
.arch-3 > .hero-garden { position: absolute; z-index: 0; left: 0; bottom: 0; width: 100%; height: auto; }
.hg { filter: drop-shadow(0 -3px 4px rgba(10, 16, 36, .4)); }
.hero-moon { width: clamp(5rem, 24vw, 7rem); aspect-ratio: 1; flex: none; margin-bottom: .5rem; border-radius: 50%; background: radial-gradient(circle at 36% 34%, #fffaf0, var(--moon) 58%, #e8dcc3); box-shadow: 0 0 34px 10px rgba(255, 240, 205, .35); }
.hero-kicker { font-size: 1.15rem; color: var(--on-night); }
.hero-names { font: italic 400 clamp(3.7rem, 17.5vw, 6rem)/.95 var(--display); }
.hero-names span { display: block; overflow-wrap: anywhere; }
.hero-names em { display: block; font-size: .52em; line-height: 1.15; color: var(--gold-light); }
.hero-date { margin-top: .55rem; font-size: 1.12rem; }
.hero-place { color: var(--on-night); font-style: italic; }
.scroll-cue { position: absolute; bottom: calc(1.2rem + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: .15rem; min-height: 44px; font-size: 1rem; text-decoration: none; color: var(--on-night); white-space: nowrap; }
.scroll-cue i { width: 1px; height: 1.5rem; background: currentColor; transform-origin: top; animation: drop 2s ease-in-out infinite; }
@keyframes drop { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }

.hero-in .arch-1, .hero-in .arch-2, .hero-in .arch-3 { animation: rise 1.25s cubic-bezier(.2, .8, .2, 1) both; }
.hero-in .arch-2 { animation-delay: .12s; }
.hero-in .arch-3 { animation-delay: .24s; }
.hero-in .hg-3 { animation: hillUp 1.2s cubic-bezier(.2, .8, .2, 1) both .2s; }
.hero-in .hg-2 { animation: hillUp 1.2s cubic-bezier(.2, .8, .2, 1) both .32s; }
.hero-in .hg-1 { animation: hillUp 1.2s cubic-bezier(.2, .8, .2, 1) both .44s; }
.hero-in .hero-moon, .hero-in .hero-kicker, .hero-in .hero-names, .hero-in .hero-date, .hero-in .hero-place { animation: fadeUp 1s ease both .55s; }
@keyframes hillUp { from { transform: translateY(40px); } to { transform: none; } }
@keyframes rise { from { transform: translateY(14%); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- section shell ---------- */

.sec { position: relative; padding: 5.2rem 1.25rem 6.2rem; }
.sec-in { position: relative; z-index: 1; width: min(100%, 35rem); margin: 0 auto; }
.paper { background: var(--grain), var(--paper); color: var(--ink); --cut: var(--paper); }
.night { background: var(--night); color: var(--on-night); --cut: var(--night); }
.page > .sec:nth-of-type(n) { z-index: 1; }
.cut { position: absolute; left: 0; bottom: calc(100% - 1px); width: 100%; height: clamp(46px, 9vw, 90px); display: block; fill: var(--cut); filter: drop-shadow(0 -5px 7px rgba(10, 16, 36, .28)); pointer-events: none; }
.sec-head { text-align: center; margin-bottom: 2.4rem; }
.orn { width: 7.5rem; height: 1.25rem; display: block; margin: 0 auto .75rem; color: var(--gold); }
.night .orn { color: var(--gold-light); }
.sec-head h2 { font: 400 clamp(2.7rem, 11vw, 3.9rem)/1.02 var(--display); }
.sec-sub { margin-top: .65rem; font-style: italic; font-size: 1.2rem; color: var(--ink-soft); }
.night .sec-sub { color: var(--on-night-soft); }

.rv { opacity: 0; transform: translateY(20px); transition: opacity .85s ease, transform .85s cubic-bezier(.2, .8, .2, 1); }
.rv.in { opacity: 1; transform: none; }

/* ---------- buttons ---------- */

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: .6rem 1.45rem; border-radius: 99px; font-size: 1.08rem; font-weight: 500; text-decoration: none; border: 1px solid transparent; transition: transform .2s ease, background-color .2s ease, color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-line { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn-moon { background: var(--moon); color: var(--ink); }
.btn-ghost { border-color: rgba(243, 234, 216, .55); background: transparent; color: var(--on-night); }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.linkish { display: inline-block; min-height: 44px; padding: .6rem .3rem; background: none; border: 0; text-decoration: underline; text-underline-offset: 4px; font-size: 1.05rem; }

/* ---------- letter ---------- */

.letter-sec { padding-top: 4.5rem; }
.letter { position: relative; padding: 2.4rem 1.8rem; background: #fbf5e7; text-align: center; box-shadow: 0 1px 1px rgba(20, 31, 66, .1), 0 16px 32px rgba(20, 31, 66, .14); transform-origin: top center; }
.letter::before { content: ""; position: absolute; inset: .55rem; border: 1px solid rgba(143, 109, 44, .5); pointer-events: none; }
.letter-hi { font: italic 400 1.75rem/1.2 var(--display); margin-bottom: 1rem; }
.letter-body { font-size: 1.25rem; line-height: 1.5; }
.letter-sign { margin-top: 1.25rem; font: italic 400 1.45rem/1.2 var(--display); color: var(--gold); }

/* ---------- moon reveal ---------- */

.moon-wrap { display: flex; flex-direction: column; align-items: center; gap: 1.3rem; }
.moon-box { --p: 0; position: relative; width: min(74vw, 19rem); aspect-ratio: 1; border-radius: 50%; overflow: hidden; touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none; box-shadow: 0 0 0 1px rgba(243, 234, 216, .32), 0 0 calc(var(--p) * 70px) calc(var(--p) * 14px) rgba(255, 240, 205, .32); }
.moon-face { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(circle at 34% 30%, #fffaf0, var(--moon) 58%, #e6d9bd); color: var(--ink); text-align: center; }
.moon-weekday { font-size: 1.15rem; }
.moon-day { font: 400 clamp(5rem, 26vw, 7.4rem)/.95 var(--display); }
.moon-my { font: italic 400 1.45rem/1.2 var(--display); }
.moon-shadow { position: absolute; inset: -1%; border-radius: 50%; background: #0c1329; transform: translateX(calc(var(--p) * 106%)); }
.is-auto .moon-shadow, .is-auto .moon-box { transition: transform 1.3s cubic-bezier(.4, 0, .2, 1), box-shadow 1.3s ease; }
.moon-range { width: min(100%, 21rem); text-align: center; }
.moon-hint { display: block; margin-bottom: .55rem; font-style: italic; color: var(--on-night-soft); }
#moonRange { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: 0; background: transparent; cursor: ew-resize; }
#moonRange::-webkit-slider-runnable-track { height: 2px; background: rgba(243, 234, 216, .45); }
#moonRange::-moz-range-track { height: 2px; background: rgba(243, 234, 216, .45); }
#moonRange::-webkit-slider-thumb { -webkit-appearance: none; width: 34px; height: 34px; margin-top: -16px; border-radius: 50%; background: var(--moon); box-shadow: 0 0 14px rgba(255, 240, 205, .7); }
#moonRange::-moz-range-thumb { width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--moon); box-shadow: 0 0 14px rgba(255, 240, 205, .7); }
.is-full .moon-hint { visibility: hidden; }
.is-full #moonShow { visibility: hidden; }

/* ---------- calendar ---------- */

.cal { padding: 1.5rem 1.1rem 1.25rem; margin-bottom: 2.2rem; background: #fbf5e7; box-shadow: 0 14px 28px rgba(20, 31, 66, .12); }
.cal-month { margin-bottom: .75rem; text-align: center; font: italic 400 1.75rem/1.2 var(--display); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; row-gap: .15rem; font-size: 1.05rem; }
.cal-grid span { display: grid; place-items: center; aspect-ratio: 1; }
.cal-wd { color: var(--ink-soft); font-size: .95rem; margin-bottom: .2rem; }
.cal-wd span { aspect-ratio: auto; }
.is-day { position: relative; color: var(--moon); }
.is-day b { position: relative; z-index: 1; font-weight: 500; }
.is-day::before { content: ""; position: absolute; inset: 1%; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--gold); }
.count { display: grid; grid-template-columns: repeat(4, 1fr); gap: .35rem; margin-bottom: 2rem; text-align: center; }
.count b { display: block; font: 400 clamp(2.5rem, 12vw, 3.3rem)/1 var(--display); font-variant-numeric: tabular-nums; }
.count span { font-size: 1rem; color: var(--ink-soft); }
.count-msg { margin-bottom: 2rem; text-align: center; font: italic 400 1.8rem/1.2 var(--display); }

/* ---------- constellation ---------- */

.sky { position: relative; }
.sky-lines { position: absolute; top: 0; left: 0; pointer-events: none; overflow: visible; }
.sky-lines path { fill: none; }
#skyBase { stroke: rgba(243, 234, 216, .16); stroke-width: 1; stroke-dasharray: 2 6; }
#skyLine { stroke: var(--gold-light); stroke-width: 1.25; }
.moments { position: relative; display: flex; flex-direction: column; gap: 2.5rem; }
.moment { display: grid; grid-template-columns: 5.6rem 1fr; gap: .8rem; align-items: center; }
.moment-star { justify-self: start; }
.moment.alt .moment-star { justify-self: end; }
.moment-star { width: 3rem; height: 3rem; display: grid; place-items: center; color: rgba(243, 234, 216, .35); transition: color .6s ease, transform .6s cubic-bezier(.3, 1.6, .5, 1), filter .6s ease; transform: scale(.72); }
.moment-star svg { width: 100%; height: 100%; fill: currentColor; }
.moment.lit .moment-star { color: var(--gold-light); transform: scale(1); filter: drop-shadow(0 0 9px rgba(216, 181, 106, .72)); }
.moment-text { display: flex; flex-direction: column; }
.moment-text time { font: italic 400 1.65rem/1.1 var(--display); color: var(--gold-light); }
.moment-text strong { font-weight: 500; font-size: 1.22rem; line-height: 1.25; margin-top: .15rem; }
.moment-text span { color: var(--on-night-soft); font-size: 1.05rem; line-height: 1.3; }

/* ---------- venue ---------- */

.venue { text-align: center; }
.venue-art { display: block; width: 100%; height: auto; margin-bottom: 1.5rem; filter: drop-shadow(0 12px 18px rgba(20, 31, 66, .18)); }
.venue h3 { font: 400 clamp(2.3rem, 9vw, 3rem)/1.05 var(--display); }
.venue-addr { margin-top: .4rem; font-size: 1.15rem; }
.venue-when { margin: .3rem 0 1.5rem; font-style: italic; color: var(--ink-soft); }
.venue-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 2.2rem; padding-top: 1.6rem; border-top: 1px solid rgba(20, 31, 66, .22); text-align: left; }
.venue-notes strong, .dress-notes strong { display: block; font-weight: 500; font-size: 1.15rem; }
.venue-notes p, .dress-notes p { font-size: 1.05rem; line-height: 1.4; }

/* ---------- dress code ---------- */

.swatches { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem .25rem; margin-bottom: 2.25rem; }
.swatches li { width: 3.95rem; display: flex; flex-direction: column; align-items: center; gap: .45rem; text-align: center; font-size: .94rem; line-height: 1.15; }
.swatches i { width: 3rem; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(243, 234, 216, .5); box-shadow: 0 7px 14px rgba(0, 0, 0, .38); }
.dress-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; padding-top: 1.5rem; border-top: 1px solid rgba(243, 234, 216, .24); }
.dress-notes p { color: var(--on-night-soft); }

/* ---------- notes ---------- */

.notes { display: flex; gap: .9rem; margin: 0 -1.25rem; padding: .5rem 1.25rem 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.notes::-webkit-scrollbar { display: none; }
.note-card { flex: 0 0 84%; display: flex; flex-direction: column; align-items: flex-start; min-height: 16.5rem; padding: 1.6rem 1.45rem; background: #fbf5e7; scroll-snap-align: center; box-shadow: 0 12px 22px rgba(20, 31, 66, .14); }
.note-num { font-style: italic; color: var(--gold); margin-bottom: .55rem; }
.note-card h3 { font: 400 1.95rem/1.08 var(--display); margin-bottom: .55rem; }
.note-card p { font-size: 1.12rem; line-height: 1.42; }
.note-dots { display: flex; justify-content: center; gap: .5rem; margin-top: .3rem; }
.note-dots i { width: .55rem; height: .55rem; border-radius: 50%; background: rgba(20, 31, 66, .24); transition: background-color .25s ease; }
.note-dots i.on { background: var(--ink); }

/* ---------- reply form ---------- */

.form { display: flex; flex-direction: column; gap: 1.5rem; }
.extra { display: flex; flex-direction: column; gap: 1.5rem; animation: fadeUp .5s ease both; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label, .fs legend, .stepper-row > span { font-size: 1.14rem; font-weight: 500; }
.fs legend { margin-bottom: .6rem; }
.field input, .field textarea { width: 100%; min-height: 50px; padding: .65rem .9rem; font-size: 1.1rem; background: rgba(243, 234, 216, .08); border: 1px solid rgba(243, 234, 216, .46); border-radius: 8px; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--gold-light); outline-offset: 1px; border-color: transparent; }
.field input[aria-invalid="true"] { border-color: var(--err-night); }
.help { color: var(--on-night-soft); font-size: 1rem; }
.err { margin-top: .4rem; color: var(--err-night); font-size: 1.02rem; }
.pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.pills.stack { flex-direction: column; }
.pill { position: relative; display: inline-flex; }
.pills.stack .pill { display: flex; }
.pill input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pill span { display: flex; align-items: center; width: 100%; min-height: 46px; padding: .45rem 1.05rem; border: 1px solid rgba(243, 234, 216, .46); border-radius: 99px; transition: background-color .18s ease, color .18s ease; }
.pill input:checked + span { background: var(--moon); color: var(--ink); border-color: var(--moon); }
.pill input:focus-visible + span { outline: 3px solid var(--gold-light); outline-offset: 2px; }
.stepper-row { flex-direction: row; align-items: center; justify-content: space-between; }
.stepper { display: flex; align-items: center; gap: .4rem; }
.stepper button { width: 46px; height: 46px; font-size: 1.4rem; line-height: 1; background: transparent; border: 1px solid rgba(243, 234, 216, .46); border-radius: 50%; }
.stepper output { min-width: 2.2rem; text-align: center; font: 500 1.35rem/1 var(--body); font-variant-numeric: lining-nums; }

.done { text-align: center; outline: 0; }
.done-msg { margin: 1.4rem 0; font: italic 400 2rem/1.15 var(--display); }
.done-msg.big { font-size: 2.3rem; }
.ticket { position: relative; width: min(100%, 20rem); margin: 0 auto; padding: 1.9rem 1.5rem; background: var(--paper); color: var(--ink); border-radius: 14px; animation: stamp .7s cubic-bezier(.2, 1.3, .4, 1) both; box-shadow: 0 20px 40px rgba(0, 0, 0, .4); -webkit-mask: radial-gradient(circle .85rem at 0 72%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle .85rem at 100% 72%, transparent 98%, #000) right / 51% 100% no-repeat; mask: radial-gradient(circle .85rem at 0 72%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle .85rem at 100% 72%, transparent 98%, #000) right / 51% 100% no-repeat; }
@keyframes stamp { from { opacity: 0; transform: scale(1.08) rotate(-2deg); } to { opacity: 1; transform: none; } }
.ticket-moon { display: block; width: 3.2rem; aspect-ratio: 1; margin: 0 auto .6rem; border-radius: 50%; box-shadow: inset -.85rem .35rem 0 0 var(--gold); transform: rotate(-14deg); }
.ticket-kicker { color: var(--ink-soft); }
.ticket-name { font: italic 400 2.5rem/1.05 var(--display); overflow-wrap: anywhere; margin: .15rem 0 1rem; }
.ticket dl { display: grid; gap: .4rem; text-align: left; padding-bottom: 1.5rem; }
.ticket dl div { display: flex; justify-content: space-between; gap: 1rem; font-size: 1.02rem; }
.ticket dt { color: var(--ink-soft); }
.ticket dd { text-align: right; font-weight: 500; }
.ticket-foot { padding-top: 1.05rem; border-top: 1px dashed var(--gold); font: italic 400 1.5rem/1.1 var(--display); }

/* ---------- FAQ ---------- */

.faq details { border-bottom: 1px solid rgba(20, 31, 66, .22); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 52px; padding: .75rem 0; font-size: 1.18rem; font-weight: 500; line-height: 1.3; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 400 1.9rem/1 var(--display); color: var(--gold); transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { padding-bottom: 1.1rem; }

/* ---------- closing ---------- */

.closing { padding-top: 6rem; padding-bottom: calc(5rem + env(safe-area-inset-bottom)); text-align: center; }
.closing-moon { display: block; width: 7.5rem; aspect-ratio: 1; margin: 0 auto 1.6rem; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #fffaf0, var(--moon) 58%, #e6d9bd); box-shadow: 0 0 60px 16px rgba(255, 240, 205, .24); }
.closing h2 { font: 400 clamp(3rem, 13vw, 4.6rem)/1 var(--display); }
.closing-names { margin-top: 1.1rem; font: italic 400 2rem/1.15 var(--display); color: var(--gold-light); }
.closing-date { margin-top: .4rem; color: var(--on-night-soft); }

/* ---------- floating controls ---------- */

.reply-dock { position: fixed; z-index: 30; left: 50%; bottom: calc(1rem + env(safe-area-inset-bottom)); transform: translate(-50%, 160%); display: flex; align-items: center; justify-content: center; min-height: 50px; width: max-content; max-width: calc(100vw - 2rem); padding: .55rem 1.5rem; border-radius: 99px; background: var(--moon); color: var(--ink); font-size: 1.05rem; font-weight: 500; text-decoration: none; box-shadow: 0 10px 28px rgba(10, 16, 36, .42), 0 0 0 1px rgba(20, 31, 66, .14); transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.reply-dock.show { transform: translate(-50%, 0); }
.music-btn { position: fixed; z-index: 31; top: calc(.9rem + env(safe-area-inset-top)); right: .9rem; width: 46px; height: 46px; display: grid; place-items: center; color: var(--moon); background: rgba(16, 25, 54, .8); border: 1px solid rgba(243, 234, 216, .4); border-radius: 50%; opacity: .75; }
.music-btn.on { opacity: 1; box-shadow: 0 0 0 2px var(--gold-light); }

/* ---------- larger screens ---------- */

@media (min-width: 760px) {
  body { font-size: 1.2rem; }
  .sec { padding-top: 7rem; padding-bottom: 8rem; }
  .hero { padding-top: 2rem; }
  .note-card { flex-basis: 62%; }
}

@media (min-width: 760px) and (max-height: 860px) {
  .arch-3 { padding-top: 4rem; padding-bottom: 10rem; }
  .hero-moon { width: 4.5rem; }
  .hero-names { font-size: clamp(3rem, 8vh, 4.4rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
}
