:root {
    --bg-dark: #0b0910;
    --fg-dark: #efe7d8;
    --primary: #e2b95a;
    --accent: #e2b95a;
    --success: #8fd19e;
    --text: #efe7d8;
    --muted: #cfc6b8;
    --dim: #a79f92;
    --placeholder: #6b6478;
    --gold: #e2b95a;
    --gold-light: #f3dfa2;
    --gold-dark: #c99a3c;
    --gold-pale: #f7e4a6;
    --on-gold: #1a1408;
    --border: #3a3346;
    --hairline: #ffffff12;
    --gold-hairline: #e2b95a33;
    --purple: #b48be0;
    --glow: radial-gradient(120% 60% at 50% -10%, #2a1f3d 0%, #0b0910 55%);
    --glow-wide: radial-gradient(90% 40% at 50% -10%, #251b36 0%, #0b0910 60%);
    --gold-fill: linear-gradient(180deg, #f3dfa2, #d8ad4b);
    --gold-bar: linear-gradient(90deg, #c99a3c, #f3dfa2);
    --shimmer: linear-gradient(90deg, #c99a3c, #f7e4a6 40%, #e2b95a 60%, #f7e4a6 80%, #c99a3c);
    --font-sans: "DM Sans", system-ui, sans-serif;
    --font-display: "Bodoni Moda", Didot, "Times New Roman", serif;
    --font-mono: ui-monospace, Menlo, monospace;
    --br-s: 6px;
    --br-m: 6px;
    --br-l: 8px;
    --br-xl: 8px;
    --line: 1px solid var(--border);
    --hair: 1px solid var(--hairline);
}

body { background: var(--bg-dark); color: var(--text); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
body.wide { background: var(--glow-wide); }
h1, h2, h3, .display { font-family: var(--font-display); font-weight: 400; color: var(--gold-light); }
h1 { font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
h2 { font-size: 26px; border: 0; padding: 0; }
h3 { font-family: var(--font-sans); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); text-decoration: underline; }
small, .text-muted, label { color: var(--dim); }
input::placeholder, textarea::placeholder { color: var(--placeholder); }

input:not([type="checkbox"], [type="radio"]), select, textarea {
    border: var(--line); border-radius: 6px; background: #ffffff08; color: var(--text);
    padding: 10px 14px; min-block-size: 48px; font-size: 16px;
}
input:not([type="checkbox"], [type="radio"]):focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--gold); }
label { font-size: 13px; }

button, .button { border-radius: 6px; min-block-size: 48px; font-weight: 500; font-size: 15px; border: 1px solid #e2b95a88; background: transparent; color: var(--gold-light); box-shadow: none; --button-color: transparent; --button-text: var(--gold-light); }
button:hover, .button:hover { background: #e2b95a14; }
button.primary { border: 0; background: var(--gold-fill); color: var(--on-gold); font-weight: 600; font-size: 16px; letter-spacing: 0.02em; box-shadow: 0 10px 30px -12px #e2b95a99; }
button.primary:hover { background: var(--gold-fill); filter: brightness(1.04); }
button.big { min-block-size: 52px; }
button.quiet { border: var(--line); color: var(--dim); background: transparent; }
button.quiet:hover { color: var(--text); border-color: var(--dim); background: transparent; }
button.mini { min-block-size: 0; padding: 0.3rem 0.7rem; font-size: 13px; }
details.edit > summary { list-style: none; display: inline-flex; align-items: center; padding: 10px 16px; font-size: 14px; }
details.edit > summary::before { content: none; }

.bar { padding: 14px 28px; border-block-end: 1px solid var(--gold-hairline); gap: 22px; }
.bar .brand { font-family: var(--font-display); font-size: 20px; letter-spacing: 0.06em; color: var(--gold-light); font-weight: 400; }
.bar .event { color: var(--dim); border-inline-start: var(--line); padding-inline-start: 22px; font-size: 14px; }
.bar nav a { color: var(--muted); padding: 8px 12px; font-size: 14px; border-radius: 0; }
.bar nav a:hover { background: none; color: var(--gold-light); text-decoration: none; }
.bar nav a[aria-current] { color: var(--gold); box-shadow: inset 0 -2px 0 var(--gold); }
.bar .me { color: var(--dim); font-size: 13px; }

body.wide main { max-inline-size: 1280px; padding: 36px 28px 64px; --gap: 34px; }
.split.center h1 { font-size: 48px; }
.meta { color: var(--dim); font-size: 14px; gap: 18px; }
.meta span + span::before { content: none; margin: 0; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; }
.stat { border-block-start: 2px solid var(--border); padding-block-start: 12px; gap: 4px; }
.stat:first-child { border-color: var(--gold); }
.stat strong { font-family: var(--font-display); font-size: 48px; line-height: 1; font-weight: 400; color: var(--text); }
.stat:first-child strong { color: var(--gold-light); }
.stat small { font-size: 11px; letter-spacing: 0.2em; color: var(--dim); }

.columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 34px; align-items: start; }
.columns section { display: grid; gap: 14px; min-inline-size: 0; }
.heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.heading a { font-size: 13px; }

.rows { border: var(--line); border-radius: 8px; overflow: hidden; }
.rows .row { display: grid; grid-template-columns: 70px 1fr 90px 90px 1.4fr; gap: 12px; align-items: center; padding: 12px 16px; border-block-start: 1px solid #ffffff10; font-size: 14px; white-space: nowrap; }
.rows .row:hover { background: #ffffff05; }
.rows .head { border: 0; padding: 10px 16px; background: #ffffff06; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.rows .head + .row { border: 0; }
.rows .row > span:nth-child(2) { white-space: normal; }
.rows .head:hover { background: #ffffff06; }
.rows .row > a:first-child { font-weight: 600; font-size: 15px; }
.rows .none { color: var(--placeholder); font-style: italic; }
.rows .num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.rows .num .of { color: var(--placeholder); }
.rows .num.dim { color: var(--dim); }
.progress { display: flex; align-items: center; gap: 10px; }
.progress .track { flex: 1; block-size: 4px; background: var(--hairline); border-radius: 2px; overflow: hidden; }
.progress .fill { display: block; block-size: 100%; inline-size: var(--pct); background: var(--gold); }
.progress .fill.done { background: var(--success); }
.progress .pct { font-family: var(--font-mono); font-size: 12px; color: var(--dim); inline-size: 34px; text-align: right; }

.cards { display: grid; gap: 10px; }
.cards .card { border: var(--line); border-radius: 8px; padding: 14px 16px; display: grid; gap: 10px; background: none; }
.cards .card:hover { border-color: #e2b95a66; }
.card .top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.card .top strong { font-weight: 600; font-size: 15px; }
.card .time { font-size: 13px; color: var(--dim); margin-inline-start: 10px; }
.card .tag { font-family: var(--font-mono); font-size: 12px; padding: 2px 8px; border-radius: 3px; border: var(--line); color: var(--dim); }
.card .tag.warn { border-color: var(--gold); color: var(--gold); }
.card .tag.ok { border-color: var(--success); color: var(--success); }
.card .track { block-size: 6px; background: var(--hairline); border-radius: 3px; overflow: hidden; }
.card .fill { display: block; block-size: 100%; inline-size: var(--pct); background: var(--gold-bar); }
.card .fill.done { background: var(--success); }
.pills { display: flex; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.pills span { padding: 3px 10px; border: var(--line); border-radius: 999px; }

.feed { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.feed div { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 10px 14px; border: 1px solid #ffffff10; border-radius: 6px; font-size: 13px; align-items: baseline; }
.feed time { font-family: var(--font-mono); color: var(--dim); }
.feed strong { color: var(--gold-light); font-weight: 500; }
.feed span { color: var(--muted); }

.table { border: var(--line); border-radius: 8px; }
th { background: #ffffff06; color: var(--dim); font-size: 11px; letter-spacing: 0.14em; }
td { border-block-start: 1px solid #ffffff10; }
.tag { border-radius: 3px; font-family: var(--font-mono); font-size: 12px; }
.card { border: var(--line); border-radius: 8px; background: none; }

.galla { position: relative; min-height: 100vh; background: var(--glow); overflow: hidden; }
.galla .layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.galla .stars { z-index: 0; }
.galla .stars span { position: absolute; left: var(--x); top: var(--y); inline-size: var(--s); block-size: var(--s); border-radius: 50%; background: var(--gold-light); box-shadow: 0 0 6px var(--gold); animation: twinkle var(--d) ease-in-out var(--delay) infinite; }
.galla .confetti { z-index: 1; }
.galla .confetti span { position: absolute; left: var(--x); top: 0; inline-size: var(--w); block-size: var(--h); background: var(--c); border-radius: 1px; opacity: 0.85; transform: rotate(var(--r)); animation: fall var(--d) linear var(--delay) infinite, sway calc(var(--d) / 3) ease-in-out var(--delay) infinite; }
.galla .column { position: relative; z-index: 2; box-sizing: border-box; max-inline-size: 430px; margin: 0 auto; padding: 0 20px; }
.galla .eyebrow { display: flex; align-items: center; gap: 12px; justify-content: center; padding: 56px 0 0; color: var(--gold); font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; }
.galla .eyebrow::before, .galla .eyebrow::after { content: ""; flex: 1; block-size: 1px; }
.galla .eyebrow::before { background: linear-gradient(90deg, transparent, var(--gold)); }
.galla .eyebrow::after { background: linear-gradient(90deg, var(--gold), transparent); }
.galla main { position: relative; z-index: 2; box-sizing: border-box; inline-size: 100%; max-inline-size: 430px; margin: 0 auto; padding: 0 20px 56px; --gap: 0; }
.galla main::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #0b091077; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); -webkit-mask-image: linear-gradient(180deg, transparent, #000 160px); mask-image: linear-gradient(180deg, transparent, #000 160px); }

.hero { text-align: center; padding: 22px 0 36px; }
.hero .guest-name { font-family: var(--font-display); font-size: 76px; line-height: 0.95; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 6px; background: var(--shimmer); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 6s linear infinite; overflow-wrap: anywhere; }
.hero .invited { font-family: var(--font-display); font-style: italic; font-size: 22px; color: var(--text); }
.hero .title { font-family: var(--font-display); font-size: 40px; line-height: 1.05; margin: 16px 0 22px; color: var(--gold-light); }
.hero .meta { display: grid; gap: 6px; font-size: 14px; color: var(--muted); letter-spacing: 0.04em; justify-items: center; }
.hero .prose { margin-block-start: 12px; font-size: 14px; color: var(--dim); }

.galla .flash { margin-block-end: 18px; padding: 12px 16px; border: 1px solid var(--success); color: var(--success); border-radius: 6px; font-size: 14px; text-align: center; }
.galla .section { border-block-start: 1px solid var(--gold-hairline); padding: 26px 0 8px; margin-block-start: 22px; display: grid; gap: 14px; }
.galla main > .section:first-of-type { border-block-start: 1px solid var(--gold-hairline); margin-block-start: 0; }
.galla .section.late h2 { font-size: 22px; }
.galla .section p.text-muted { font-size: 14px; color: var(--dim); margin: 0 0 6px; }
.galla .section > div:has(> button) { display: grid; }

.segmented { gap: 10px; }
.segmented span { min-block-size: 54px; border: var(--line); border-radius: 6px; font-size: 17px; font-weight: 600; color: var(--text); background: transparent; }
.segmented input:checked + span { border-color: var(--gold); background: var(--gold-fill); color: var(--on-gold); }
.segmented input:focus-visible + span { outline: 2px solid var(--gold); }

ul.tasks li { border-block-end: 1px solid var(--hairline); }
ul.tasks li.full { opacity: 0.5; }
label.check.big { padding: 14px 0; gap: 14px; align-items: center; }
label.check.big input { appearance: none; inline-size: 26px; block-size: 26px; border-radius: 5px; border: 1px solid var(--placeholder); background: none; display: grid; place-items: center; margin: 0; cursor: pointer; }
label.check.big input:checked { background: var(--gold); border-color: var(--gold); }
label.check.big input:checked::after { content: "✓"; color: var(--on-gold); font-size: 15px; font-weight: 700; }
label.check.big input:disabled { cursor: default; }
label.check.big > span { display: grid; gap: 3px; flex: 1; }
label.check.big .line { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
label.check.big strong { font-weight: 600; font-size: 16px; }
label.check.big .time { font-size: 13px; color: var(--muted); }
label.check.big .count, label.check.big small { font-size: 13px; color: var(--dim); }
ul.tasks .what { margin: 0 0 6px 40px; inline-size: calc(100% - 40px); min-block-size: 46px; }
ul.tasks li:not(:has(input:checked)) .what { display: none; }

ul.people li strong { font-weight: 600; }
ul.signups { font-size: 13px; color: var(--dim); padding-inline-start: 10px; border-inline-start: 2px solid #e2b95a55; }
ul.links li { display: flex; justify-content: space-between; padding: 12px 0; border-block-end: 1px solid var(--hairline); }
ul.links li .text-muted { color: var(--dim); font-size: 14px; }
.detach { text-align: center; margin-block-start: 40px; border: 0; padding: 0; display: block; }
.detach button { padding: 12px 18px; font-size: 14px; }
.foot { display: none; }

@keyframes fall { 0% { transform: translateY(-8vh) rotate(0deg); } 100% { transform: translateY(110vh) rotate(720deg); } }
@keyframes sway { 0%, 100% { margin-left: 0; } 50% { margin-left: 22px; } }
@keyframes twinkle { 0%, 100% { opacity: 0.15; transform: scale(0.6); } 50% { opacity: 1; transform: scale(1.15); } }
@keyframes shimmer { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }

@media (prefers-reduced-motion: reduce) {
    .galla .confetti { display: none; }
    .galla .stars span, .hero .guest-name { animation: none; }
    .galla .stars span { opacity: 0.6; }
}

@media (max-width: 40rem) {
    .split.center h1 { font-size: 34px; }
    .stat strong { font-size: 34px; }
    .rows .row { grid-template-columns: 56px 1fr 60px 70px; }
    .rows .row > :last-child { display: none; }
    body.wide main { padding: 24px 16px 48px; --gap: 24px; }
    .bar { padding: 12px 16px; gap: 12px; }
}
