/* The invitation page (invite/2026-12-16/), loaded after site.css. Tokens only (CLAUDE.md rule 4).
   In page order: the header over the cover · the snow and its switch · 1 the cover and its doors ·
   2 the greeting · 3 the Grand Prize work · 4 the rooms, the gold thread and the viewer ·
   5 the gallery · 6 the day · 7 the way and the sketch map · 8 the reply · 9 passing it on ·
   narrow phones · reduced motion · print. */

/* ---------- the header over the cover ---------- */
/* Until the page scrolls, the header sits on the night of the cover: light letters, a gold focus ring.
   The doors are this page's opening, so the wordmark simply stands. */
.inv .hd:not(.is-scrolled) { color: var(--night-ink); --focus: var(--gold); }
.inv .hd .wm__ko, .inv .hd .wm__rule, .inv .hd .wm__en { animation: none; }
.inv .hd.is-hidden { box-shadow: none; }
.inv main [id] { scroll-margin-top: calc(var(--hd) + 16px); }

/* ---------- the snow and its switch (v4-brief §7) ---------- */
/* inyeon.js draws the snow on one canvas over the page and under the header (30, below .hd's 40). The
   pointer passes through it, and each frame leaves her works, the photographs and the reply card clear.
   Its two tones: the paper's white on the indigo bands, a pale indigo-grey on paper. The switch sits in
   the header beside KO / EN, a snowflake with 눈 멈추기 / Stop the snow; below 768 px the snowflake stands
   alone and the words stay its name. Without JavaScript and under reduced motion neither is shown. */
.inv { --snow-night: var(--paper); --snow-paper: var(--night-mute); }
.snow {
  position: fixed; left: 0; top: 0; z-index: 30;
  display: block; width: 100%; height: 100%; height: 100lvh;
  pointer-events: none;
  transition: opacity .7s var(--ease);
}
.snow.is-off { opacity: 0; }
.snow[hidden] { display: none; }
.snow-tog {
  position: relative; appearance: none; -webkit-appearance: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 44px; min-height: 44px; margin: 0; padding: 0 8px;
  border: 0; background: none; color: inherit; cursor: pointer;
  font: 500 11.5px/1 var(--f-sans); letter-spacing: .08em; white-space: nowrap;
  opacity: .8; transition: opacity .2s var(--ease-ui);
}
.snow-tog:hover { opacity: 1; }
.snow-tog[hidden], .snow-tog [data-snow-label][hidden] { display: none; }
.snow-tog__ico { flex: none; display: block; width: 16px; height: 16px; transition: opacity .3s var(--ease-ui); }
.snow-tog.is-off .snow-tog__ico { opacity: .45; }
:root[data-lang="en"] .snow-tog { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; }
@media (max-width: 767.98px) {
  .snow-tog { padding: 0; }
  .snow-tog__t {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
    overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  }
}

/* ---------- 1 · the cover: indigo, the first work behind two paper doors ---------- */
/* The page's opening band, one of its two indigo ends (the footer is the other; v4-brief §1). The ground is
   the flat 쪽빛 with only its far edges deepening, so the gold words always stand on --night itself. */
.cover {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  padding: calc(var(--hd) + 20px) var(--gutter) 108px;
  background-color: var(--night);
  background-image: radial-gradient(ellipse 125% 100% at 50% 50%, var(--deep-a0) 64%, var(--deep-a70) 100%);
  color: var(--night-ink); --focus: var(--gold);
  text-align: center;
}
.cover__in { width: 100%; max-width: var(--maxw); display: grid; justify-items: center; }
.cover__head { display: grid; justify-items: center; min-width: 0; }
.cover__k { letter-spacing: .3em; }
.cover__h { margin-top: 16px; display: grid; justify-items: center; gap: 6px; }
.cover__name { display: block; font: 300 clamp(28px, 3.6vw, 46px)/1.25 var(--f-serif); letter-spacing: .24em; padding-left: .24em; }
.cover__name-en { display: block; font: italic 400 clamp(17px, 1.6vw, 21px)/1.3 var(--f-display); letter-spacing: .04em; color: var(--night-mute); }
.cover__kind { display: block; margin-top: clamp(12px, 2.2vh, 22px); font: 500 11.5px/1.6 var(--f-sans); letter-spacing: .32em; padding-left: .32em; color: var(--gold); }
:root[data-lang="en"] .cover__kind { font: italic 400 18px/1.3 var(--f-display); letter-spacing: .04em; padding-left: 0; }
.cover__show { display: block; font: 300 clamp(50px, 7.4vw, 100px)/1.08 var(--f-serif); letter-spacing: .14em; padding-left: .14em; }
:root[data-lang="en"] .cover__show { font: italic 300 clamp(58px, 8.4vw, 116px)/1 var(--f-display); letter-spacing: .02em; padding-left: 0; }
.cover__show i { font-style: inherit; }
.cover__rule { display: block; width: 48px; height: 1px; margin: clamp(18px, 2.8vh, 28px) auto; background: var(--gold); }
.cover__prize { max-width: 30em; font: 400 12.5px/1.7 var(--f-sans); letter-spacing: .06em; color: var(--gold); text-wrap: balance; }
:root[data-lang="en"] .cover__prize { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }

