:root {
  --bg: hsl(40 60% 96%);
  --bg-deep: hsl(40 45% 91%);
  --fg: hsl(64 32% 27%);
  --fg-soft: hsl(64 20% 38%);
  --line: hsl(64 20% 27% / .18);
  --display: "Antic Didone", Georgia, serif;
  --script: "Pinyon Script", cursive;
  --pad: clamp(20px, 6vw, 40px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); overscroll-behavior-y: none; } /* no white edge when pulled past the top or bottom */
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--display); overflow-x: hidden; }
body.locked { overflow: hidden; height: 100svh; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
h2 { font-weight: 400; margin: 0; }
.eyebrow { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--fg-soft); }
.title { font-size: clamp(34px, 9vw, 52px); line-height: 1.05; text-align: center; }
.lede { text-align: center; font-size: 15px; margin-top: 8px; color: var(--fg-soft); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid var(--fg); padding: 12px 26px; font-size: 11px; letter-spacing: .24em;
       text-transform: uppercase; background: transparent; cursor: pointer; text-decoration: none; }   /* 44px: the place to tap on a phone */
.btn.solid { background: var(--fg); color: var(--bg); }
.section { position: relative; padding: 96px var(--pad); overflow: hidden; }
.wrap { max-width: 560px; margin: 0 auto; position: relative; }

/* ---------- opening overlay */
.overlay { position: fixed; inset: 0; z-index: 60; background: #000; cursor: pointer; transition: opacity 1.5s cubic-bezier(.42,0,.58,1);
  /* a tap must not flash: phones wash a tapped element with a grey highlight, and this one fills the screen */
  -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; touch-action: manipulation; }
.overlay:focus:not(:focus-visible) { outline: none; }
.overlay.fading { opacity: 0; pointer-events: none; }
.overlay img, .overlay video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.overlay video { opacity: 0; } .overlay.playing video { opacity: 1; } .overlay.playing img { opacity: 0; }
.overlay .tap { position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%); color: #fff; font-size: 11px;
  letter-spacing: .3em; text-transform: uppercase; text-shadow: 0 1px 8px #0006; animation: pulse 2.4s ease-in-out infinite; }
.overlay.playing .tap, .overlay.tapped .tap { display: none; }
/* two-layer opening: the envelope film (drawn into .env) over the real first page; see opening() in invite.js */
.overlay .env { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.overlay.layered video { opacity: 0; }                       /* the packed film is only a source for .env */
.overlay.layered.ready { background: transparent; }         /* the names show through wherever the envelope opens */
.overlay.layered.ready img { opacity: 0; }
.overlay.layered.fading { transition-duration: .6s; }
/* 2026-12-01 (Kel: on a computer the opening showed an enlarged part of the envelope): the film is upright (9:16). In a
   window wider than that it plays whole, in an upright stage in the middle, and the page's own colour fills either side
   until the envelope has gone. Windows no wider than 9:16 (phones) are as before. */
@media (min-aspect-ratio: 9/16) {
  .overlay { --stage: calc(100svh * 9 / 16); }
  .overlay img, .overlay video, .overlay .env { left: 50%; right: auto; width: var(--stage); margin-left: calc(var(--stage) / -2); }
  .overlay::before, .overlay::after { content: ""; position: absolute; top: 0; bottom: 0; width: calc(50% - var(--stage) / 2 + 1px); background: var(--bg); }
  .overlay::before { left: 0; } .overlay::after { right: 0; }
}
@keyframes pulse { 50% { opacity: .45; } }

/* ---------- chrome */
.chrome { position: fixed; z-index: 40; opacity: 0; transform: scale(.85); transition: opacity .5s cubic-bezier(.22,1,.36,1) 1.5s, transform .5s cubic-bezier(.22,1,.36,1) 1.5s; }
.chrome.show { opacity: 1; transform: none; }
.lang { top: 16px; right: 16px; display: flex; gap: 4px; padding: 4px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg); }
.lang button { border: 0; border-radius: 99px; padding: 4px 12px; font-size: 12px; letter-spacing: .1em; background: none; color: var(--fg-soft); cursor: pointer; }
.lang button.on { background: var(--fg); color: var(--bg); }
.progress { left: 0; top: 0; height: 1px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--fg); opacity: .35; transition: none; }
.chrome.progress, .chrome.progress.show { transform: scaleX(0); } .chrome.progress.show { opacity: .35; } /* a hairline that grows as you read; .chrome's own scale and full opacity must not apply */

