:root {
  --color-bg: #fff;
  --color-surface: #fff;
  --color-text: #151515;
  --color-muted: #6f6a63;
  --color-line: #dededb;
  --color-accent: #3e9a4a;
  --color-success: #287333;
  --color-selected: #edf5ed;
  --color-hover: #f3f3ef;
}
:root:has(#darkmode:checked) {
  color-scheme: dark;
  --color-bg: #111111;
  --color-surface: #171717;
  --color-text: #f5f3ee;
  --color-muted: #b8b2a8;
  --color-line: rgba(245, 243, 238, .16);
  --color-accent: #7ccf84;
  --color-success: #7ccf84;
  --color-selected: #203523;
  --color-hover: #292925;
}
.site-theme-toggle { display: inline-flex; align-items: center; position: relative; }
.site-theme-toggle input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.site-theme-toggle label { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; font-size: 1rem; cursor: pointer; }
.site-theme-toggle input:focus-visible + label { outline: 2px solid var(--color-accent); outline-offset: 3px; border-radius: 4px; }
:root { color-scheme: light; font-family: 'ABeeZee', sans-serif; color: var(--color-text); background: var(--color-bg); --columns: 3; --cover-size: 80px; --grid-gap: .75rem; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0 auto; padding: 0 clamp(.75rem, 3vw, 3rem); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, .playlist:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
a:hover { color: var(--color-accent); }
.site-header { display: flex; justify-content: space-between; padding: 1.5rem 0; border-bottom: 1px solid var(--color-line); font-size: .9rem; }
.site-header span, .kicker, .intro > p, .playlist-header p, footer { color: var(--color-muted); }
.intro { padding: 2rem 0 1rem; }
.kicker { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
h1, h2 { font-family: 'Spectral', serif; font-weight: 400; }
h1 { font-size: clamp(3rem, 8vw, 4.5rem); line-height: 1.1; margin: .6rem 0 1rem; }
.intro > p { line-height: 1.6; }
.playlist-nav { display: flex; gap: .5rem; overflow-x: auto; padding: .3rem .2rem .75rem; border-bottom: 1px solid var(--color-line); margin-bottom: 1rem; }
.playlist-nav a { flex-shrink: 0; border: 1px solid var(--color-line); border-radius: 5px; padding: .65rem 1rem; font-size: .85rem; color: inherit; background: var(--color-surface); cursor: pointer; }
.playlist-nav a:hover { border-color: var(--color-accent); }
.playlist-nav a[aria-current="page"] { background: var(--color-selected); border-color: var(--color-accent); color: var(--color-success); }
.grid-controls { width: fit-content; max-width: 100%; padding: .85rem 1rem .6rem; border: 1px solid var(--color-line); border-radius: 6px; background: var(--color-surface); margin: 0 0 0 auto; font-size: .75rem; }
.slider-controls { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1.5rem; }
.slider-controls > label { display: grid; grid-template-columns: 1fr auto; gap: .4rem .75rem; width: 9rem; }
.control-options { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.links-option { display: inline-flex; align-items: center; gap: .4rem; min-height: 28px; cursor: pointer; color: var(--color-muted); }
.links-option input { margin: 0; accent-color: var(--color-accent); cursor: pointer; }
.grid-controls output { font-variant-numeric: tabular-nums; color: var(--color-success); }
.grid-controls input[type="range"] { grid-column: 1 / -1; width: 100%; margin: 0; accent-color: var(--color-accent); cursor: pointer; }
.playlist { margin-bottom: 3rem; }
.playlist-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.playlist-header > div { min-width: 0; }
h2 { font-size: 2rem; margin: 0; overflow-wrap: anywhere; }
.playlist-header p { margin: .3rem 0 0; font-size: .8rem; }
.source-link { flex-shrink: 0; font-size: .75rem; color: var(--color-accent); text-align: right; }
.tracks { list-style: none; padding: 0; margin: 0 auto; width: 100%; max-width: calc(var(--columns) * 400px + (var(--columns) - 1) * var(--grid-gap)); display: grid; gap: var(--grid-gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, max(calc(var(--cover-size) + 192px), calc((100% - (var(--columns) - 1) * var(--grid-gap)) / var(--columns)))), 1fr)); }
.track { min-width: 0; height: calc(var(--cover-size) + 26px); display: flex; align-items: center; gap: 0; border: 1px solid var(--color-line); border-radius: 6px; padding: 0; background: var(--color-surface); }
.cover { width: min(calc(var(--cover-size) + 24px), max(48px, calc(100vw - 190px))); height: 100%; object-fit: cover; border-radius: 5px 0 0 5px; background: var(--color-hover); flex-shrink: 0; }
.track-info { flex: 1; min-width: 0; align-self: stretch; display: flex; flex-direction: column; padding: 12px; }
h3 { font-size: .9rem; line-height: 1.4; font-weight: 400; margin: 0; }
.track-info p { color: var(--color-muted); font-size: .75rem; line-height: 1.5; margin: .2rem 0 .3rem; }
h3, .track-info p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.platforms { margin-top: auto; display: flex; justify-content: flex-end; flex-wrap: nowrap; gap: 0; }
.platforms a { display: flex; flex: 0 0 28px; align-items: flex-end; justify-content: flex-end; width: 28px; height: 28px; opacity: .65; border-radius: 4px; }
.platforms img { width: 18px; height: 18px; }
.platforms a:hover, .platforms a:focus-visible { opacity: 1; }
footer { display: flex; justify-content: space-between; gap: 1rem; padding: 1.5rem 0 2rem; border-top: 1px solid var(--color-line); font-size: .75rem; }
@media (max-width: 480px) { .slider-controls { gap: .5rem 1rem; } .slider-controls > label { width: 7rem; } }

.platforms a { filter: grayscale(1); opacity: .2; }
.track:hover .platforms a, .track:focus-within .platforms a { opacity: .6; }
.track .platforms a:hover, .track .platforms a:focus-visible { filter: none; opacity: 1; }

:root:has(#links:not(:checked)) .platforms a { filter: none; opacity: .65; }
:root:has(#links:not(:checked)) .track:not(:hover):not(:focus-within) .platforms a:not([data-platform="bandcamp"]) { opacity: 0; pointer-events: none; }
:root:has(#links:not(:checked)) .track .platforms a:hover,
:root:has(#links:not(:checked)) .track .platforms a:focus-visible { opacity: 1; }
@media (hover: none) {
  :root:has(#links:not(:checked)) .track .platforms a:not([data-platform="bandcamp"]) { opacity: .65; pointer-events: auto; }
}

a { transition: color 80ms linear; }
.playlist-nav a { transition: color 80ms linear, border-color 80ms linear, background-color 80ms linear; }
.platforms a { transition: opacity 80ms linear, filter 80ms linear; }
.track { transition: height 100ms cubic-bezier(.2, .8, .2, 1); }
.cover { transition: width 100ms cubic-bezier(.2, .8, .2, 1); }
@media (prefers-reduced-motion: reduce) {
  a, .playlist-nav a, .platforms a, .track, .cover { transition: none; }
}