/* Linda's surprise 50th. "A dahlia garden at dusk": evergreen ink, porcelain paper, dahlia pink,
   and marigold reserved for the one loud thing, the surprise tape. Logistics are set in Bricolage
   Grotesque; anything said TO Linda is in Newsreader italic. */
@font-face { font-family: 'Bricolage'; src: url(/fonts/bricolage.woff2) format('woff2'); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Bricolage'; src: url(/fonts/bricolage-ext.woff2) format('woff2'); font-weight: 200 800; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Newsreader'; font-style: italic; src: url(/fonts/newsreader-italic.woff2) format('woff2'); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Newsreader'; font-style: italic; src: url(/fonts/newsreader-italic-ext.woff2) format('woff2'); font-weight: 200 800; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Newsreader'; font-style: normal; src: url(/fonts/newsreader.woff2) format('woff2'); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }

:root {
  --ink: #17322c;
  --ink-2: #4a5f59;
  --paper: #f7f4f6;
  --surface: #ffffff;
  --dahlia: #b8235a;
  --dahlia-ink: #ffffff;
  --dahlia-press: #9c1b4b;
  --petal: #f8dfe8;
  --petal-ink: #7d1740;
  --marigold: #f0b43c;
  --mist: #e4ebe7;
  --line: #dcd6da;
  --night: #17322c;
  --night-ink: #f7f4f6;
  --good: #1f6b4f;
  --good-bg: #e2f1e9;
  --warn: #8a5a00;
  --warn-bg: #fbefd2;
  --sans: 'Bricolage', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Newsreader', ui-serif, Georgia, serif;
  --r-xl: 28px; --r-lg: 20px; --r-md: 14px; --r-sm: 10px;
  --shadow: 0 1px 2px rgba(23, 50, 44, .06), 0 8px 24px -8px rgba(23, 50, 44, .16);
  --shadow-lift: 0 2px 4px rgba(23, 50, 44, .08), 0 18px 40px -12px rgba(23, 50, 44, .28);
  --gutter: 20px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef0ee; --ink-2: #a9b8b2; --paper: #0f1f1b; --surface: #172a25;
    --dahlia: #f0789f; --dahlia-ink: #2a0716; --dahlia-press: #f598b6;
    --petal: #3a1d2a; --petal-ink: #f6bcd0; --mist: #1f3530; --line: #2b423c;
    --night: #e9efec; --night-ink: #10221d;
    --good: #8fd6b4; --good-bg: #183a2e; --warn: #f2c66d; --warn-bg: #3a2e12;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -8px rgba(0, 0, 0, .5);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, .3), 0 18px 40px -12px rgba(0, 0, 0, .6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--dahlia); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: var(--r-sm); z-index: 50; }
.skip:focus { top: 12px; }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
html.is-organizer .invite { display: none; }
html.is-organizer .organizer { display: block !important; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0;
  font-weight: 600; font-size: 1rem; letter-spacing: -.005em; text-decoration: none; cursor: pointer; transition: background-color .15s, transform .15s; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--dahlia); color: var(--dahlia-ink); }
.btn.primary:hover { background: var(--dahlia-press); }
.btn.secondary { background: var(--petal); color: var(--petal-ink); }
.btn.quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.quiet:hover { background: var(--mist); }
.btn.small { min-height: 40px; padding: 0 16px; font-size: .9375rem; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn .i { width: 18px; height: 18px; }
.chip-btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px; border-radius: 999px; border: 0; background: var(--mist);
  color: var(--ink); font-size: .875rem; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.chip-btn:hover { background: var(--line); }
.chip-btn .i { width: 16px; height: 16px; }

/* ---------- Poster ---------- */
.poster { padding: 12px 12px 0; }
.poster-photo { position: relative; border-radius: var(--r-xl); box-shadow: var(--shadow-lift); overflow: hidden; isolation: isolate; }
.poster-photo img { width: 100%; height: 100%; aspect-ratio: 9 / 10; max-height: 62dvh; min-height: 340px; object-fit: cover; object-position: 66% 30%; }
.poster-photo::after { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(12, 28, 24, .86) 0%, rgba(12, 28, 24, .55) 30%, rgba(12, 28, 24, 0) 58%); }
.tape { position: absolute; z-index: 1; left: 14px; top: 16px; transform: rotate(-3.5deg); background: var(--marigold); color: #2a1d02;
  font-weight: 700; font-size: 1rem; letter-spacing: -.01em; padding: 8px 18px 8px 16px; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .4);
  clip-path: polygon(0 6%, 3% 0, 97% 4%, 100% 0, 99% 50%, 100% 100%, 96% 96%, 4% 100%, 0 95%, 1% 50%); }