/* ---------- the couple's preview before paying: a quiet word at the top, over the opening film too (no box, no badge) */
.preview-tag { position: fixed; top: calc(4px + env(safe-area-inset-top)); left: 50%; z-index: 65; transform: translateX(-50%); margin: 0;
  display: flex; align-items: center; gap: 12px; pointer-events: none; white-space: nowrap;
  font-size: 10px; letter-spacing: .34em; text-transform: uppercase; color: var(--fg);
  padding: 8px 0;
  text-shadow: 0 0 6px var(--bg), 0 0 14px var(--bg); animation: tag-in 1.6s cubic-bezier(.22,1,.36,1) .3s both; }
.preview-tag span { margin-right: -.34em; }   /* cancel the tracking after the last letter so the word sits centred */
.preview-tag::before, .preview-tag::after { content: ''; width: 22px; height: 1px; background: currentColor; opacity: .45; }
@keyframes tag-in { from { opacity: 0; } }
.is-preview .lang { top: 40px; }

/* The editor preview always has a touch-sized return, above the opening film. */
.preview-exit { display: none; }
.editor-preview .preview-exit { position: fixed; z-index: 90; top: calc(12px + env(safe-area-inset-top)); right: calc(12px + env(safe-area-inset-right));
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 13px;
  border: 0; background: transparent; color: #1e1c19; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.editor-preview .preview-exit.on-ink { color: #fff; }
.preview-exit:focus-visible { outline: 2px solid #87693c; outline-offset: 3px; }
.editor-preview .lang { top: calc(64px + env(safe-area-inset-top)); }

/* ---------- divider between sections */
.divider { display: flex; align-items: center; justify-content: center; gap: 14px; height: 40px; padding: 0 var(--pad); }
.divider span { width: 56px; height: 1px; background: var(--fg); opacity: .35; }
.divider span:first-child { transform-origin: 100% 50%; } .divider span:last-child { transform-origin: 0 50%; }
.divider i { width: 5px; height: 5px; border: 1px solid var(--fg); opacity: .55; transform: rotate(45deg); }

/* ---------- 1 hero */
.s-hero { height: 100svh; min-height: 520px; padding: 0; background: var(--bg); }
.s-hero .bg { position: absolute; inset: 0; will-change: transform; }
.s-hero .bg img, .s-hero .bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.s-hero .bg canvas { opacity: 0; } .s-hero .bg canvas.on { opacity: 1; }
.s-hero .veil { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 55%, var(--bg)); opacity: 0; pointer-events: none; }
.s-hero .text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; text-align: center;
  justify-content: center; padding: 11svh 24px 32svh; opacity: 0;   /* text stays in the sky: the village art fills the bottom ~30% at any screen height */ transition: opacity 1800ms ease-out; isolation: isolate; }
.s-hero.show .text { opacity: 1; }
.s-hero .text::before { content: ""; position: absolute; left: 50%; top: 40%; width: 125%; height: 70%; transform: translate(-50%, -50%); z-index: -1;
  background: radial-gradient(closest-side, hsl(40 60% 97% / .82), hsl(40 60% 97% / .55) 55%, hsl(40 60% 97% / 0)); }