/* the work is shown whole: on a phone the full width, elsewhere as large as the screen's height allows */
.cover__fig { margin: clamp(28px, 4vh, 44px) 0 0; width: 100%; min-width: 0; }
@media (min-width: 600px) {
  .cover__fig { width: min(100%, 760px, max(320px, calc((100vh - 560px) * var(--ar, 1)))); width: min(100%, 760px, max(320px, calc((100svh - 560px) * var(--ar, 1)))); }
}
.cover__frame { position: relative; overflow: hidden; background: var(--night-2); box-shadow: var(--shadow-dark); }
.cover__img { display: block; width: 100%; height: auto; }
.cover .iv-label { justify-items: center; text-align: center; }

.cover__foot { min-width: 0; }
.cover__date { margin-top: clamp(24px, 3.4vh, 36px); font: 300 clamp(17px, 1.6vw, 20px)/1.5 var(--f-serif); letter-spacing: .16em; padding-left: .16em; }
:root[data-lang="en"] .cover__date { font: italic 300 22px/1.4 var(--f-display); letter-spacing: .02em; padding-left: 0; }
.cover__date .nw { white-space: nowrap; }   /* the date and the hour each stay whole; a narrow screen breaks between them */
.cover__venue { margin-top: 8px; font: 400 12.5px/1.6 var(--f-sans); letter-spacing: .14em; padding-left: .14em; color: var(--night-mute); }
:root[data-lang="en"] .cover__venue { font-size: 11px; letter-spacing: .2em; padding-left: .2em; text-transform: uppercase; }

/* a wide screen: the words on the left, the work on the right */
@media (min-width: 1024px) and (min-aspect-ratio: 5/4) {
  .cover { text-align: left; }
  .cover__in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "head fig" "foot fig"; column-gap: clamp(48px, 6vw, 112px); justify-items: stretch; align-items: center; }
  .cover__head { grid-area: head; align-self: end; justify-items: start; }
  .cover__foot { grid-area: foot; align-self: start; margin-top: clamp(8px, 2vh, 24px); }
  .cover__h { justify-items: start; }
  .cover__name, .cover__kind, .cover__show, .cover__date, .cover__venue { padding-left: 0; }
  .cover__rule { margin-inline: 0; }
  .cover__fig { grid-area: fig; margin: 0; justify-self: center; width: min(100%, calc((100vh - 300px) * var(--ar, 1))); width: min(100%, calc((100svh - 300px) * var(--ar, 1))); }
  .cover .iv-label { justify-items: start; text-align: left; }
}
@media (max-height: 560px) and (orientation: landscape) { .cover { padding-bottom: 72px; } }

/* the doors: two paper panels in a wooden frame part once (inyeon.js), then the untouched picture stays.
   Without the script they part by themselves; a second visit in the same tab goes straight to the picture. */
