:root {
    color-scheme: light dark;
    --page: #f4f7fb;
    --panel: #fff;
    --text: #172437;
    --accent: #124ca1;
    --line: #a7b5c8;
}
@media (prefers-color-scheme: dark) {
    :root {
        --page: #131d2b;
        --panel: #1f2c3d;
        --text: #f3f7ff;
        --accent: #abcfff;
        --line: #63738b;
    }
}
* { box-sizing: border-box; }
body {
    margin: 0;
    background: var(--page);
    color: var(--text);
    font: 1rem/1.5 system-ui, sans-serif;
}
main {
    max-width: 72rem;
    margin-inline: auto;
    padding: clamp(1rem, 5vw, 3rem);
}
header p { margin: 0; }
h1 { margin-top: .25rem; }
a { color: var(--accent); }
:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}
form, nav {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: .75rem;
    margin-block: 1rem;
}
label { flex: 1 1 10rem; }
input, button {
    display: block;
    min-height: 2.75rem;
    padding: .5rem;
    border: 1px solid var(--line);
    border-radius: .25rem;
    background: var(--panel);
    color: inherit;
    font: inherit;
}
input { width: 100%; }
button { cursor: pointer; }
.table-scroll { overflow-x: auto; }
table {
    width: 100%;
    border-collapse: collapse;
    background: var(--panel);
}
th, td {
    padding: .75rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
}
thead th { white-space: nowrap; }
footer { margin-top: 2rem; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.nav-form { margin: 0; }
.stack-form {
    display: grid;
    align-items: start;
    max-width: 32rem;
}
.stack-form button { justify-self: start; }
textarea {
    display: block;
    width: 100%;
    padding: .5rem;
    border: 1px solid var(--line);
    border-radius: .25rem;
    background: var(--panel);
    color: inherit;
    font: inherit;
}
.event {
    margin-block: 1rem;
    padding: 1rem;
    background: var(--panel);
    overflow-wrap: anywhere;
}
.event h2 { margin-top: 0; }
.event-description { white-space: pre-wrap; }