.s-hero .names { font-weight: 400; /* Antic Didone has no bold; an <h1> would otherwise get a faked heavier face */ font-size: min(48px, 7.4svh); line-height: .95; display: flex; flex-direction: column; align-items: center; margin-bottom: min(20px, 2.4svh); }
.s-hero .amp { font-style: italic; font-size: .5em; margin: 4px 0; }
/* never wider than the first page: invite.js fitHero sets a long word smaller first; a word still too long breaks */
.s-hero .names, .s-hero .venue, .s-hero .held { max-width: 100%; overflow-wrap: anywhere; }
.s-hero .names > span { max-width: 100%; }
.s-hero .dline { display: none; } /* one-line date, shown only in the homepage mock-up */
.s-hero .invite { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; max-width: 260px; line-height: 1.625; margin: 0; }
.s-hero .date { position: relative; margin: min(24px, 2.8svh) 0 min(12px, 1.6svh); display: flex; flex-direction: column; align-items: center; }
.s-hero .date .sprig { position: absolute; top: 50%; width: 38px; }
.s-hero .date .sprig.l { left: -66px; transform: translateY(-50%) rotate(-105deg); }
.s-hero .date .sprig.r { right: -66px; transform: translateY(-50%) rotate(105deg) scaleX(-1); }
.s-hero .m, .s-hero .y { font-size: 10px; letter-spacing: .32em; text-transform: uppercase; opacity: .85; padding-left: .32em; }
.s-hero .d { font-size: min(48px, 6.4svh); line-height: 1; }
.s-hero .w { font-size: 9px; letter-spacing: .32em; text-transform: uppercase; opacity: .8; }
.s-hero .held { font-size: 10px; letter-spacing: .25em; text-transform: uppercase; margin: min(12px, 1.6svh) 0 0; }
.s-hero .venue { font-size: 20px; margin: 8px 0 0; }
.s-hero .scroll { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: hsl(40 60% 96% / .85); display: grid; place-items: center; cursor: pointer;
  opacity: 0; transition: opacity 1.5s ease-out 1s; }
.s-hero.show .scroll { opacity: 1; }
.s-hero .scroll svg { animation: bob 1.5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }

/* ---------- 2 countdown: one large numeral between two hairlines (no wreath frame, no count-up) */
.s-countdown .count { display: flex; flex-direction: column; align-items: center; margin: 36px 0 18px; }
.s-countdown .rule { width: 1px; height: 52px; background: var(--fg); opacity: .4; transform-origin: 50% 0; }
.s-countdown .n { font-size: clamp(96px, 30vw, 156px); line-height: .9; margin: 26px 0 10px; font-variant-numeric: lining-nums tabular-nums; }
.s-countdown .l { font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--fg-soft); margin-bottom: 26px; }
.s-countdown .cal { display: flex; justify-content: center; margin-top: 28px; }