.doors { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.doors-seen .doors { display: none !important; }
.door {
  position: absolute; top: 0; bottom: 0; width: 50%;
  background-color: var(--paper-2);
  background-image:
    linear-gradient(90deg, var(--wood-2) 0 2px, transparent 2px),
    linear-gradient(var(--wood-2) 0 2px, transparent 2px),
    radial-gradient(ellipse at 50% 40%, var(--paper) 0%, var(--paper-2) 70%);
  background-size: 25% 16.666%, 25% 16.666%, 100% 100%;
  border: 6px solid var(--wood);
}
.door--l { left: 0; }
.door--r { right: 0; }
.doors:not(.is-js) .door--l { animation: doorL 1.6s var(--ease-panel) 2.4s forwards; }
.doors:not(.is-js) .door--r { animation: doorR 1.6s var(--ease-panel) 2.4s forwards; }
.doors:not(.is-js) { animation: doorsOff 0s linear 4.1s forwards; }
@keyframes doorL { to { transform: translateX(-101%); } }
@keyframes doorR { to { transform: translateX(101%); } }
@keyframes doorsOff { to { visibility: hidden; } }
.doors.is-js .door { animation: none; transition: transform 1.6s var(--ease-panel); }
.doors.is-open .door--l { transform: translateX(-101%); }
.doors.is-open .door--r { transform: translateX(101%); }

/* ---------- 2 · the greeting ---------- */
.greet { text-align: center; }
.greet__in { display: grid; justify-items: center; }
.greet__h { margin-top: 22px; font: 300 clamp(26px, 3.2vw, 40px)/1.45 var(--f-serif); letter-spacing: .04em; text-wrap: balance; }
:root[data-lang="en"] .greet__h { font: italic 300 clamp(32px, 4vw, 52px)/1.15 var(--f-display); letter-spacing: 0; }
.greet__body { margin-top: clamp(32px, 4vw, 48px); font: 400 clamp(16.5px, 1.4vw, 18.5px)/2.05 var(--f-serif); color: var(--ink-soft); }
:root[data-lang="en"] .greet__body { font: 400 clamp(20px, 1.7vw, 23px)/1.6 var(--f-display); }
.greet__text { display: grid; gap: 1.6em; }
.greet__text p { text-wrap: pretty; }
.greet__sign { margin-top: clamp(32px, 4vw, 48px); font: 400 15px/1.4 var(--f-serif); letter-spacing: .22em; padding-left: .22em; }
:root[data-lang="en"] .greet__sign { font: 500 14px/1.4 var(--f-display); letter-spacing: .26em; padding-left: .26em; text-transform: uppercase; }
.greet__btns { justify-content: center; margin-top: clamp(32px, 4vw, 48px); }

/* ---------- 3 · the Grand Prize work, on raised paper (.sec--tint) ---------- */
/* The work hangs as the other works do: whole, with the paper's own shadow, and no mat or line around it. */
.iv-occ__grid { display: grid; gap: clamp(40px, 6vw, 88px); align-items: center; }
@media (min-width: 900px) { .iv-occ__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.iv-occ__fig { min-width: 0; }
.iv-occ__mat { display: grid; place-items: center; }
.iv-occ__img { display: block; width: min(100%, 400px); height: auto; box-shadow: var(--shadow-work); }
.iv-occ__credit { display: inline-flex; align-items: center; justify-self: start; min-height: 44px; font: 400 12px/1.4 var(--f-sans); letter-spacing: .04em; color: var(--ink-soft); }
.iv-occ__text { min-width: 0; }
.iv-occ__h { text-wrap: balance; }
.iv-occ__facts { margin-bottom: 0; }

/* ---------- 4 · the rooms ---------- */
.iv-hint { margin-top: 14px; }
.iv-rooms { position: relative; display: grid; gap: clamp(88px, 11vw, 160px); }
.iv-room { display: grid; gap: clamp(48px, 6vw, 80px); min-width: 0; }
.iv-room__head { min-width: 0; }
.iv-room__n { margin-bottom: 10px; font: italic 400 clamp(20px, 2vw, 26px)/1 var(--f-display); letter-spacing: .04em; color: var(--gold-ink); font-variant-numeric: lining-nums; }
.iv-room__name { font: 300 clamp(24px, 2.8vw, 34px)/1.35 var(--f-serif); letter-spacing: .04em; }
:root[data-lang="en"] .iv-room__name { font: 400 clamp(28px, 3.2vw, 40px)/1.15 var(--f-display); letter-spacing: 0; }
.iv-room__line { margin-top: 10px; max-width: 34em; font: 400 clamp(15.5px, 1.3vw, 17px)/1.8 var(--f-serif); color: var(--ink-soft); text-wrap: pretty; }
:root[data-lang="en"] .iv-room__line { font: italic 400 clamp(18.5px, 1.5vw, 21px)/1.5 var(--f-display); }

/* the gold thread: one line beside the rooms, never over a work (v3-brief §9).
   It is drawn whole without the script; inyeon.js sets --p, how far down it has come. */
.iv-thread { position: absolute; top: 0; bottom: 0; left: -8px; width: 1px; pointer-events: none; }
.iv-thread__line { position: absolute; inset: 0; background: var(--gold); transform-origin: 50% 0; transform: scaleY(var(--p, 1)); }
.iv-thread.is-live .iv-thread__line { transition: transform .5s var(--ease); }
@media (min-width: 900px) {
  .iv-rooms { --rail: clamp(64px, 7vw, 112px); padding-left: var(--rail); }
  .iv-thread { left: calc(var(--rail) / 2); }
  .iv-room__head { position: relative; }
  .iv-room__n { position: absolute; top: 2px; left: calc(var(--rail) / -2); margin: 0; padding: 8px 0; transform: translateX(-50%); background: var(--paper); }
}

/* a row hangs its works at one height: each takes width in proportion to its shape (--ar), and the row is
   never taller than about four-fifths of the screen (--sum is the row's width for each unit of height) */
.iv-hang {
  --gap: clamp(12px, 2vw, 28px);
  display: flex; align-items: flex-start; gap: var(--gap);
  width: 100%; margin-inline: auto;
  max-width: calc(78vh * var(--sum, 1) + (var(--n, 1) - 1) * var(--gap));
  max-width: calc(78svh * var(--sum, 1) + (var(--n, 1) - 1) * var(--gap));
}
.iv-hang .iv-w { flex: var(--ar, 1) 1 0px; }
/* on a phone the works stand one above another; a pair of tall scrolls stays side by side */
@media (max-width: 699.98px) {
  .iv-hang:not(.iv-hang--pair) { --gap: 48px; flex-direction: column; align-items: center; max-width: none; }
  .iv-hang:not(.iv-hang--pair) .iv-w { flex: none; width: 100%; width: min(100%, calc(78vh * var(--ar, 1))); width: min(100%, calc(78svh * var(--ar, 1))); }
}
.iv-hang--pair { align-items: flex-start; }

/* a work: the whole picture, never cropped (CLAUDE.md rule 3); the button over it opens the viewer */
.iv-w { min-width: 0; }
.iv-w__frame { position: relative; background: var(--paper-3); box-shadow: var(--shadow-work); }
.iv-w__frame img { display: block; width: 100%; height: auto; }
.iv-w__open { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: transparent; cursor: zoom-in; -webkit-tap-highlight-color: transparent; }
.iv-w__open:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }

/* the label, as on the works pages: who, the title, the room and its HA number */
.iv-label { display: grid; gap: 2px; margin-top: 14px; }
.iv-label__who, .iv-label__meta { font: 400 11.5px/1.6 var(--f-sans); letter-spacing: .04em; color: var(--ink-mute); }
.iv-label__title { font: 400 15.5px/1.5 var(--f-serif); letter-spacing: .03em; color: var(--ink); }
:root[data-lang="en"] .iv-label__title { font: italic 400 19px/1.35 var(--f-display); letter-spacing: 0; }
.iv-label__title i { font-style: inherit; }
.on-dark .iv-label__who, .on-dark .iv-label__meta { color: var(--night-mute); }
.on-dark .iv-label__title { color: var(--night-ink); }

/* the viewer: one work at a time on night, whole, with its label */
.viewer { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--night-deep); color: var(--night-ink); --focus: var(--gold); overflow: hidden; }
.viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; animation: viewerIn .4s var(--ease-panel); }
.viewer::backdrop { background: var(--night-deep); }
@keyframes viewerIn { from { opacity: 0; } to { opacity: 1; } }
html.viewer-open { overflow: hidden; }
.viewer__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: max(8px, env(safe-area-inset-top)) var(--gutter) 8px; }
.viewer__count { font: 500 12px/1 var(--f-sans); letter-spacing: .14em; color: var(--night-mute); font-variant-numeric: tabular-nums; }
.viewer__stage { position: relative; min-height: 0; margin: 4px var(--gutter); touch-action: pan-y pinch-zoom; }
.viewer__img { position: absolute; inset: 0; margin: auto; display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; box-shadow: var(--shadow-dark); transition: opacity .2s var(--ease-ui); }
.viewer__img.is-swap { opacity: 0; }
.viewer__foot { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px var(--gutter) max(16px, env(safe-area-inset-bottom)); }
.viewer__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 0 16px; border: 1px solid var(--night-ink-a24); border-radius: 999px; background: transparent; color: inherit; font: 500 13px/1 var(--f-sans); letter-spacing: .06em; cursor: pointer; transition: border-color .2s var(--ease-ui); }
.viewer__btn:hover { border-color: var(--night-ink-a60); }
.viewer__btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.viewer__nav { width: 48px; height: 48px; padding: 0; }
.viewer__cap { display: grid; gap: 4px; justify-items: center; text-align: center; min-width: 0; }
.viewer__cap .iv-label__title { color: var(--night-ink); }
.viewer__cap .iv-label__who, .viewer__cap .iv-label__meta { color: var(--night-mute); }

