/* Invite page: the card on coloured paper, then one continuous letter sheet. Phone first; every design sets its own
   colours and name font (fonts come from card-fonts.css, already needed for the canvas card).
   The envelope opening (env-*) is built by invite.js; without JS nothing here hides any content. */
:root { color-scheme: light; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
html.is-opening, html.is-opening body { overflow: hidden; }
body { margin: 0; background: var(--bg, #f8efdd); color: var(--ink, #3a1d1d); font: 17px/1.6 "Lora", Georgia, serif; }

/* --grain: paper fibre drawn by an SVG noise filter (one tiny data URI, no image download). */
.inv { --bg: #f8efdd; --paper: #fffaf1; --ink: #3a1d1d; --soft: #74564a; --accent: #b0262c; --line: #e2cfa8; --tint: #f6ecdb; --btn: #b0262c; --btn-ink: #fff;
  --names: "Cormorant Garamond", Georgia, serif; --names-style: italic; --names-weight: 500; --caps: "Cormorant SC", Georgia, serif; --caps-size: 15px;
  --num: "Lora", Georgia, serif;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .25 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background: var(--bg); color: var(--ink); min-height: 100vh; position: relative; }
.d-rose { --bg: #fcf5f1; --paper: #fff; --ink: #4a2a2e; --soft: #86666a; --accent: #b85462; --line: #f0d3d6; --tint: #fbeeea; --btn: #b85462; --names: "Bad Script", cursive; --names-style: normal; --names-weight: 400; --caps: "Montserrat", system-ui, sans-serif; --caps-size: 12px; }
.d-gold { --bg: #0f4a39; --paper: #124f3d; --ink: #f7eed9; --soft: #cfc3a3; --accent: #e9c46a; --line: rgba(233,196,106,.32); --tint: #0d4030; --btn: #e9c46a; --btn-ink: #0b3127; }
.d-atlas { --bg: #fffaf1; --paper: #fff; --ink: #1f1d24; --soft: #5f5a66; --accent: #d81b74; --line: #e9dfe2; --tint: #fbf2ee; --btn: #d81b74; --names: "Forum", Georgia, serif; --names-style: normal; --names-weight: 400; --caps: "Montserrat", system-ui, sans-serif; --caps-size: 12px; --num: "Forum", Georgia, serif; }
.d-minimal { --bg: #f4f4f1; --paper: #fff; --ink: #1f1d24; --soft: #66626c; --accent: #1f1d24; --line: #e4e2de; --tint: #f6f6f3; --btn: #1f1d24; --caps: "Montserrat", system-ui, sans-serif; --caps-size: 12px; --num: "Montserrat", system-ui, sans-serif; }
.d-pamir { --bg: #f4e8d6; --paper: #fbf3e7; --ink: #2a1f1a; --soft: #6b5446; --accent: #a8432b; --line: #e2cdb0; --tint: #f3e3cd; --btn: #a8432b; --names: "Forum", Georgia, serif; --names-style: normal; --names-weight: 400; --caps: "Montserrat", system-ui, sans-serif; --caps-size: 12px; --num: "Forum", Georgia, serif; }
.d-chakan { --bg: #fffdf7; --paper: #fff; --ink: #2a1a1a; --soft: #6b4f4f; --accent: #d7263d; --line: #f3dcd0; --tint: #fff6ee; --btn: #d7263d; --names: "Forum", Georgia, serif; --names-style: normal; --names-weight: 400; --caps: "Montserrat", system-ui, sans-serif; --caps-size: 12px; --num: "Forum", Georgia, serif; }
.d-kids { --bg: #fff9ee; --paper: #fff; --ink: #2b2340; --soft: #6a6380; --accent: #f26b5b; --line: #f3e4c6; --tint: #fff3dd; --btn: #f26b5b; --names: "Pacifico", cursive; --names-style: normal; --names-weight: 400; --caps: "Montserrat", system-ui, sans-serif; --caps-size: 12px; --num: "Montserrat", system-ui, sans-serif; }
.d-photo { --bg: #1d1922; --paper: #26212c; --ink: #fff; --soft: rgba(255,255,255,.78); --accent: #ffe2b0; --line: rgba(255,255,255,.16); --tint: #2c2633; --btn: #ffe2b0; --btn-ink: #1d1922; --caps: "Montserrat", system-ui, sans-serif; --caps-size: 12px; --num: "Montserrat", system-ui, sans-serif; }
.d-memorial { --bg: #f4f3f0; --paper: #fff; --ink: #2e3136; --soft: #6b6f75; --accent: #4a4f56; --line: #dcdcd8; --tint: #f6f6f4; --btn: #4a4f56; --names-style: normal; --names-weight: 700; --num: "PT Serif", Georgia, serif; }

/* the card, lying on the coloured paper; the wrap keeps its slot while the canvas travels through the envelope */
.inv-hero { padding: 20px 16px 0; display: flex; justify-content: center; }
.inv-card-wrap { width: 100%; max-width: 420px; aspect-ratio: 9 / 16; transform-style: preserve-3d; }
.is-opening .inv-card-wrap { position: relative; z-index: 21; } /* the card flies over the envelope stage into its slot */
.inv-card { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 4px;
  background: var(--paper); box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 8px 22px 50px -14px rgba(30,20,20,.4), 1px 2px 6px rgba(30,20,20,.14); }

/* the letter sheet */
.inv-body { max-width: 560px; margin: 24px auto 0; padding: 8px 22px 28px; text-align: center; background: var(--paper);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.inv-ended { margin: 10px 0 0; padding: 12px 14px; border: 1px solid var(--line); color: var(--soft); font-style: italic; }
.inv-letter { padding: 22px 0 8px; }
.inv-guest { margin: 0 0 18px; font-size: 16px; color: var(--soft); }
.inv-guest b { display: block; margin-top: 2px; color: var(--accent); font: var(--names-style) var(--names-weight) 30px/1.2 var(--names); }
.inv-eyebrow { margin: 0 0 10px; font: 500 var(--caps-size)/1.4 var(--caps); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.inv-title { margin: 0 0 16px; font: var(--names-style) var(--names-weight) clamp(38px, 11vw, 54px)/1.08 var(--names); overflow-wrap: anywhere; }
.inv-title .amp { display: block; color: var(--accent); font-size: .5em; line-height: 1.1; margin: 2px 0; }
.inv-subtitle { margin: 0 0 6px; font: 700 22px/1.25 "Cormorant Garamond", Georgia, serif; }
.inv-text { max-width: 36em; margin: 0 auto; }
.inv-text p { margin: 0 0 10px; color: var(--soft); }
.inv-langs { display: inline-flex; gap: 2px; margin: 6px 0 16px; border-bottom: 1px solid var(--line); }
.inv-langs button { border: 0; background: transparent; color: var(--soft); font: 500 13px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; letter-spacing: .04em; padding: 12px 14px; min-height: 44px; cursor: pointer; margin-bottom: -1px; border-bottom: 2px solid transparent; }
.inv-langs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.inv-sign { margin: 14px 0 0; color: var(--soft); font-style: italic; }
.inv-hosts-name { margin: 2px 0 0; font: 700 24px/1.25 "Cormorant Garamond", Georgia, serif; }

/* sections are parted by a short divider: each design has its own (gold rules, ikat bar, knit dashes, confetti) */
.inv-sec { padding: 22px 0 6px; margin: 10px 0 0; position: relative; }
.inv-sec::before { content: ""; display: block; width: 72px; height: 1px; background: var(--line); margin: 0 auto 18px; }
.d-suzani .inv-sec::before { height: 5px; width: 96px; background: linear-gradient(#d2a142 0 1px, transparent 1px 4px, #d2a142 4px); }
.d-gold .inv-sec::before { width: 140px; background: linear-gradient(90deg, transparent, var(--accent) 30%, var(--accent) 70%, transparent); }
.d-atlas .inv-sec::before { height: 4px; width: 104px; background: repeating-linear-gradient(100deg, #f2b705 0 9px, #d81b74 9px 18px, #1d4ed8 18px 26px, #1c8a4c 26px 34px); }
.d-pamir .inv-sec::before { height: 4px; width: 108px; background: repeating-linear-gradient(90deg, #a8432b 0 6px, transparent 6px 9px, #241c18 9px 12px, transparent 12px 15px); }
.d-chakan .inv-sec::before { height: 3px; width: 96px; background: linear-gradient(90deg, #d7263d 0 34%, #f7c53b 34% 67%, #2e9e5b 67%); }
.d-kids .inv-sec::before { height: 8px; width: 64px; background: radial-gradient(circle at 4px 4px, #f26b5b 3px, transparent 3.6px) 0 0 / 22px 8px no-repeat, radial-gradient(circle at 4px 4px, #f7c948 3px, transparent 3.6px) 22px 0 / 22px 8px no-repeat, radial-gradient(circle at 4px 4px, #4fb3e8 3px, transparent 3.6px) 44px 0 / 22px 8px no-repeat; }
.d-rose .inv-sec::before { width: 120px; background: linear-gradient(90deg, transparent, #dca3aa, transparent); }
.d-minimal .inv-sec::before { width: 6px; height: 6px; border-radius: 50%; background: #4fc59a; }
.d-memorial .inv-sec::before { width: 40px; }
.inv-sec h2 { margin: 0 0 14px; font: var(--names-style) var(--names-weight) 26px/1.2 var(--names); color: var(--ink); }
.d-memorial .inv-sec h2 { font-size: 22px; }

/* WHEN: weekday | big day | month and year, then the time and three countdown figures */
.inv-date { display: flex; align-items: center; justify-content: center; margin: 0; gap: 0; }
.inv-wd, .inv-my { font: 500 var(--caps-size)/1.3 var(--caps); letter-spacing: .12em; text-transform: uppercase; color: var(--soft); flex: 0 1 108px; }
.inv-wd { text-align: right; }
.inv-my { text-align: left; }
.inv-day { font: 600 clamp(64px, 19vw, 84px)/1 var(--num); color: var(--ink); padding: 0 18px; margin: 0 14px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); font-variant-numeric: lining-nums; }
.d-atlas .inv-day, .d-pamir .inv-day, .d-chakan .inv-day { font-weight: 400; }
.inv-time { margin: 12px 0 0; font: 600 21px/1.3 var(--num); color: var(--accent); }
.inv-count { margin: 18px 0 4px; }
.inv-count-label { display: block; font-size: 14px; color: var(--soft); font-style: italic; margin-bottom: 8px; }
.inv-count-nums { display: flex; justify-content: center; }
.inv-count-unit { display: grid; gap: 4px; padding: 0 16px; min-width: 84px; border-left: 1px solid var(--line); }
.inv-count-unit:first-child { border-left: 0; }
.inv-count-unit b { font: 600 32px/1 var(--num); color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.inv-count-unit span { font: 500 11px/1.3 var(--caps); letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.d-atlas .inv-count-unit b, .d-pamir .inv-count-unit b, .d-chakan .inv-count-unit b { font-weight: 400; }

.inv-venue { margin: 0; font-weight: 600; font-size: 20px; line-height: 1.3; }
.inv-address { margin: 4px 0 0; color: var(--soft); }
.inv-maps { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }
.inv-program { list-style: none; margin: 0 auto; padding: 0; text-align: left; max-width: 380px; }
.inv-program li { display: flex; gap: 16px; padding: 9px 0; border-top: 1px dotted var(--line); align-items: baseline; }
.inv-program li:first-child { border-top: 0; }
.inv-program b { min-width: 54px; font: 600 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--accent); font-variant-numeric: tabular-nums; }
.inv-contact { margin: 0; color: var(--soft); }

/* buttons: quiet by default, the design's colour only for the main action */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line);
  font: 500 14px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; letter-spacing: .02em; text-decoration: none; cursor: pointer; color: var(--ink); background: transparent; margin-top: 12px; }
.inv-maps .btn { margin-top: 0; flex: 1 1 30%; }
.inv-maps .inv-map-own { flex-basis: 100%; }
.btn-main { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); width: 100%; min-height: 50px; font-weight: 600; }
.btn-soft { background: var(--paper); }
.btn:hover { border-color: var(--accent); }
.btn:focus-visible, .inv-langs button:focus-visible, input:focus-visible, textarea:focus-visible, .link:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* the reply form sits on a tinted panel so it reads as a thing to fill in */
.inv-rsvp { margin: 20px -22px 0; padding: 26px 22px 24px; background: var(--tint); border-top: 1px solid var(--line); }
.inv-rsvp::before { display: none; }
.inv-form { display: grid; gap: 12px; text-align: left; max-width: 420px; margin: 0 auto; }
.inv-form label { display: grid; gap: 6px; font: 500 13px/1.3 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--soft); }
.inv-form input, .inv-form textarea { font: 16px/1.4 "Lora", Georgia, serif; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 12px; width: 100%; min-height: 48px; }
.inv-form input:focus, .inv-form textarea:focus { border-color: var(--accent); }
.inv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.inv-answer { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; inset: 0; }
.pill span { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); text-align: center; padding: 0 10px; font: 500 14px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.pill input:checked + span { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }
.pill input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.inv-msg { margin: 0; min-height: 1.4em; text-align: center; color: var(--accent); font-weight: 600; }
.inv-share { padding-bottom: 10px; }

.inv-foot { max-width: 560px; margin: 0 auto; padding: 22px 22px 44px; text-align: center; color: var(--soft); font: 13px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.inv-foot p { margin: 12px 0 0; }
.btn-brand { background: transparent; color: var(--ink); border-color: var(--line); width: 100%; }
.link { background: none; border: 0; color: var(--soft); text-decoration: underline; font: inherit; cursor: pointer; padding: 8px; min-height: 44px; }
.fb-link-btn { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; }
.fb-link-btn svg { width: 16px; height: 16px; flex: none; }
.is-memorial .inv-title { font-style: normal; font-weight: 700; }
.is-memorial .inv-eyebrow { color: var(--soft); }

/* ---------- the envelope (the owner's "Adras" design; built by invite/opening.js) ----------
   One look for every celebration: cream paper, an adras-silk lining, a berry wax seal with a rosette. Its own
   colours (--e-*), so a dark or bright card design never changes the envelope. Sizes fit the 9:16 card. */
.env-stage { --e-stage: #f3eee5; --e-ink: #4a3730; --e-soft: #6b5d51; --e-paper: #eee2ca; --e-paper-light: #f7efdf; --e-paper-dark: #daceb9;
  --e-seal: #8e3e56; --e-seal-ink: #edceb0; --e-line: rgba(168,140,98,.3); --e-accent: #7f344c; --e-ambient: rgba(95,64,28,.14);
  --e-lining: url("/art/envelope/adras.webp");
  --ew: min(300px, 80vw, 37svh); --eh: calc(var(--ew) * 1.56); --apex: 43%;
  position: fixed; inset: 0; z-index: 20; display: flex; flex-direction: column; align-items: center; justify-content: space-evenly; gap: 18px;
  padding: max(18px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom)); overflow: hidden; color: var(--e-ink);
  background: radial-gradient(ellipse at 23% 8%, rgba(255,255,255,.48), rgba(255,255,255,0) 62%), var(--e-stage); }
.env-stage::before { content: ""; position: absolute; inset: 0; background: var(--grain); opacity: .45; pointer-events: none; }
.env-head { position: relative; text-align: center; }
.env-kicker { margin: 0; font: 600 10px/1.4 "Montserrat", system-ui, sans-serif; letter-spacing: .24em; text-transform: uppercase; color: var(--e-soft); }
.env-title { margin: 8px 0 0; font: 400 clamp(29px, 8vw, 39px)/1.15 "Forum", Georgia, serif; letter-spacing: -.015em; }
.env-scene { position: relative; flex-shrink: 0; width: var(--ew); height: var(--eh); perspective: 1400px; }
/* the ellipse reaches zero inside its box, so no edge shows */
.env-shadow { position: absolute; inset: 5% -15% -7%; background: radial-gradient(50% 42% at 50% 58%, var(--e-ambient), rgba(0,0,0,0)); transform: translateY(13px); pointer-events: none; }
.env { position: absolute; inset: 0; margin: 0; padding: 0; border: 0; background: none; cursor: pointer; transform: rotate(-2deg); transform-style: preserve-3d;
  border-radius: 2px; touch-action: manipulation; color: var(--e-ink); -webkit-tap-highlight-color: transparent; }
.env > * { position: absolute; pointer-events: none; }
.env-back { inset: 0; border-radius: 3px; background: var(--e-lining) center top / cover, var(--e-paper-dark); transform: translateZ(0);
  box-shadow: 0 2px 3px rgba(32,20,8,.13), 6px 16px 26px -12px rgba(32,20,8,.25), inset 0 0 0 1px rgba(32,20,8,.15), inset 0 0 0 3px var(--e-paper-dark); }
.env-card { left: 7.5%; top: 2.5%; width: 85%; transform: translateZ(1px); transform-origin: 50% 50%; }
.env-card .inv-card { max-width: none; border-radius: 1px; box-shadow: 1px 3px 8px rgba(32,20,8,.15); }
/* pocket: two side flaps and the bottom flap meeting at the apex; each face gets its own light */
.env-side, .env-bottom { inset: 0; border-radius: 2px; }
.env-l { clip-path: polygon(0 0, 51% var(--apex), 0 100%); background: var(--grain), linear-gradient(115deg, var(--e-paper-light), var(--e-paper) 76%); transform: translateZ(2px); }
.env-r { clip-path: polygon(100% 0, 49% var(--apex), 100% 100%); background: var(--grain), linear-gradient(250deg, var(--e-paper-dark), var(--e-paper) 74%); transform: translateZ(2px); }
.env-bottom { clip-path: polygon(0 100%, 0 99.5%, 50% var(--apex), 100% 99.5%, 100% 100%); background: var(--grain), linear-gradient(160deg, var(--e-paper-light), var(--e-paper) 63%, var(--e-paper-dark)); transform: translateZ(3px); }
.env-bottom::after { content: ""; position: absolute; inset: 0; background: rgba(125,105,78,.21);
  clip-path: polygon(0 99.5%, 50% var(--apex), 100% 99.5%, 99.7% 99.5%, 50% calc(var(--apex) + .4%), .3% 99.5%); }
.env-name { left: 8%; right: 8%; top: 61%; display: flex; flex-direction: column; align-items: center; text-align: center; transform: translateZ(4px); }
.env-eyebrow { font: 600 9px/1.5 "Montserrat", system-ui, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--e-accent); }
.env-name em { margin-top: 15px; font: 400 15px/1.4 "Forum", Georgia, serif; font-style: normal; color: var(--e-soft); }
.env-name b { margin-top: 1px; max-width: 100%; font: 400 22px/1.3 "Forum", Georgia, serif; letter-spacing: .01em; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* the flap: the front face is envelope paper, the back face is the silk lining */
.env-flap { left: 0; right: 0; top: 0; height: calc(var(--apex) + 1%); transform-origin: 50% 0; transform-style: preserve-3d; transform: translateZ(5px); }
.env-face { position: absolute; inset: 0; clip-path: polygon(0 0, 100% 0, 50% 100%); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.env-front { background: var(--grain), linear-gradient(155deg, var(--e-paper-light), var(--e-paper) 75%, var(--e-paper-dark)); filter: drop-shadow(0 2px 1px rgba(32,20,8,.15)); }
.env-front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 98%, rgba(0,0,0,.13)); clip-path: polygon(0 0, 100% 0, 50% 100%); }
/* mirrored polygon: after its own half turn this face lies exactly on the back of the front face */
.env-inner { clip-path: polygon(0 100%, 100% 100%, 50% 0); transform: rotateX(180deg); background: var(--e-lining) center top / 120% auto, var(--e-paper-dark); box-shadow: inset 0 0 24px rgba(0,0,0,.13); }
.env-seal { position: absolute; left: 50%; top: 100%; width: 62px; height: 61px; margin: -30px 0 0 -31px; display: grid; place-items: center; color: var(--e-seal-ink);
  border-radius: 47% 53% 50% 48% / 52% 48% 54% 46%; transform: translateZ(2px) rotate(-5deg); backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: var(--grain), radial-gradient(ellipse at 35% 25%, rgba(255,255,255,.13), rgba(255,255,255,0) 58%), var(--e-seal);
  box-shadow: inset 0 1px 2px rgba(255,255,255,.33), inset 0 -2px 3px rgba(0,0,0,.33), 0 3px 5px rgba(32,20,8,.31), 0 8px 12px -5px rgba(32,20,8,.27); }
.env-seal::after { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(0,0,0,.13); border-radius: 50%; box-shadow: inset 0 1px 1px rgba(0,0,0,.13), 0 1px 1px rgba(255,255,255,.13); }
.env-seal svg { display: block; width: 48px; height: 48px; opacity: .9; filter: drop-shadow(0 1px 0 rgba(0,0,0,.33)); }
.env-hint { position: relative; text-align: center; }
.env-stem { display: block; width: 1px; height: 16px; margin: 0 auto 10px; background: var(--e-line); }
.env-hint p { margin: 0; font: 400 13px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--e-soft); }
.env-skip { min-height: 44px; padding: 10px 18px; border: 0; background: none; cursor: pointer; color: var(--e-soft); font: 400 13px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(168,140,98,.5); -webkit-tap-highlight-color: transparent; }
.env:focus-visible, .env-skip:focus-visible { outline: 2px solid var(--e-accent); outline-offset: 6px; }
.env:focus-visible { outline-offset: 14px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .env:not(:disabled) { transition: transform .4s cubic-bezier(.22,.75,.2,1); }
  .env:not(:disabled):hover { transform: rotate(-1deg) translateY(-3px); }
}
@media (max-height: 640px) { .env-stage { --ew: min(260px, 77vw, 34svh); gap: 10px; } .env-title { font-size: 27px; } .env-stem { height: 8px; margin-bottom: 6px; } }

/* scroll reveal: only html.has-reveal (added once the observer exists) hides anything */
.has-reveal .inv-sec { opacity: 0; transform: translateY(14px); }
.has-reveal .inv-sec::before { transform: scaleX(0); }
.has-reveal .inv-sec.is-in { opacity: 1; transform: none; transition: opacity .7s ease-out, transform .7s cubic-bezier(.2,.7,.2,1); }
.has-reveal .inv-sec.is-in::before { transform: scaleX(1); transition: transform .8s .2s cubic-bezier(.2,.7,.2,1); }
.js .inv-card-wrap { transition: transform .5s cubic-bezier(.2,.7,.2,1); }

@media (min-width: 720px) {
  .inv-hero { padding-top: 40px; }
  .inv-body { margin-top: 32px; padding: 12px 40px 32px; border: 1px solid var(--line); border-radius: 2px; }
  .inv-rsvp { margin: 24px -40px 0; padding: 30px 40px 28px; }
  .inv-title { font-size: 58px; }
}
@media (prefers-reduced-motion: no-preference) { .inv-card { transition: opacity .3s; } .inv-langs button { transition: color .15s, border-color .15s; } }
@media (prefers-reduced-motion: reduce) {
  .has-reveal .inv-sec, .has-reveal .inv-sec::before { opacity: 1; transform: none; transition: none; }
  .js .inv-card-wrap { transition: none; }
}