/* ---------- save the date: after page one, a hairline, "Invitation to follow", the calendar, the maker's line */
.std .s-hero .scroll { display: none; }
/* the title of a save the date: first on the page, second only to the names */
.s-hero .std-title { margin: 0; font-size: min(27px, 3.7svh); line-height: 1.1; letter-spacing: .02em; }
.s-hero .std-hair { display: block; width: 44px; height: .75px; background: var(--gold, #b39262); margin: min(16px, 2svh) 0 min(22px, 2.8svh); }
.s-std { padding: 56px var(--pad) 0; text-align: center; }
.s-std .rule { display: block; width: 1px; height: 44px; margin: 0 auto 26px; background: var(--fg); opacity: .4; }
.s-std .follow { margin: 0; font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--fg-soft); }
.s-std .cal { display: flex; justify-content: center; margin-top: 34px; }
.s-std .cal .btn { text-decoration: none; padding: 11px 16px; cursor: pointer; }
.s-std .made { margin-top: 72px; padding: 22px 0 calc(22px + env(safe-area-inset-bottom)); font-size: 13px; letter-spacing: .12em; }
.s-std .made a { color: inherit; text-decoration: none; padding: 8px 4px; }
.s-std .made a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ---------- 3 story (flows with the page; the pin was removed 2026-11-27) */
.s-story { padding: 0; min-height: 100svh; }
/* flows with the page (no pin, 2026-11-27): tall enough for the clouds above and the garden below, never a fixed screen */
/* 2026-12-01 (Kel: flat and crowded on a phone; make it read like a magazine feature). The sky and the coast keep a fixed
   height at the two ends of the section and the words begin below one and end above the other, with room for the art's
   slow drift, so a story of any length never runs under the painting (the bands used to be a share of the section's
   height and grew over the words as the story grew). */
.s-story { --sky: 18svh; --coast: 16svh; --kick: #87693c; --rule: #b39262; }
.s-story .stage { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--sky) + 2.5svh + 16px) max(var(--pad), 28px) calc(var(--coast) + 1svh + 28px); overflow: hidden; }
.s-story .clouds, .s-story .garden { position: absolute; left: -10%; width: 120%; pointer-events: none; }
.s-story .clouds { top: 0; height: var(--sky); background-size: cover; background-position: 50% 8%;
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent); mask-image: linear-gradient(to bottom, #000 40%, transparent); }
.s-story .garden { bottom: 0; height: var(--coast); background-size: cover; background-position: 50% 96%;
  -webkit-mask-image: linear-gradient(to top, #000 45%, transparent); mask-image: linear-gradient(to top, #000 45%, transparent); }
/* the feature setting: a small label, a headline (a line lifted from the story when there is one, otherwise the title),
   a place-and-date line, then a left reading column with a drop capital, indented paragraphs and air between them */
.s-story .copy { position: relative; width: 100%; max-width: 460px; margin: 0 auto; text-align: left; }
.s-story .kick { font: 500 10.5px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; letter-spacing: .26em; text-transform: uppercase; color: var(--kick); margin-bottom: 18px; }
.s-story .title { font-size: clamp(40px, 12vw, 50px); line-height: 1; letter-spacing: -.015em; text-align: left; text-wrap: balance; margin: 0 0 26px; }
.s-story .feature .title { margin-bottom: 20px; }
.s-story .kick.date { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.s-story .kick.date::after { content: ""; flex: 1; border-top: .75px solid var(--rule); opacity: .7; }
.s-story p { font-size: 16.5px; line-height: 1.7; margin: 0; }
.s-story p + p { text-indent: 1.4em; margin-top: 13px; }
.s-story .copy p:first-of-type::first-letter { float: left; font-size: 3.5em; line-height: .82; padding: .05em .09em 0 0; }
.s-story .sig { display: flex; align-items: center; justify-content: flex-end; gap: 14px; font-family: var(--script); font-size: 34px; line-height: 1; margin-top: 26px; clip-path: inset(0 100% 0 0); }
.s-story .sig::before { content: ""; width: 28px; border-top: .75px solid var(--rule); }

/* ---------- 4 venue */
.s-venue { padding-top: 0; }
.s-venue .scene { position: relative; height: 62svh; margin: 0 calc(var(--pad) * -1); overflow: hidden; }
.s-venue .scene .layer { position: absolute; left: 0; right: 0; background-size: cover; will-change: transform; }
.s-venue .scene .sky { top: -10%; bottom: -10%; background-position: 50% 40%; }
.s-venue .scene .building { left: 8%; right: 8%; bottom: 0; height: 70%; background-position: 50% 80%; border-radius: 50% 50% 0 0 / 22% 22% 0 0; }
.s-venue .scene .fade { position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(transparent, var(--bg)); }
/* 2026-11-27 (Kel): the title used to sit under the card (the card was pulled 60px up over it). It now rests on the
   painting's soft fade and the card follows below it; the day-of contacts are a quieter companion card in the same style */
.s-venue .card { position: relative; margin: 0 auto; max-width: 460px; background: var(--bg); border: 1px solid var(--line);
  padding: 36px 28px; text-align: center; box-shadow: 0 24px 50px -30px #3b3a2066; }
.s-venue .card + .card { margin-top: 24px; }
.s-venue .card h3 { font-weight: 400; font-size: 28px; margin: 10px 0 4px; }
.s-venue .card p { font-size: 15px; line-height: 1.6; margin: 14px 0; }
.s-venue .card .time { font-style: italic; font-size: 14px; color: var(--fg-soft); }
.s-venue .contact { position: relative; max-width: 460px; margin: 20px auto 0; padding: 28px 28px 6px; text-align: center;
  border: 1px solid var(--line); background: var(--bg-deep); }
.s-venue .contact::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--line); pointer-events: none; } /* double rule, like the gift card */
.s-venue .contact > p { font-size: 15px; margin: 6px 0 4px; color: var(--fg-soft); }
.s-venue .person { position: relative; padding: 18px 0 22px; }
.s-venue .person + .person { border-top: 1px solid var(--line); }
.s-venue .person b { display: block; font-weight: 400; font-size: 22px; }
.s-venue .person span { display: block; margin-top: 2px; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--fg-soft); }
.s-venue .person .acts { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }

/* ---------- 5 schedule */
/* time | hairline rail | what happens; no icons, the rail fills as you scroll */
.s-schedule .timeline { --col: 76px; --gap: 44px; position: relative; margin: 48px auto 0; max-width: 380px; }
.s-schedule .rail { position: absolute; left: calc(var(--col) + var(--gap) / 2); top: 22px; bottom: 22px; width: 1px; background: var(--line); }
.s-schedule .rail i { position: absolute; inset: 0; background: var(--fg); transform-origin: 50% 0; transform: scaleY(0); }
.s-schedule .item { position: relative; display: grid; grid-template-columns: var(--col) 1fr; gap: 0 var(--gap); padding: 14px 0; align-items: baseline; }
.s-schedule .item .t { text-align: right; font-size: 13px; letter-spacing: .14em; color: var(--fg-soft); font-variant-numeric: lining-nums tabular-nums; }
.s-schedule .item .h { font-size: 20px; line-height: 1.3; }
.s-schedule .item .t, .s-schedule .item .h { opacity: .3; transition: opacity .8s cubic-bezier(.22,1,.36,1); }
.s-schedule .item .dot { position: absolute; left: calc(var(--col) + var(--gap) / 2); top: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--fg); transition: background .6s; }
.s-schedule .item.on .t, .s-schedule .item.on .h { opacity: 1; }
.s-schedule .item.on .dot { background: var(--fg); }

/* ---------- 6 dress code */
/* words, not colour swatches: guests read guidance, not a list of required colours */
.s-dresscode .code { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 36px 0 6px; }
.s-dresscode .code .rule { width: 36px; height: 1px; background: var(--fg); opacity: .4; }
.s-dresscode .level { font-size: clamp(26px, 7vw, 34px); line-height: 1.15; text-align: center; }
.s-dresscode p { text-align: center; font-size: 16px; line-height: 1.6; max-width: 420px; margin: 16px auto 0; }
.s-dresscode .note { margin-top: 30px; text-align: center; }
.s-dresscode .note p { margin-top: 6px; font-size: 17px; }

/* ---------- 7 stay */
.s-stay .hotels { display: grid; gap: 20px; max-width: 400px; margin: 36px auto 0; }
.s-stay .hotel { position: relative; border: 1px solid hsl(64 32% 27% / .45); background: var(--bg); }
.s-stay .hotel::before { content: ""; position: absolute; inset: 5px; border: 1px solid hsl(64 32% 27% / .2); pointer-events: none; z-index: 1; }
.s-stay .hotel .pic { margin: 10px 10px 0; aspect-ratio: 3 / 2; overflow: hidden; }
.s-stay .hotel .pic img { width: 100%; height: 100%; object-fit: cover; }
.s-stay .hotel .body { padding: 30px 26px; text-align: center; }
.s-stay .hotel h3 { font-weight: 400; font-size: 24px; margin: 0; line-height: 1.2; }
.s-stay .hotel .dist { margin-top: 8px; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--fg-soft); }
.s-stay .hotel .price { margin: 18px 0 2px; font-size: 18px; }
.s-stay .hotel .price span { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--fg-soft); margin-right: 4px; }
.s-stay .hotel .note { font-size: 13px; color: var(--fg-soft); }
.s-stay .hotel .code { display: block; margin: 18px auto 0; padding: 10px 18px; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: none; font-size: 15px; letter-spacing: .2em; cursor: pointer; position: relative; z-index: 2; }
.s-stay .hotel .code span { display: block; font-size: 9px; letter-spacing: .22em; text-transform: uppercase; color: var(--fg-soft); margin-bottom: 4px; }
.s-stay .hotel .btn { margin-top: 20px; position: relative; z-index: 2; }