/* ---------- 5 · the gallery ---------- */
.iv-space { display: grid; gap: clamp(40px, 6vw, 88px); }
.iv-space__fig { min-width: 0; }
.iv-space__img { display: block; width: 100%; height: auto; box-shadow: var(--shadow-work); }
.iv-space__cap { margin-top: 14px; font: 400 12.5px/1.6 var(--f-sans); letter-spacing: .02em; color: var(--ink-soft); }
@media (min-width: 900px) {
  .iv-space__fig:first-child { width: min(100%, 940px); }
  .iv-space__fig + .iv-space__fig { width: min(100%, 780px); justify-self: end; }
}

/* ---------- 6 · the day ---------- */
.when__grid { display: grid; gap: clamp(48px, 6vw, 80px); }
@media (min-width: 860px) { .when__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.when__cal, .when__info { min-width: 0; }
.when__h { font: 300 clamp(22px, 2.4vw, 28px)/1.3 var(--f-serif); }
:root[data-lang="en"] .when__h { font-family: var(--f-display); font-weight: 400; font-size: clamp(26px, 2.8vw, 34px); }
.cal { width: 100%; border-collapse: collapse; table-layout: fixed; font-variant-numeric: lining-nums tabular-nums; }
.cal caption { text-align: left; padding-bottom: 16px; font: 300 clamp(22px, 2.4vw, 28px)/1.3 var(--f-serif); }
:root[data-lang="en"] .cal caption { font-family: var(--f-display); font-size: clamp(26px, 2.8vw, 34px); }
.cal th { padding: 10px 0; font: 500 11px/1 var(--f-sans); letter-spacing: .1em; color: var(--ink-mute); border-bottom: 1px solid var(--hair); }
:root[data-lang="en"] .cal th { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.cal td { height: 60px; padding: 6px 0 0; text-align: center; vertical-align: top; font: 400 17px/1 var(--f-display); color: var(--ink-soft); }
.cal__n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; }
.cal td.is-open .cal__n { box-shadow: inset 0 0 0 1.5px var(--seal); color: var(--ink); font-weight: 500; }
.cal__tag { display: block; margin-top: 4px; font: 500 10px/1 var(--f-sans); letter-spacing: .06em; color: var(--ink-soft); }
.when__add { margin-top: 28px; }
.when__add-h { font: 500 12px/1.5 var(--f-sans); letter-spacing: .06em; color: var(--ink-soft); }
.when__way { display: flex; align-items: center; width: fit-content; min-height: 44px; font: 500 12.5px/1.4 var(--f-sans); letter-spacing: .06em; }

/* ---------- 7 · the way ---------- */
/* a phone reads the address, the map, then the buses; a wide screen puts the map beside them */
.way__grid { display: grid; gap: clamp(40px, 5vw, 72px); }
@media (min-width: 860px) {
  .way__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "where map" "list map"; align-items: start; }
  .way__where { grid-area: where; }
  .iv-map { grid-area: map; }
  .way__list { grid-area: list; }
}
.way__where { min-width: 0; }
.way__addr { font: 400 clamp(18px, 2vw, 22px)/1.6 var(--f-serif); }
:root[data-lang="en"] .way__addr { font: 400 clamp(21px, 2.2vw, 25px)/1.45 var(--f-display); }
.way__copy { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 20px; }
.way__list { min-width: 0; display: grid; gap: 10px; }
.way__list dt { padding-top: 18px; border-top: 1px solid var(--hair); font: 500 11px/1.9 var(--f-sans); letter-spacing: .1em; color: var(--ink-soft); }
:root[data-lang="en"] .way__list dt { text-transform: uppercase; letter-spacing: .2em; font-size: 10px; }
.way__list dd { margin: 0 0 14px; font-size: 16px; line-height: 1.75; }
.way__routes { margin-top: 10px; font: 400 13.5px/1.75 var(--f-sans); color: var(--ink-soft); }
.copy-out { display: block; width: 100%; margin-top: 12px; padding: 12px 14px; border: 1px solid var(--hair); border-radius: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.4 var(--f-sans); }
.copy-tmp { position: fixed; top: 0; left: 0; opacity: 0; pointer-events: none; font-size: 16px; }

