:root {
    color-scheme: light;
    font-family: system-ui, sans-serif;
    --background: #f5f7fa;
    --text: #171e2b;
    --muted: #4e5f75;
    --line: #c7d2e0;
    --panel: #fff;
    --accent: #2859a0;
    background: var(--background);
    color: var(--text);
}

:root[data-theme="midnight"] {
    color-scheme: dark;
    --background: #11151d;
    --text: #edf1f7;
    --muted: #adb9ca;
    --line: #3c4659;
    --panel: #1d2636;
    --accent: #9cbfff;
}

* { box-sizing: border-box; }
body { margin: 0; }
.wrap { width: min(70rem, calc(100% - clamp(2rem, 8vw, 6rem))); margin-inline: auto; }
main { padding-bottom: 3rem; }
.masthead {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem clamp(1rem, 3vw, 2rem);
    min-height: 5.5rem;
    padding-block: .75rem;
    border-bottom: 1px solid var(--line);
}
.masthead a { color: inherit; text-decoration: none; }
.masthead a:hover { text-decoration: underline; text-underline-offset: .25em; }
.wordmark {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    margin-inline-end: auto;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.record-mark {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: radial-gradient(circle, var(--panel) 0 7%, var(--accent) 8% 26%, var(--text) 27% 43%, var(--muted) 44% 48%, var(--text) 49% 62%, var(--muted) 63% 67%, var(--text) 68%);
}
.masthead nav { display: flex; flex-wrap: wrap; gap: .5rem 1rem; font-size: .875rem; }
.masthead nav span { color: var(--accent); }
.hero { padding-block: clamp(2rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 2.75rem); }
.hero h1 { margin: 0; font: 500 clamp(2.75rem, 9vw, 6.5rem)/.98 Georgia, serif; letter-spacing: -.055em; }
.hero h1 em { color: var(--accent); font-weight: inherit; }
.hero p { margin: .85rem 0 0; color: var(--muted); }
#albums { scroll-margin-top: 1rem; }
label { font-weight: 600; }
.theme-control { display: flex; align-items: center; gap: .5rem; font-size: .875rem; color: var(--muted); }
.theme-control select { width: auto; margin: 0; color: var(--text); }
@media (max-width: 34rem) {
    .masthead nav { flex-basis: 100%; order: 1; }
}
input, select {
    display: block;
    width: 100%;
    margin-top: .35rem;
    min-height: 2.75rem;
    padding: .55rem .7rem;
    font: inherit;
    font-weight: 400;
    color: var(--text);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: .35rem;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#status { color: var(--muted); font-variant-numeric: tabular-nums; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; }
th, td {
    padding: .65rem clamp(.2rem, 1.4vw, 1rem);
    border-bottom: 1px solid var(--line);
    text-align: left;
    overflow-wrap: anywhere;
    vertical-align: top;
}
th { padding: 0; color: var(--muted); background: var(--panel); }
th button {
    width: 100%;
    min-height: 2.75rem;
    padding: .65rem clamp(.2rem, 1.4vw, 1rem);
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: .875rem;
    text-align: inherit;
    white-space: nowrap;
    cursor: pointer;
}
th button:hover, th[aria-sort] button { color: var(--accent); }
th button:focus-visible { outline-offset: -2px; }
th button span::before { content: "↕"; }
th[aria-sort="ascending"] button span::before { content: "↑"; }
th[aria-sort="descending"] button span::before { content: "↓"; }
th:first-child { width: 32%; }
th:nth-child(n+3) {
    width: clamp(3.75rem, 13vw, 6rem);
}
th:nth-child(n+3), td:nth-child(n+3) {
    text-align: right;
    font-variant-numeric: tabular-nums;
}