.poster-text { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 0 20px 20px; color: #fbf7f9; }
h1 { font-weight: 720; font-size: clamp(2.6rem, 11.2vw, 4.75rem); line-height: .94; letter-spacing: -.035em; text-wrap: balance; text-shadow: 0 2px 24px rgba(0, 0, 0, .25); }
.hosts { margin-top: 10px; font-family: var(--serif); font-style: italic; font-size: 1.1875rem; line-height: 1.3; max-width: 30ch; opacity: .94; }

/* ---------- Content column ---------- */
.content { padding: 0 var(--gutter) 120px; }
.content > section { margin-top: 44px; }
.content > section.when-where { margin-top: 22px; }
h2 { font-weight: 680; font-size: 1.625rem; line-height: 1.12; letter-spacing: -.025em; text-wrap: balance; }
h3 { font-weight: 650; font-size: 1.0625rem; letter-spacing: -.01em; }
.section-head p, .rsvp-head p { margin-top: 6px; color: var(--ink-2); max-width: 46ch; }
.optional { font-weight: 450; color: var(--ink-2); font-size: .875rem; margin-left: 4px; }

.when-where { display: grid; gap: 2px; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 6px 16px; }
.fact { display: grid; grid-template-columns: 24px 1fr; gap: 14px; align-items: center; padding: 12px 0; }
.fact + .fact { border-top: 1px solid var(--mist); }
.fact-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 2px 0 12px; }
.fact-actions .chip-btn { justify-content: center; height: 40px; }
.fact > .i { color: var(--dahlia); width: 22px; height: 22px; }
.fact-main { font-weight: 650; font-size: 1.0625rem; line-height: 1.25; letter-spacing: -.01em; }
.fact-sub { color: var(--ink-2); font-size: .9375rem; line-height: 1.35; }
.going { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--mist); padding: 12px 0 10px; font-size: .9375rem; color: var(--ink-2); }
.going strong { color: var(--ink); font-weight: 650; }
.faces { display: flex; flex: none; }
.face { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .6875rem; font-weight: 700; color: #fff;
  box-shadow: 0 0 0 2px var(--surface); margin-left: -7px; }
.face:first-child { margin-left: 0; }

.secret { background: var(--night); color: var(--night-ink); border-radius: var(--r-lg); padding: 24px 22px 22px; position: relative; overflow: hidden; }
.secret::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--marigold); }
.secret-icon { width: 22px; height: 22px; color: var(--marigold); margin-bottom: 10px; }
.secret h2 { font-size: 1.75rem; }
.secret p { margin-top: 10px; opacity: .88; }
.secret ul { margin-top: 14px; padding: 0; list-style: none; display: grid; gap: 10px; }
.secret li { position: relative; padding-left: 22px; line-height: 1.45; }
.secret li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--marigold); }
.secret strong { font-weight: 700; }