/* the sketch map: our own drawing of the street, drawn in the page; nothing is loaded from a map service */
.iv-map { min-width: 0; padding: clamp(16px, 3vw, 28px); background: var(--paper); border: 1px solid var(--hair); }
.iv-map__svg { display: block; width: 100%; height: auto; }
.iv-map__road { fill: var(--paper-3); }
.iv-map__kerb { stroke: var(--hair); stroke-width: 1; }
.iv-map__lane { stroke: var(--paper); stroke-width: 1.5; stroke-dasharray: 10 8; }
.iv-map__blk { fill: var(--paper-2); stroke: var(--hair); stroke-width: 1; }
.iv-map__bld { fill: var(--paper); stroke: var(--seal); stroke-width: 1.5; }
.iv-map__cross rect { fill: var(--paper); }
.iv-map__stop { fill: var(--ink-soft); }
.iv-map__walk { fill: none; stroke: var(--gold-ink); stroke-width: 2; stroke-dasharray: 2 5; stroke-linecap: round; stroke-linejoin: round; }
.iv-map__pin circle { fill: var(--ink); }
.iv-map__pin--to circle { fill: var(--seal); }
.iv-map__pin text { fill: var(--paper); font: 500 13px/1 var(--f-sans); text-anchor: middle; dominant-baseline: central; }
.iv-map__cap { margin-top: 16px; }
.iv-map__title { font: 500 12px/1.5 var(--f-sans); letter-spacing: .06em; color: var(--ink-soft); }
.iv-legend { margin-top: 10px; display: grid; gap: 8px; }
.iv-legend li { display: flex; align-items: flex-start; gap: 10px; font: 400 13.5px/1.6 var(--f-sans); color: var(--ink-soft); }
.iv-legend__n { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--paper); font: 500 11px/1 var(--f-sans); }
.iv-legend li:first-child .iv-legend__n { background: var(--seal); }
.iv-legend__t { min-width: 0; }

