:root { color-scheme: light; --paper: #f8f5ed; --ink: #34382f; --muted: #6c705e; --line: #d7d4c6; --accent: #50583f; --gold: #a08a5f; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { position: relative; margin: 0; background-color: var(--paper); background-image: url('paper.svg'), radial-gradient(ellipse at 10% 10%, #e9dfc54d, transparent 55%), radial-gradient(ellipse at 95% 70%, #e1dfd54d, transparent 55%); color: var(--ink); font: 15px/1.8 Arial, sans-serif; }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
h1, h2, h3, .monogram, blockquote, .guest p, .countdown span { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; }
h1, h2, h3, p { margin: 0; }
.eyebrow, .edition, .cover-footnote, .brand { display: block; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.cover-screen { min-height: 100svh; padding: 24px; display: grid; place-items: center; }
.cover-inner { background: #faf8f0b3; box-shadow: 0 20px 70px #4d483510, inset 0 0 50px #e5dac51a; position: relative; width: min(100%, 660px); padding: 32px 40px; text-align: center; border: 1px solid var(--line); }
.edition { padding-bottom: 8px; }
.edition::after { content: ''; display: block; width: 180px; height: 30px; margin: 12px auto 0; background: url('ornament.svg') center / contain no-repeat; }
.monogram { position: relative; width: 76px; height: 76px; border: 1px solid var(--gold); border-radius: 50%; background: linear-gradient(135deg, #fcfaf3, #e9e0cc); box-shadow: inset 2px 2px 7px #ffffffcc, inset -2px -2px 7px #a08a5f25, 0 3px 12px #6c5a3612; display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 27px; margin: 26px auto; line-height: 1; }
.monogram i { font-size: 15px; color: var(--muted); }
h1 { font-size: clamp(46px, 8vw, 76px); line-height: 1.08; margin: 16px 0 22px; overflow-wrap: anywhere; }
.ampersand { display: block; font-size: .46em; font-style: italic; line-height: 1.4; color: var(--muted); }
.cover-date { font-size: 12px; letter-spacing: .06em; }
.guest { margin: 24px auto; padding: 16px 0; border-block: 1px solid var(--line); max-width: 370px; }
.guest p { font-size: 24px; margin: 8px 0 2px; overflow-wrap: anywhere; }
.guest small { font-size: 11px; color: var(--muted); }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 28px; padding: 13px 24px; min-height: 48px; border: 1px solid var(--accent); background: var(--accent); color: var(--paper); cursor: pointer; font-size: 12px; letter-spacing: .04em; transition: background .25s, transform .25s, box-shadow .25s; box-shadow: 0 4px 12px #34382f12; }
.button:hover { background: var(--ink); transform: translateY(-2px); box-shadow: 0 7px 18px #34382f20; }
.button-outline { background: transparent; color: var(--accent); }
.button-outline:hover { color: var(--paper); }
.cover-footnote { margin-top: 28px; font-size: 9px; }
.cover-hidden, .content-hidden, .music-control-hidden { display: none; }
.content-active { display: block; }
.masthead { max-width: 1100px; margin: auto; padding: 26px 36px; display: flex; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.masthead a { font-family: Georgia, serif; font-size: 19px; }
.masthead span { font-size: 9px; letter-spacing: .16em; align-self: center; }
.hero { position: relative; isolation: isolate; min-height: 80svh; padding: 90px 24px 60px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hero h2 { font-size: clamp(60px, 10vw, 112px); line-height: 1.02; margin: 28px 0; max-width: 900px; overflow-wrap: anywhere; }
.hero p { font-size: 13px; letter-spacing: .08em; }
.scroll-link { font-size: 11px; margin-top: 48px; display: flex; align-items: center; gap: 25px; }
.section { position: relative; max-width: 1000px; margin: auto; padding: 80px 36px; border-top: 1px solid var(--line); text-align: center; scroll-margin-top: 24px; }
.section h2 { font-size: clamp(34px, 5vw, 55px); line-height: 1.25; margin: 18px 0 22px; }
.intro { max-width: 560px; margin: auto; color: var(--muted); font-size: 14px; }
.couple-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 60px 0; }
.couple-grid article { position: relative; padding: 10px 24px; }
.couple-grid article + article { border-left: 1px solid var(--line); }
.couple-grid h3 { font-size: clamp(30px, 5vw, 42px); margin: 14px 0; overflow-wrap: anywhere; }
.couple-grid p { color: var(--muted); font-size: 13px; }
blockquote { max-width: 640px; font-size: 21px; line-height: 1.8; font-style: italic; margin: 0 auto; }
cite { display: block; font: normal 10px Arial, sans-serif; margin-top: 22px; letter-spacing: .14em; color: var(--muted); }
.events-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin: 45px 0; }
.event-card { position: relative; background: #faf8f080 url('frame.svg') center / 100% 100% no-repeat; border: 1px solid var(--line); padding: 45px 28px; box-shadow: 0 12px 30px #4d483507; }
.event-card h3 { font-size: 29px; line-height: 1.25; margin: 16px 0 24px; }
.event-card p { font-size: 13px; overflow-wrap: anywhere; }
.event-date { font-weight: 600; }
.event-location { border-top: 1px solid var(--line); padding-top: 22px; margin: 22px 0; }
.event-location .eyebrow { font-size: 9px; letter-spacing: .12em; margin-bottom: 10px; }
.text-link { display: inline-flex; align-items: center; gap: 16px; font-size: 12px; padding: 6px 0; border-bottom: 1px solid var(--ink); }
.countdown { display: flex; justify-content: center; gap: clamp(20px, 6vw, 55px); margin: 40px 0 26px; }
.countdown span { display: block; font-size: 38px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.countdown small { font-size: 9px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.gift-section { max-width: 1000px; }
.bank { max-width: 420px; padding: 30px 20px; border: 1px solid var(--line); outline: 1px solid var(--line); outline-offset: -7px; background: #fcfaf480; box-shadow: 0 10px 30px #4d483508; margin: 30px auto 24px; }
.bank-number { font-size: 28px; letter-spacing: .06em; margin: 7px 0; overflow-wrap: anywhere; }
.bank p:last-child { color: var(--muted); font-size: 13px; }
form { max-width: 580px; margin: 40px auto; text-align: left; }
label { display: block; font-size: 12px; margin-bottom: 7px; }
input, select, textarea { display: block; width: 100%; min-height: 48px; padding: 12px; border: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--ink); margin-bottom: 20px; font-size: 14px; }
textarea { resize: vertical; }
::placeholder { color: var(--muted); opacity: 1; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
form .button { width: 100%; justify-content: space-between; }
#rsvp-messages { max-width: 580px; margin: auto; text-align: left; }
#rsvp-messages > div { background: transparent !important; border-color: var(--line) !important; border-radius: 0 !important; box-shadow: none !important; }
#rsvp-messages * { color: var(--ink) !important; }
#rsvp-messages span[style] { background: transparent !important; border-color: var(--line) !important; }
.closing h2 { overflow-wrap: anywhere; }
.closing p { color: var(--muted); font-size: 13px; }
.brand { margin-top: 48px; font-size: 11px; letter-spacing: .26em; }
.music-control { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); border: 1px solid var(--line); background: var(--paper); color: var(--ink); padding: 10px 16px; min-height: 44px; font-size: 11px; cursor: pointer; z-index: 20; }
.music-control-visible { display: block; }
.music-control.is-playing::after { content: ' · ON'; }
.preview-with-purchase-bar .music-control { bottom: 112px; }
/* Stationery details are decorative; all invitation content stays real text. */
.cover-inner::before { content: ''; position: absolute; inset: 9px; border: 1px solid #a08a5f40; pointer-events: none; }
.cover-inner::after { content: ''; position: absolute; inset: 0; background: url('frame.svg') center / 100% 100% no-repeat; pointer-events: none; }
.cover-inner > * { position: relative; animation: ivory-rise .9s ease both; }
.cover-inner > :nth-child(2) { animation-delay: .12s; }
.cover-inner > :nth-child(3) { animation-delay: .22s; }
.cover-inner > :nth-child(4) { animation-delay: .32s; }
.cover-inner > :nth-child(5) { animation-delay: .42s; }
.cover-inner > :nth-child(6) { animation-delay: .52s; }
.cover-inner > :nth-child(7) { animation-delay: .62s; }
.cover-inner > :nth-child(8) { animation-delay: .72s; }
.monogram::before { content: ''; position: absolute; inset: -6px; border: 1px dashed #a08a5f70; border-radius: 50%; }
.cover-footnote::before { content: ''; display: block; width: 120px; height: 26px; margin: 0 auto 12px; background: url('ornament.svg') center / contain no-repeat; }
.cover-screen.cover-hidden { display: grid; position: absolute; top: 0; left: 0; width: 100%; z-index: 40; background: var(--paper) url('paper.svg'); pointer-events: none; animation: ivory-open .85s cubic-bezier(.2,.7,.3,1) forwards; }
.content-active .hero > * { animation: ivory-rise 1.1s .3s ease both; }
.content-active .hero h2 { animation-delay: .5s; }
.hero::before { content: ''; position: absolute; inset: 30px max(24px, 15%); border: 1px solid #a08a5f55; border-radius: 48% 48% 0 0; z-index: -1; }
.hero::after { content: ''; position: absolute; inset: 38px max(32px, calc(15% + 8px)); border: 1px solid #a08a5f25; border-radius: 48% 48% 0 0; z-index: -1; }
.hero-seal { font-family: Georgia, serif; font-size: 23px; color: var(--gold); letter-spacing: .08em; margin-bottom: 26px; }
.hero-seal i { font-size: 15px; margin: 0 6px; }
.section::before { content: ''; position: absolute; top: -20px; left: 50%; transform: translateX(-50%); width: 170px; height: 40px; background: var(--paper) url('ornament.svg') center / contain no-repeat; }
.couple-initial { display: grid; place-items: center; width: 70px; height: 86px; border: 1px solid #a08a5f80; border-radius: 50% 50% 4px 4px; outline: 1px solid #a08a5f30; outline-offset: 5px; margin: 0 auto 28px; font: italic 40px Georgia, serif; color: var(--gold); background: linear-gradient(145deg, #fcfaf3, #e9e0cc50); }
blockquote { position: relative; padding: 38px 24px; border-block: 1px solid #a08a5f40; background: #faf8f040; }
.quote-mark { display: block; font-size: 65px; line-height: .6; margin-bottom: 20px; color: var(--gold); }
.countdown > div { min-width: 50px; padding-bottom: 12px; border-bottom: 1px solid var(--gold); }
.section, .event-card, .couple-grid article { opacity: 1; transform: none; transition: opacity .85s ease, transform .85s ease; }
.section.reveal-pending, .event-card.reveal-pending, .couple-grid .reveal-pending { opacity: 0; transform: translateY(24px); }
.event-card:nth-child(2) { transition-delay: .12s; }
.event-card:nth-child(3) { transition-delay: .24s; }
@keyframes ivory-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes ivory-open { 0% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-28px); visibility: hidden; } }

/* Gentle continuous petals while the invitation is open. */
.ivory-petals { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 30; }
.ivory-petals span { position: absolute; top: -36px; left: 4%; width: 14px; height: 23px; border: 1px solid #a08a5f45; border-radius: 80% 15% 75% 25%; background: linear-gradient(135deg, #fffdf4, #e2d3b4); box-shadow: inset 2px 1px 4px #fff8; opacity: 0; }
.content-active .ivory-petals span { animation: ivory-petal var(--duration, 12s) var(--delay, -2s) linear infinite; }
.ivory-petals span:nth-child(2) { left: 12%; width: 10px; height: 17px; --drift: 22px; --duration: 14s; --delay: -7s; }
.ivory-petals span:nth-child(3) { left: 21%; --drift: -25px; --duration: 13s; --delay: -4s; }
.ivory-petals span:nth-child(4) { left: 79%; width: 11px; height: 18px; --drift: 28px; --duration: 15s; --delay: -10s; }
.ivory-petals span:nth-child(5) { left: 88%; --drift: -18px; --duration: 12s; --delay: -6s; }
.ivory-petals span:nth-child(6) { left: 95%; width: 10px; height: 17px; --drift: -32px; --duration: 14s; --delay: -11s; }
.monogram::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(110deg, transparent 35%, #fff9 50%, transparent 65%); background-size: 300% 100%; background-position: 100% 0; opacity: 0; animation: ivory-sheen 1.2s .9s ease forwards; pointer-events: none; }
.content-active .hero-seal { position: relative; overflow: hidden; }
.content-active .hero-seal::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, #f8f5edb3 50%, transparent 65%); background-size: 300% 100%; background-position: 100% 0; opacity: 0; animation: ivory-sheen 1.2s 1s ease forwards; }
.section-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; text-align: left; }
.section-heading .intro { margin: 0; padding-left: 28px; border-left: 1px solid var(--line); }
#events { background: linear-gradient(180deg, #e9dfc525, transparent 80%); }
.closing { max-width: none; background: linear-gradient(180deg, transparent, #e9dfc545); padding-block: 100px; }
.closing::after { content: ''; display: block; width: 180px; height: 30px; margin: 30px auto 0; background: url('ornament.svg') center / contain no-repeat; }
[hidden] { display: none !important; }
.form-row:has(#rsvp-guest-count-field[hidden]) { grid-template-columns: 1fr; }
@keyframes ivory-petal {
    0% { opacity: 0; transform: translate3d(0, 0, 0) rotate(-25deg); }
    15% { opacity: .55; }
    45% { transform: translate3d(calc(var(--drift, 35px) * -1), 45svh, 0) rotate(55deg); }
    80% { opacity: .35; }
    100% { opacity: 0; transform: translate3d(var(--drift, 35px), 105svh, 0) rotate(150deg); }
}
@keyframes ivory-sheen { 0% { opacity: 0; background-position: 100% 0; } 25%, 75% { opacity: 1; } 100% { opacity: 0; background-position: 0 0; } }
@media (max-width: 540px) {
    .section-heading { grid-template-columns: 1fr; gap: 0; text-align: center; }
    .section-heading .intro { padding-left: 0; border-left: 0; margin: auto; }
    .ivory-petals span:nth-child(3) { left: 7%; }
    .ivory-petals span:nth-child(4) { left: 93%; }
}

@media (min-width: 541px) and (max-height: 850px) {
    .cover-screen { padding: 18px; }
    .cover-inner { padding: 20px 40px; }
    .monogram { width: 60px; height: 60px; font-size: 23px; margin: 16px auto; }
    h1 { font-size: 56px; margin: 12px 0 18px; }
    .edition::after { height: 24px; margin-top: 8px; }
    .guest { margin: 16px auto; padding: 12px 0; }
    .cover-footnote { margin-top: 18px; }
    .cover-footnote::before { height: 20px; margin-bottom: 8px; }
}

@media (max-width: 540px) {
    .cover-screen { padding: 14px; }
    .cover-inner { padding: 28px 24px; }
    .edition { font-size: 9px; padding-bottom: 4px; }
    .monogram { margin: 20px auto; }
    .guest { margin: 24px 0; }
    .masthead { padding: 22px; }
    .masthead a { font-size: 16px; }
    .masthead span { font-size: 8px; }
    .hero { position: relative; isolation: isolate; min-height: 74svh; padding: 70px 22px; }
    .section { padding: 60px 24px; }
    .couple-grid { grid-template-columns: 1fr; gap: 32px; margin: 40px 0; }
    .couple-grid article + article { border-left: 0; border-top: 1px solid var(--line); padding-top: 32px; }
    .events-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    blockquote { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal-pending { opacity: 1 !important; transform: none !important; }
    .cover-screen.cover-hidden { display: none; }
}

/* Native styling for shared RSVP feedback in the stationery themes. */
.rsvp-notification { position: fixed; right: 18px; bottom: calc(76px + env(safe-area-inset-bottom)); width: min(380px, calc(100% - 36px)); padding: 18px; z-index: 10002; background: var(--paper); color: var(--ink); border: 1px solid var(--accent); box-shadow: 0 8px 30px #34382f20; font: 13px/1.6 Arial, sans-serif; transition: opacity .3s, transform .3s; }
.preview-with-purchase-bar .rsvp-notification { bottom: 112px; }
.rsvp-notification[data-type="error"] { border-color: #946144; }