.timeline { list-style: none; padding: 0; margin-top: 16px; display: grid; }
.timeline li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); align-items: baseline; }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline time { font-weight: 650; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.timeline li.big time, .timeline li.big span { color: var(--dahlia); font-weight: 700; }
.timeline li.big span { font-size: 1.125rem; }

.gtk-grid { margin-top: 16px; display: grid; gap: 12px; }
.gtk { background: var(--surface); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow); display: grid; grid-template-columns: 24px 1fr; column-gap: 12px; row-gap: 4px; }
.gtk .i { color: var(--dahlia); grid-row: span 2; margin-top: 1px; }
.gtk p { color: var(--ink-2); font-size: .9375rem; line-height: 1.5; }
.venue { margin-top: 12px; }
.venue img { border-radius: var(--r-lg); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.venue figcaption { margin-top: 10px; font-size: .875rem; color: var(--ink-2); }

/* ---------- RSVP ---------- */
.rsvp { background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow); padding: 26px 18px 20px; margin-inline: -4px; }
#rsvp-form { margin-top: 20px; display: grid; gap: 18px; }
.answer { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.answer-opt { position: relative; display: grid; justify-items: center; gap: 6px; padding: 14px 6px 12px; border-radius: var(--r-md); background: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--line); text-align: center; font-weight: 600; font-size: .9375rem; line-height: 1.2; cursor: pointer; transition: background-color .15s, box-shadow .15s; }
.answer-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.answer-opt .i { width: 24px; height: 24px; color: var(--ink-2); }
.answer-opt:has(input:checked) { background: var(--petal); box-shadow: inset 0 0 0 2px var(--dahlia); color: var(--petal-ink); }
.answer-opt:has(input:checked) .i { color: var(--dahlia); }
.answer-opt:has(input:focus-visible) { outline: 3px solid var(--dahlia); outline-offset: 2px; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .label { font-weight: 600; font-size: .9375rem; padding: 0; }
input:not([type=radio]):not([type=file]):not([type=checkbox]), textarea { width: 100%; border: 0; border-radius: var(--r-md); background: var(--paper); padding: 13px 14px; font-size: 1rem;
  box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow .15s; }
input:focus, textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--dahlia); }
textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
#r-message, #m-caption { font-family: var(--serif); font-style: italic; font-size: 1.125rem; }
::placeholder { color: var(--ink-2); opacity: .7; }
.hint { font-size: .875rem; color: var(--good); }
.when-coming { display: grid; gap: 18px; }
.when-coming[hidden] { display: none; }
.stepper { display: inline-flex; align-items: center; gap: 4px; background: var(--paper); border-radius: 999px; padding: 4px; box-shadow: inset 0 0 0 1.5px var(--line); justify-self: start; }
.stepper button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); }
.stepper button:disabled { opacity: .35; cursor: default; box-shadow: none; }
.stepper output { min-width: 40px; text-align: center; font-weight: 700; font-size: 1.125rem; font-variant-numeric: tabular-nums; }
.diet-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.diet-chip { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--line); font-size: .9375rem; font-weight: 550; cursor: pointer; }
.diet-chip .i { width: 17px; height: 17px; color: var(--ink-2); }
.diet-chip[aria-pressed=true] { background: var(--petal); color: var(--petal-ink); box-shadow: inset 0 0 0 2px var(--dahlia); }
.diet-chip[aria-pressed=true] .i { color: var(--dahlia); }
.diet-chip .n { display: inline-flex; align-items: center; gap: 2px; margin-left: 2px; }
.diet-chip .n button { all: unset; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); cursor: pointer; }
.diet-chip .n button:focus-visible { outline: 2px solid var(--dahlia); }
.diet-chip .n .i { width: 13px; height: 13px; color: var(--petal-ink); }
.form-error { color: var(--dahlia); font-weight: 600; font-size: .9375rem; }
.rsvp-done { text-align: center; padding: 18px 4px 6px; }
.rsvp-done:focus { outline: none; }
.done-icon { width: 44px; height: 44px; color: var(--good); margin: 0 auto 12px; stroke-width: 1.6; }
.rsvp-done h3 { font-size: 1.375rem; font-weight: 680; letter-spacing: -.02em; }
.rsvp-done p { margin-top: 8px; color: var(--ink-2); max-width: 36ch; margin-inline: auto; }
.done-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }

/* ---------- Film ---------- */
.film-frame { position: relative; margin-top: 16px; border-radius: var(--r-lg); overflow: hidden; background: #0f1f1b; box-shadow: var(--shadow-lift); aspect-ratio: 16 / 9; }
.film-frame video { width: 100%; height: 100%; object-fit: cover; }
.play { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px 0 6px; border: 0; border-radius: 999px;
  background: rgba(251, 247, 249, .94); color: #17322c; font-weight: 650; font-size: .9375rem; cursor: pointer; box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .5); backdrop-filter: blur(8px); }
.play-dot { width: 36px; height: 36px; border-radius: 50%; background: #b8235a; color: #fff; display: grid; place-items: center; }
.play-dot .i { width: 16px; height: 16px; fill: currentColor; margin-left: 2px; }
.play:hover .play-dot { background: #9c1b4b; }
.film-meta { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--ink-2); font-size: .9375rem; }

/* ---------- Memory wall ---------- */
.section-head.with-action { display: grid; gap: 14px; }
.section-head.with-action .btn { justify-self: start; }
.wall-grid { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; }
.wall-col { display: grid; gap: 10px; }
.memory { background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow); overflow: hidden;
  display: block; width: 100%; border: 0; padding: 0; text-align: left; cursor: pointer; }
.memory img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--mist); }
.memory .m-body { padding: 10px 12px 12px; }
.memory .m-caption { font-family: var(--serif); font-style: italic; font-size: 1rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.memory .m-by { margin-top: 6px; font-size: .8125rem; font-weight: 600; color: var(--ink-2); }
.memory.text { background: var(--petal); color: var(--petal-ink); }
.memory.text .m-body { padding: 16px 14px 14px; }
.memory.text .m-caption { font-size: 1.125rem; -webkit-line-clamp: 8; }
.memory.text .m-by { color: var(--petal-ink); opacity: .85; }
.wall-empty { grid-column: 1 / -1; text-align: center; padding: 32px 16px; border-radius: var(--r-lg); box-shadow: inset 0 0 0 1.5px dashed var(--line); color: var(--ink-2); }
.skeleton { height: 160px; border-radius: var(--r-md); background: var(--mist); }

/* ---------- Footer, bar, dialogs, toast ---------- */
.foot { padding: 8px var(--gutter) 120px; text-align: center; color: var(--ink-2); font-size: .9375rem; display: grid; gap: 10px; }
.foot a { color: var(--ink); font-weight: 600; }
.foot-small { font-size: .8125rem; }
.foot .credit a { font-weight: 450; color: var(--ink-2); text-decoration: none; }
.rsvp-bar { position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 20; display: flex; align-items: center; gap: 12px;
  background: var(--night); color: var(--night-ink); border-radius: 999px; padding: 8px 8px 8px 16px; box-shadow: var(--shadow-lift);
  transition: transform .25s ease, opacity .25s ease; }
.rsvp-bar.away { transform: translateY(140%); opacity: 0; pointer-events: none; }
.rsvp-bar .btn { margin-left: auto; min-height: 44px; padding: 0 24px; }
.bar-going { display: flex; align-items: center; gap: 10px; font-size: .875rem; line-height: 1.2; min-width: 0; }
.bar-going .face { box-shadow: 0 0 0 2px var(--night); width: 26px; height: 26px; }
.bar-going strong { font-weight: 650; display: block; }
.bar-going span { opacity: .75; }

dialog { border: 0; padding: 0; color: var(--ink); background: var(--surface); }
dialog::backdrop { background: rgba(10, 22, 19, .55); }
.sheet { width: min(520px, 100%); max-width: 100%; max-height: 92dvh; margin: auto auto 0; border-radius: var(--r-xl) var(--r-xl) 0 0; padding: 24px 20px calc(20px + env(safe-area-inset-bottom)); }
.sheet[open] { animation: up .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.sheet h2 { font-size: 1.5rem; padding-right: 40px; }
.sheet-sub { margin-top: 6px; color: var(--ink-2); font-size: .9375rem; }
.sheet-x { position: absolute; right: 12px; top: 12px; }
.sheet-x button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--mist); display: grid; place-items: center; cursor: pointer; }
#memory-form { margin-top: 18px; display: grid; gap: 14px; }
.photo-pick { display: grid; place-items: center; min-height: 132px; border-radius: var(--r-md); background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; overflow: hidden; }
.photo-pick:has(input:focus-visible) { outline: 3px solid var(--dahlia); outline-offset: 2px; }
.photo-empty { display: grid; justify-items: center; gap: 6px; font-weight: 600; color: var(--ink-2); }
.photo-empty .i { width: 28px; height: 28px; color: var(--dahlia); }
.photo-pick img { width: 100%; max-height: 260px; object-fit: cover; }
.sheet-done { text-align: center; padding: 24px 0 4px; display: grid; gap: 8px; }
.sheet-done p { color: var(--ink-2); margin-bottom: 12px; }
.lightbox { width: min(920px, calc(100% - 24px)); max-height: 92dvh; border-radius: var(--r-lg); overflow: auto; }
.lightbox img { width: 100%; max-height: 70dvh; object-fit: contain; background: #0f1f1b; }
.lightbox figcaption { padding: 18px 20px 22px; }
.lb-caption { font-family: var(--serif); font-style: italic; font-size: 1.25rem; line-height: 1.4; }
.lb-by { margin-top: 8px; font-weight: 600; color: var(--ink-2); font-size: .9375rem; }
.lightbox.text-only figure { padding-top: 40px; }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 60; background: var(--night); color: var(--night-ink); padding: 12px 18px;
  border-radius: 999px; font-weight: 600; font-size: .9375rem; box-shadow: var(--shadow-lift); max-width: calc(100% - 32px); }