/* ---------- 8 gifts */
/* a stationery card with a double hairline frame (replaces the leaf wreath) */
.s-gifts .card { position: relative; max-width: 360px; margin: 32px auto 0; padding: 40px 32px; border: 1px solid hsl(64 32% 27% / .45); }
.s-gifts .card::before { content: ""; position: absolute; inset: 5px; border: 1px solid hsl(64 32% 27% / .2); pointer-events: none; }
.s-gifts .card p { text-align: center; font-size: 16px; line-height: 1.6; margin: 0; text-wrap: pretty; }
.s-gifts .reveal { text-align: center; margin-top: 24px; }
.s-gifts .details { max-width: 380px; margin: 18px auto 0; overflow: hidden; height: 0; }
.s-gifts .row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.s-gifts .row b { font-weight: 400; color: var(--fg-soft); }
.s-gifts .row .copyv { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-align: right; cursor: pointer; overflow-wrap: anywhere; }
.s-gifts .row .copyv:focus-visible { outline: 1px solid var(--fg); outline-offset: 3px; }

/* ---------- 9 rsvp */
.s-rsvp .deck { position: relative; max-width: 440px; margin: 36px auto 0; min-height: 300px; }
.s-rsvp .step { position: absolute; inset: 0 0 auto 0; background: var(--bg); border: 1px solid var(--line); padding: 28px 24px;
  opacity: 0; transform: translateY(24px) scale(.97); pointer-events: none; transition: opacity .5s, transform .6s cubic-bezier(.2,.8,.2,1); }