/* ---------- 8 · the reply: a card of raised paper on the paper ---------- */
/* --ink-mute is 4.4:1 on --paper-2, under the 4.5:1 small text needs; the card's hints take the darker grey (site.css) */
.rsvp-card { --ink-mute: var(--ink-mute-2); background: var(--paper-2); color: var(--ink); padding: clamp(28px, 5vw, 56px) clamp(20px, 5vw, 56px); }
.rsvp-card .sec__head { margin-bottom: clamp(28px, 4vw, 44px); }
.inv .field textarea { min-height: 110px; }
/* the phone's example (the only placeholder on the site): the browser's own grey is 3.8:1 here */
.inv .field input::placeholder, .inv .field textarea::placeholder { color: var(--ink-mute); opacity: 1; }
.step__n { display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; margin-right: 10px; border: 1px solid currentColor; border-radius: 50%; font: 500 11px/1 var(--f-sans); letter-spacing: 0; vertical-align: 1px; }
.choice-set legend { font: 500 13px/1.5 var(--f-sans); letter-spacing: .04em; color: var(--ink); }
/* the two answers are large targets: a whole card each */
.choices { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: 12px; }
@media (max-width: 479.98px) { .choices { grid-template-columns: minmax(0, 1fr); } }
.choice { position: relative; display: block; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice__in { display: grid; place-content: center; gap: 6px; min-height: 76px; padding: 14px 10px; border: 1px solid var(--ink-mute); text-align: center; color: var(--ink); transition: background-color .2s var(--ease-ui), border-color .2s var(--ease-ui), color .2s var(--ease-ui); }
.choice__big { font: 500 19px/1.35 var(--f-serif); letter-spacing: .03em; text-wrap: balance; }
:root[data-lang="en"] .choice__big { font: 500 21px/1.2 var(--f-display); letter-spacing: .02em; }
.choice input:hover + .choice__in { border-color: var(--ink); }
.choice input:checked + .choice__in { background: var(--night); border-color: var(--night); color: var(--night-ink); }
.choice input:focus-visible + .choice__in { outline: 2px solid var(--focus); outline-offset: 3px; }
.field.is-invalid .choice__in { border-color: var(--seal); }
.step2 { display: grid; gap: 30px; }
.step2.is-in { animation: stepIn .45s var(--ease-panel) both; }
@keyframes stepIn { from { opacity: 0; } to { opacity: 1; } }
.step2__h { display: flex; align-items: center; padding-top: 26px; border-top: 1px solid var(--hair); font: 500 13px/1.5 var(--f-sans); letter-spacing: .04em; color: var(--ink); }
.stepper { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.stepper__btn { display: inline-grid; place-items: center; flex: none; width: 48px; height: 48px; padding: 0; border: 1px solid var(--ink-mute); border-radius: 50%; background: transparent; color: var(--ink); font: 400 22px/1 var(--f-sans); cursor: pointer; transition: border-color .2s var(--ease-ui), opacity .2s var(--ease-ui); }
.stepper__btn:hover { border-color: var(--ink); }
.stepper__btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.stepper__btn[aria-disabled="true"] { opacity: .35; cursor: default; }
.inv .stepper input[type="text"] { width: 3.2em; padding: 6px 0 8px; text-align: center; font: 400 22px/1.3 var(--f-serif); font-variant-numeric: lining-nums tabular-nums; }
.stepper__unit { font: 400 15px/1 var(--f-serif); color: var(--ink-soft); }
/* the agreement: one line that says how long, and a link to the whole notice under it */
.iv-agree { gap: 0; }
.iv-agree__more { display: inline-flex; align-items: center; width: fit-content; min-height: 44px; margin-left: 32px; font: 400 12.5px/1.4 var(--f-sans); letter-spacing: .04em; color: var(--ink-soft); }
.done__cal { display: grid; gap: 4px; }
.done__sum { font: 400 14px/1.7 var(--f-sans); color: var(--ink-soft); }
.done__sum:empty { display: none; }

/* ---------- 9 · passing it on ---------- */
.share { display: flow-root; text-align: center; }
.share .lead { margin-inline: auto; }
.share__btns { justify-content: center; margin-top: 28px; }
.share__url { margin-top: 20px; font: 400 14px/1.6 var(--f-sans); color: var(--ink-soft); overflow-wrap: anywhere; }

/* ---------- narrow phones: this page has no menu, so KO / EN stays in the header ---------- */
@media (max-width: 374.98px) { .inv .hd .lang { display: flex; } }

/* ---------- reduced motion: the last frame of everything ---------- */
@media (prefers-reduced-motion: reduce) {
  .doors, .snow, .snow-tog { display: none !important; }
  .viewer[open], .step2.is-in { animation: none; }
  .viewer__img, .choice__in, .stepper__btn, .iv-thread__line { transition: none; }
  .iv-thread__line { transform: none; }
}

/* ---------- print: the invitation on paper; no doors, snow, viewer, form or share ---------- */
@media print {
  .doors, .snow, .snow-tog, .rsvp, .share, .viewer, .iv-w__open, .iv-hint, .iv-thread, .way__copy, .copy-out { display: none !important; }
  .cover { min-height: 0; padding: 0 0 32px; background: none; color: var(--ink); }
  .cover__rule { background: var(--ink-soft); }
  .on-dark .cover__name-en, .on-dark .cover__kind, .on-dark .cover__prize, .on-dark .cover__venue,
  .on-dark .iv-label__who, .on-dark .iv-label__meta { color: var(--ink-soft) !important; }
  .iv-room__n { background: none; }
  .iv-room__head, .iv-w, .iv-hang, .iv-space__fig, .iv-map, .when__cal { break-inside: avoid; }
}