/* ---------- Wider screens ---------- */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .gtk-grid { grid-template-columns: repeat(3, 1fr); }
  .gtk { grid-template-columns: 1fr; row-gap: 8px; }
  .gtk .i { grid-row: auto; }
  .wall-grid, .wall-col { gap: 14px; }
  .section-head.with-action { grid-template-columns: 1fr auto; align-items: end; }
  .rsvp { padding: 32px 28px 28px; margin-inline: 0; }
  .sheet { margin: auto; border-radius: var(--r-xl); }
}
@media (min-width: 960px) {
  .invite { display: grid; grid-template-columns: minmax(380px, 44%) 1fr; column-gap: clamp(32px, 4vw, 64px); max-width: 1320px; margin: 0 auto; padding: 0 clamp(24px, 3vw, 48px); }
  .poster { grid-row: 1 / span 2; position: sticky; top: 0; align-self: start; height: 100dvh; padding: 32px 0 112px; display: flex; flex-direction: column; }
  .poster-photo { flex: 1 1 auto; min-height: 420px; }
  .poster-photo img { position: absolute; inset: 0; aspect-ratio: auto; max-height: none; min-height: 0; object-position: 64% 35%; }
  .poster-text { padding: 0 32px 30px; }
  .tape { left: 24px; top: 26px; font-size: 1.125rem; }
  h1 { font-size: clamp(3.5rem, 5vw, 5.25rem); }
  .hosts { font-size: 1.375rem; }
  .content { padding: 32px 0 64px; max-width: 640px; }
  .content > section.when-where { margin-top: 0; }
  .gtk-grid { grid-template-columns: 1fr; }
  .gtk { grid-template-columns: 24px 1fr; row-gap: 4px; }
  .gtk .i { grid-row: span 2; }
  .foot { grid-column: 2; max-width: 640px; padding: 0 0 48px; text-align: left; }
  .rsvp-bar { left: clamp(24px, 3vw, 48px); right: auto; width: calc((min(100vw, 1320px) - 2 * clamp(24px, 3vw, 48px)) * .44); bottom: 32px; }
  .fact-main { font-size: 1.1875rem; }
  .fact-sub { font-size: 1rem; }
  .when-where { padding: 8px 20px; }
  .toast { bottom: 40px; }
}
@media (min-width: 1320px) { .rsvp-bar { left: calc((100vw - 1320px) / 2 + 48px); } }