.s-rsvp .step.active { opacity: 1; transform: none; pointer-events: auto; position: relative; }
.s-rsvp .step.done { opacity: 0; transform: translateY(-24px) scale(.97); }
.s-rsvp label.opt { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); padding: 14px 16px; margin: 10px 0; cursor: pointer; font-size: 15px; }
.s-rsvp label.opt:has(input:checked) { border-color: var(--fg); background: var(--bg-deep); }
.s-rsvp input[type=text], .s-rsvp input[type=email], .s-rsvp textarea { width: 100%; border: 0; border-bottom: 1px solid var(--fg); background: transparent;
  font: inherit; font-size: 16px; padding: 10px 0; color: var(--fg); outline: none; }
/* the line is already ink at rest: in use it doubles, so it is clear which field is being filled in */
.s-rsvp input[type=text]:focus, .s-rsvp input[type=email]:focus, .s-rsvp textarea:focus { box-shadow: inset 0 -1px 0 var(--fg); }
.s-rsvp .q { font-size: 18px; margin: 0 0 12px; }
/* the household's own link knows who is invited: tick who is coming, names are pre-filled where the couple knew them */
.s-rsvp .greet { font-size: 22px; margin: 0 0 18px; }
.s-rsvp .hint.top { margin: -4px 0 14px; }
.s-rsvp .guest { display: flex; align-items: center; gap: 14px; }
.s-rsvp .guest input[type=checkbox] { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--fg); }
/* the tick keeps its 18px look; the label around it is the 44px place to tap (negative margins keep the row as it was) */
.s-rsvp .guest .tick { flex: none; display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; margin: 0 -13px; cursor: pointer; }
.s-rsvp .guest { min-height: 48px; }
.s-rsvp .guest .pick { flex: none; display: flex; align-items: center; gap: 14px; min-height: 44px; }
.s-rsvp .guest .pick:has(.nm:not([hidden])) { flex: 1; min-width: 0; cursor: pointer; }
.s-rsvp .guest .pick:not(:has(.tick, .nm:not([hidden]))) { display: none; }
.s-rsvp .guest .nm { min-width: 0; overflow-wrap: anywhere; font-size: 17px; }
.s-rsvp .guest .fix { flex: none; margin: 0; min-width: 44px; min-height: 44px; text-align: right; }
.s-rsvp .who { padding: 14px 0 16px; border-bottom: 1px solid var(--line); }
.s-rsvp .who .nm { font-size: 17px; margin: 0 0 10px; }
.s-rsvp .dishes { display: grid; gap: 8px; }
.s-rsvp .dish { position: relative; display: block; padding: 11px 14px; border: 1px solid var(--line); cursor: pointer; transition: opacity .45s cubic-bezier(.22,1,.36,1), border-color .25s, background .25s; }
.s-rsvp .dish input { position: absolute; opacity: 0; pointer-events: none; }
.s-rsvp .dish b { display: block; font-weight: 400; font-size: 16px; }
.s-rsvp .dish small { display: block; font-size: 13px; color: var(--fg-soft); margin-top: 2px; }
.s-rsvp .dish:has(input:checked) { border-color: var(--fg); background: var(--bg-deep); }
.s-rsvp .dishes:has(input:checked) .dish:not(:has(input:checked)) { opacity: .45; }   /* dimmed, still tappable */
.s-rsvp .dish:has(input:focus-visible) { outline: 1px solid var(--fg); outline-offset: 2px; }
/* a question that took the focus when the step changed is only a reading point, not a control */
.s-rsvp .step [tabindex="-1"]:focus { outline: none; }
.s-rsvp .diet-open { margin-top: 10px; border: 0; background: none; padding: 4px 0; font-size: 14px; color: var(--fg-soft); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.s-rsvp [data-diet] { margin-top: 6px; font-size: 15px !important; }
.s-rsvp .nav { display: flex; justify-content: space-between; margin-top: 20px; }
.s-rsvp .bar { height: 2px; background: var(--line); margin-bottom: 18px; } .s-rsvp .bar i { display: block; height: 100%; background: var(--fg); width: 0; transition: width .5s; }
.s-rsvp .thanks { text-align: center; }
.s-rsvp .env { width: 120px; height: 80px; margin: 10px auto 18px; position: relative; }
.s-rsvp .env .body { position: absolute; inset: 0; background: #efe6d6; border: 1px solid var(--line); }
.s-rsvp .env .flap { position: absolute; left: 0; right: 0; top: 0; height: 60%; background: #e8ddc9; clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: 50% 0; transform: rotateX(180deg); transition: transform .8s cubic-bezier(.5,0,.2,1); }
.s-rsvp .env .seal { position: absolute; left: 50%; top: 48%; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: #7a2f35;
  opacity: 0; transform: scale(.92); transition: opacity 1.2s cubic-bezier(.16,1,.3,1) .7s, transform 1.2s cubic-bezier(.16,1,.3,1) .7s; }
.s-rsvp .thanks.sealed .flap { transform: none; } .s-rsvp .thanks.sealed .seal { opacity: 1; transform: none; }
.s-rsvp textarea + input[type=email] { margin-top: 14px; font-size: 15px; }
/* after replying: what was sent, calendar, change */
.s-rsvp .sum { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--line); text-align: left; }
.s-rsvp .sum li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.s-rsvp .sum li span + span { color: var(--fg-soft); font-style: italic; text-align: right; }
.s-rsvp .thanks .hint { text-align: center; margin-top: 12px; }
.s-rsvp .thanks .hint a { color: inherit; }
.s-rsvp .cal { margin-top: 24px; }
.s-rsvp .cal .row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.s-rsvp .cal .btn { background: none; color: var(--fg); cursor: pointer; text-decoration: none; font-family: inherit; padding: 11px 16px; letter-spacing: .18em; }
.s-rsvp .change { margin-top: 24px; border: 0; background: none; font: inherit; font-size: 15px; color: var(--fg); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.s-rsvp .closed { text-align: center; }
.s-rsvp .deck:has(.closed) { min-height: 0; }

/* ---------- 10 faq */
.s-faq .list { max-width: 480px; margin: 32px auto 0; }
.s-faq .qa { border-bottom: 1px solid var(--line); }
.s-faq .qa button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0;
  border: 0; background: none; text-align: left; font-size: 17px; cursor: pointer; }
.s-faq .qa button i { font-style: normal; transition: transform .4s; } .s-faq .qa.open button i { transform: rotate(45deg); }
.s-faq .qa .a { height: 0; overflow: hidden; }
.s-faq .qa .a p { margin: 0 0 18px; font-size: 15px; line-height: 1.6; color: var(--fg-soft); }

/* ---------- 11 ending (pinned zoom) */
/* 2026-11-27 (Kel: scrolling to the end stuttered): the closing picture holds with native position:sticky instead of a
   script pin, so the phone's own scrolling moves it, frame for frame; the scroll only drives the arch opening.
   overflow: clip, not hidden, so the section does not become a scroll box that would stop sticky working */
.s-ending { padding: 0; overflow: clip; }
.s-ending .track { height: 210svh; } /* the stage stays put (sticky) for the extra 110svh of scrolling inside this */
.s-ending .stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.s-ending .art { position: absolute; inset: 0; background-size: cover; background-position: 50% 50%; will-change: transform; }
.s-ending .arch { position: absolute; inset: 0; pointer-events: none; will-change: transform; }
.s-ending .arch svg { width: 100%; height: 100%; }
.s-ending .words { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 24px; opacity: 0; }
.s-ending .words .n { font-size: 46px; line-height: 1; }
.s-ending .words .amp { font-family: var(--script); font-size: 34px; margin: 6px 0; }
.s-ending .words .line { margin-top: 18px; font-size: 13px; letter-spacing: .24em; text-transform: uppercase; }
.s-ending .made { padding: 22px 0 calc(22px + env(safe-area-inset-bottom)); text-align: center; font-size: 13px; letter-spacing: .12em; color: var(--fg); background: var(--bg); }
.s-ending .made a { color: inherit; text-decoration: none; padding: 8px 4px; } /* quiet: same look as plain text, a hairline only on hover */
/* Kel 2026-11-27: when the line comes into view, a soft band of light passes over the words twice, then rests. Text-clipped
   gradient: ink, a warm paper-light band, ink; only background-position moves */
.s-ending .made.lit a { background: linear-gradient(100deg, var(--fg) 40%, hsl(38 52% 72%) 50%, var(--fg) 60%) 100% 0 / 260% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: made-light 1.9s cubic-bezier(.45,.05,.35,1) .4s 2 both; }
@keyframes made-light { from { background-position: 100% 0; } to { background-position: 0% 0; } } /* the band starts left of the words and ends right of them; the ink always covers the text */
@media (prefers-reduced-motion: reduce) { .s-ending .made.lit a { animation: none; background: none; color: var(--fg); } }
.s-ending .made a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ---------- petals + toast */
.petals { position: fixed; inset: 0; pointer-events: none; z-index: 30; }
.toast { position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 20px); background: var(--fg); color: var(--bg); padding: 10px 18px;
  font-size: 13px; border-radius: 99px; opacity: 0; transition: opacity .3s, transform .3s; z-index: 70; pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- static fallback (reduced motion / no GSAP) */
.static .rv { opacity: 0; transform: translateY(16px); transition: opacity .8s, transform .8s; }
.static .rv.in { opacity: 1; transform: none; }
.static .s-story .sig { clip-path: none; }
.static .s-schedule .rail i { transform: none; }
/* reduced motion: blocks still fade in (docs/inner-pages-design.md), but nothing slides, turns or pops */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; }
  *:not(.rv) { transition: none !important; }
  .static .rv { transform: none; transition: opacity .8s; }
}

