:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  color: #263329;
  background: #142c24;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100svh;
  background: radial-gradient(ellipse at 50% 5%, #315341, #142c24 65%);
}
main { width: min(100% - 2rem, 33rem); margin: auto; padding: clamp(2rem, 8vh, 5rem) 0 3rem; }
header { color: #fbf2dc; text-align: center; margin-bottom: 2rem; }
.party-logo { display: block; width: 250px; max-width: 100%; height: auto; margin: 0 auto; padding-bottom: 40px; }
.season { text-transform: uppercase; letter-spacing: .23em; font-size: .875rem; }
.season span { color: #e8b975; margin: 0 .35rem; }
h1, h2 { font-family: Georgia, serif; font-weight: 400; }
h1 { margin: .8rem 0 0; font-size: clamp(4rem, 12vw, 7rem); line-height: .85; letter-spacing: -.07em; }
h1 em { color: #f3bf8e; }
.card, dialog {
  background: #fff8ec;
  border: 1px solid #e3c9a4;
  border-radius: 1.2rem;
  padding: clamp(1.4rem, 5vw, 2.3rem);
  box-shadow: 0 18px 50px #08171065;
}
dialog { width: min(100% - 2rem, 30rem); color: inherit; }
dialog::backdrop { background: #081810c9; }
dialog, .card:has(#result-details:not([hidden])) { text-align: center; }
.emojis { font-size: 2.2rem; margin-bottom: .6rem; }
.dialog-actions { display: grid; gap: .65rem; grid-template-columns: 1fr 1fr; }
.dialog-actions .primary { background: #177644; border-color: #177644; }
.dialog-actions .primary:hover { background: #125934; }
@media (max-width: 400px) { .dialog-actions { grid-template-columns: 1fr; } }
h2 { margin: 0; font-size: clamp(1.8rem, 6vw, 2.5rem); line-height: 1.1; }
p { line-height: 1.55; margin: .8rem 0 1.25rem; }
label { display: block; font-weight: 650; margin-bottom: .45rem; }
input, button { width: 100%; font: inherit; min-height: 3rem; border-radius: .55rem; }
input { background: #fffdf8; border: 1px solid #9a927d; color: inherit; padding: .7rem .85rem; }
button { cursor: pointer; padding: .65rem .9rem; margin-top: .65rem; font-weight: 650; }
.primary { background: #8a2c3d; border: 1px solid #8a2c3d; color: #fff8ec; }
.primary:hover { background: #702231; }
.secondary { background: transparent; border: 1px solid #9a927d; color: inherit; }
.secondary:hover { background: #f4e8d4; }
.link { border: 0; color: inherit; background: transparent; text-decoration: underline; }
button:disabled { opacity: .65; cursor: wait; }
:focus-visible { outline: 3px solid #9a562e; outline-offset: 3px; }
[role="alert"] { color: #842739; margin-bottom: 0; }
[role="alert"]:empty { display: none; }
.organiser-page { background: #f4f6f2; color: #18241a; }
.organiser-page :focus-visible { outline-color: #38601a; }
.organiser-brand { margin: 0; background: #101611; border-bottom: 3px solid #89df30; }
.organiser-brand div, .organiser { width: min(100% - 2rem, 68rem); margin: auto; }
.organiser-brand div { display: flex; align-items: center; min-height: 4.75rem; }
.organiser-brand img { width: 5.25rem; height: auto; }
.organiser { padding: clamp(1.5rem, 5vw, 3rem) 0 3rem; }
.organiser-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.organiser h1 { margin: 0; font: 750 clamp(1.85rem, 4.5vw, 3rem)/1.12 system-ui, sans-serif; letter-spacing: -.045em; }
.export-link { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .55rem 1rem; border: 1px solid #b5d88b; border-radius: .55rem; background: #ddf9be; color: #20360e; font-weight: 700; text-decoration: none; }
.export-link:hover { background: #ccecaa; }
.response-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(8.25rem, 100%), 1fr)); gap: .65rem; margin-bottom: 1.25rem; }
.response-filters a { display: flex; flex-direction: column; gap: .25rem; min-height: 5.3rem; padding: .7rem .85rem; border: 1px solid #d8dfd6; border-radius: .7rem; background: #fff; color: #354437; text-decoration: none; }
.response-filters a span { font-size: .875rem; font-weight: 650; }
.response-filters a strong { color: #18241a; font-size: 1.65rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.response-filters a:hover { background: #eef5e9; }
.response-filters a[aria-current="page"] { border-color: #558836; box-shadow: inset 0 -3px #558836; background: #e8f5df; }
.response-panel { overflow: hidden; border: 1px solid #d8dfd6; border-radius: .8rem; background: #fff; }
.response-panel-heading { display: flex; align-items: baseline; justify-content: space-between; gap: .65rem; padding: 1rem clamp(.65rem, 2vw, 1.25rem); }
.response-panel-heading h2 { font: 700 1.125rem/1.3 system-ui, sans-serif; }
.response-panel-heading span, .response-table small, .response-table time { color: #526355; font-size: .875rem; }
.response-table { overflow-x: auto; }
.response-table table { width: 100%; border-collapse: collapse; text-align: left; }
.response-table th, .response-table td { padding: .75rem clamp(.45rem, 2vw, 1.25rem); border-top: 1px solid #e4e9e2; }
.response-table thead { background: #f4f6f2; color: #354437; font-size: .875rem; }
.response-table small { display: block; font-weight: 400; }
.response-table th[scope="row"] { font-weight: 650; overflow-wrap: anywhere; }
.response-table tbody tr:nth-child(even) { background: #fafbf9; }
.rsvp-status { display: inline-block; padding: .2rem .55rem; border-radius: .35rem; background: #edf0ee; color: #38453d; font-size: .875rem; font-weight: 650; }
.rsvp-status.filter-attending { background: #e2f4df; color: #20552b; }
.rsvp-status.filter-not-attending { background: #f8e6e8; color: #7b2634; }
.rsvp-status.filter-pending { background: #fff0d1; color: #694505; }
.response-note, .response-empty { margin: 0; padding: .75rem 1rem; color: #526355; }
.response-note { margin-bottom: 1rem; border-left: 3px solid #a97821; background: #fff8e8; }
.response-empty { border-top: 1px solid #e4e9e2; }