/* ---------- Organizer ---------- */
.organizer { min-height: 100dvh; }
.org-gate { min-height: 100dvh; display: grid; place-items: center; padding: 24px var(--gutter); }
.gate-card { width: min(400px, 100%); background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-lift); padding: 30px 24px 24px; }
.gate-card .i { width: 28px; height: 28px; color: var(--dahlia); }
.gate-card h1 { font-size: 2rem; margin-top: 14px; letter-spacing: -.03em; }
.gate-card p { margin-top: 8px; color: var(--ink-2); }
.gate-card form { margin-top: 20px; display: grid; gap: 12px; }
.gate-card .back { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; color: var(--ink-2); font-size: .9375rem; font-weight: 600; text-decoration: none; }
.gate-card .back .i { width: 16px; height: 16px; color: inherit; }
.org { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter) 48px; }
.org-top { display: flex; align-items: center; gap: 12px; padding: 18px 0 14px; }
.org-top h1 { font-size: 1.375rem; letter-spacing: -.02em; line-height: 1.15; }
.org-top p { color: var(--ink-2); font-size: .875rem; }
.org-top .btn { margin-left: auto; }
.headcount { background: var(--night); color: var(--night-ink); border-radius: var(--r-xl); padding: 22px 22px 18px; box-shadow: var(--shadow-lift); }
.hc-main { display: flex; align-items: baseline; gap: 12px; }
.hc-num { font-weight: 760; font-size: 4.75rem; line-height: .9; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.hc-label { font-weight: 600; font-size: 1.125rem; line-height: 1.2; }
.hc-sub { margin-top: 10px; font-size: .9375rem; opacity: .82; }
.hc-bar { margin-top: 14px; height: 8px; border-radius: 999px; background: rgba(247, 244, 246, .16); overflow: hidden; display: flex; }
@media (prefers-color-scheme: dark) { .hc-bar { background: rgba(16, 34, 29, .14); } }
.hc-bar span { display: block; height: 100%; }
.hc-bar .yes { background: var(--marigold); }
.hc-bar .maybe { background: repeating-linear-gradient(-45deg, var(--marigold) 0 3px, transparent 3px 6px); opacity: .7; }
.hc-legend { margin-top: 8px; display: flex; justify-content: space-between; font-size: .8125rem; opacity: .75; }
.stats { margin-top: 12px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stat { background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow); padding: 12px 8px 10px; text-align: center; border: 0; cursor: pointer; display: grid; gap: 2px; }
.stat b { font-size: 1.625rem; font-weight: 720; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { font-size: .8125rem; color: var(--ink-2); font-weight: 600; }
.stat[aria-pressed=true] { box-shadow: inset 0 0 0 2px var(--dahlia); }
.stat.waiting b { color: var(--warn); }
.card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 18px; margin-top: 12px; }
.card h2 { font-size: 1.1875rem; letter-spacing: -.015em; }
.card-head { display: flex; align-items: center; gap: 10px; }
.card-head .i { color: var(--dahlia); }
.card-head .btn { margin-left: auto; }
.diet-list { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.diet-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 10px; border-radius: 999px; background: var(--mist); font-size: .9375rem; font-weight: 550; }
.diet-pill b { font-weight: 750; }
.diet-pill .i { width: 16px; height: 16px; color: var(--dahlia); }
.diet-notes { margin-top: 12px; padding: 0; list-style: none; display: grid; gap: 6px; font-size: .9375rem; color: var(--ink-2); }
.diet-notes b { color: var(--ink); font-weight: 600; }
.tabs { scroll-margin-top: 0; position: sticky; top: 0; z-index: 5; margin: 20px calc(-1 * var(--gutter)) 0; padding: 10px var(--gutter); background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px); display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.tab { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px; border: 0; background: transparent; color: var(--ink-2);
  font-weight: 600; font-size: .9375rem; cursor: pointer; }
.tab[aria-selected=true] { background: var(--ink); color: var(--paper); }
.tab .count { font-size: .75rem; font-weight: 700; background: var(--mist); color: var(--ink); border-radius: 999px; padding: 1px 7px; }
.tab[aria-selected=true] .count { background: color-mix(in srgb, var(--paper) 22%, transparent); color: var(--paper); }
.tab .count.alert { background: var(--dahlia); color: var(--dahlia-ink); }
.panel { margin-top: 10px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.filter { height: 34px; padding: 0 12px; border-radius: 999px; border: 0; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); font-size: .875rem; font-weight: 600; cursor: pointer; color: var(--ink); }
.filter[aria-pressed=true] { background: var(--ink); color: var(--paper); box-shadow: none; }
.filters .btn { margin-left: auto; }
.guest-list { margin-top: 12px; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; list-style: none; padding: 0; }
.guest { display: grid; grid-template-columns: 34px 1fr auto; gap: 2px 12px; padding: 13px 16px; border-top: 1px solid var(--mist); align-items: center; }
.guest:first-child { border-top: 0; }
.g-name { font-weight: 620; line-height: 1.3; }
.g-meta { font-size: .8125rem; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.g-meta .i { width: 14px; height: 14px; }
.g-diet { display: inline-flex; align-items: center; gap: 4px; color: var(--dahlia); font-weight: 600; }
.g-right { display: flex; align-items: center; gap: 8px; grid-row: span 2; grid-column: 3; grid-row-start: 1; }
.guest .face { grid-row: span 2; width: 34px; height: 34px; font-size: .75rem; margin: 0; box-shadow: none; }
.g-meta { grid-column: 2; }
.pill { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-size: .8125rem; font-weight: 650; white-space: nowrap; }
.pill.yes { background: var(--good-bg); color: var(--good); }
.pill.maybe { background: var(--warn-bg); color: var(--warn); }
.pill.no { background: var(--mist); color: var(--ink-2); }
.pill.waiting { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink-2); }
.pill.pending { background: var(--petal); color: var(--petal-ink); }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--mist); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.icon-btn .i { width: 17px; height: 17px; }
.list-empty { padding: 28px 16px; text-align: center; color: var(--ink-2); }
.msgs { margin-top: 4px; display: grid; gap: 10px; }
.msg { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 18px 18px 14px; }
.msg q { display: block; font-family: var(--serif); font-style: italic; font-size: 1.1875rem; line-height: 1.42; quotes: '“' '”'; }
.msg footer { margin-top: 10px; display: flex; gap: 8px; align-items: center; font-size: .875rem; font-weight: 600; color: var(--ink-2); }
.mod { display: grid; gap: 10px; margin-top: 4px; }
.mod-item { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; display: grid; grid-template-columns: 96px 1fr; }
.mod-item.no-photo { grid-template-columns: 1fr; }
.mod-item img { width: 96px; height: 100%; min-height: 96px; object-fit: cover; }
.mod-body { padding: 12px 14px; display: grid; gap: 6px; }
.mod-caption { font-family: var(--serif); font-style: italic; font-size: 1.0625rem; line-height: 1.38; }
.mod-by { font-size: .8125rem; color: var(--ink-2); font-weight: 600; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mod-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.mod-actions .btn { min-height: 38px; padding: 0 14px; font-size: .875rem; }
.mod-group { margin-top: 18px; font-size: .9375rem; font-weight: 650; color: var(--ink-2); }
.mod-group:first-child { margin-top: 6px; }
.org-film { margin-top: 4px; }
@media (min-width: 900px) {
  .org-grid { display: grid; grid-template-columns: 380px 1fr; gap: 28px; align-items: start; }
  .org-side { position: sticky; top: 16px; }
  .tabs { margin: 0; padding: 0 0 10px; top: 0; padding-top: 4px; }
  .msgs { grid-template-columns: 1fr 1fr; }
  .mod { grid-template-columns: 1fr 1fr; }
}
.diet-counts { flex-basis: 100%; display: grid; gap: 8px; margin-top: 6px; }
.diet-count { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .9375rem; }
.diet-count .stepper button { width: 34px; height: 34px; }
.cal-options { display: grid; gap: 10px; margin-top: 18px; }
.panel-note { margin: 10px 2px 0; color: var(--ink-2); font-size: .9375rem; }
.panel-note + .msgs { margin-top: 12px; }
.skeleton.short { height: 110px; }
.org-top > div { min-width: 0; }
.org-top p { text-wrap: balance; }