/* privacy hint under the dietary field */
.s-rsvp .hint { margin: 6px 0 0; font-size: 12px; color: var(--fg-soft); }
.s-rsvp .hint a { color: inherit; }
.static .s-ending .track { height: auto; } /* no motion: nothing to hold for */

/* ---------- updates after the invitations went out (2026-11-28): a small card that rises from the bottom once the
   envelope has opened (it never covers the names on page one, and its buttons sit under the thumb), a small "Updated"
   next to what changed, and "still joining us?" after a date change. */
.notice { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30; max-width: 520px; margin: 0 auto;
  padding: 16px 46px 16px 20px; background: var(--bg); color: var(--fg); border: .75px solid var(--line, rgba(0,0,0,.14)); border-radius: 2px;
  box-shadow: 0 18px 44px -22px rgba(0,0,0,.4); text-align: left; font-size: 14px; line-height: 1.5;
  transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
body.locked .notice { opacity: 0; transform: translateY(24px); pointer-events: none; }
.notice.gone { opacity: 0; transform: translateY(24px); }
.notice .what { margin: 0; }
.notice .what b { font-weight: 500; letter-spacing: .04em; }
.notice .re { margin: 12px 0 2px; }
.notice .re p { margin: 0 0 10px; }
.notice .re .row { display: flex; gap: 10px; flex-wrap: wrap; }
.notice .re .btn { padding: 10px 16px; font-size: 11px; cursor: pointer; }
.notice .link { display: inline-block; margin-top: 8px; color: inherit; font-size: 13px; text-underline-offset: 3px; }
.notice .x { position: absolute; top: 8px; right: 6px; width: 36px; height: 36px; border: 0; background: none;
  color: var(--fg-soft); font-size: 20px; line-height: 1; cursor: pointer; }
.upd-mark { margin: 10px 0 0; text-align: center; }
.upd-mark span { display: inline-block; padding: 3px 9px; border: .75px solid currentColor; border-radius: 99px; font-size: 10px; letter-spacing: .24em;
  text-transform: uppercase; color: #87693c; }
.cal.subscribe { flex-direction: column; align-items: center; }
.cal .row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.s-countdown .cal .btn { text-decoration: none; padding: 11px 16px; }
.cal .hint { margin: 10px 0 0; font-size: 12px; color: var(--fg-soft); text-align: center; }
