:root {
  --ink: #171917;
  --ink-soft: #464a45;
  --paper: #f5f4ef;
  --paper-bright: #fbfaf7;
  --stone: #e5e3da;
  --stone-dark: #cbc9be;
  --moss: #68715e;
  --saffron: #c46c2d;
  --max: 1280px;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  padding-bottom: 0;
}

body.player-open {
  padding-bottom: 84px;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shell {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 1000;
  padding: 10px 16px;
  color: var(--paper-bright);
  background: var(--ink);
}

.skip-link:focus {
  top: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  border-bottom: 1px solid var(--stone-dark);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 22px;
}

.brand-mark i {
  display: block;
  width: 2px;
  background: currentColor;
}

.brand-mark i:nth-child(1),
.brand-mark i:nth-child(5) { height: 8px; }
.brand-mark i:nth-child(2),
.brand-mark i:nth-child(4) { height: 16px; }
.brand-mark i:nth-child(3) { height: 22px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 12px;
  font-weight: 600;
}

.site-nav a {
  position: relative;
  padding: 25px 0 22px;
  color: var(--ink-soft);
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 16px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a.active::after {
  transform: scaleX(1);
}

.menu-button {
  display: none;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  border: 0;
  background: transparent;
  padding: 8px;
  cursor: pointer;
}

.icon-button svg {
  width: 22px;
  height: 22px;
}

.hero {
  border-bottom: 1px solid var(--stone-dark);
  background:
    linear-gradient(90deg, transparent 49.9%, rgba(82, 82, 74, 0.07) 50%, transparent 50.1%),
    radial-gradient(circle at 1px 1px, rgba(23, 25, 23, 0.09) 1px, transparent 0);
  background-size: auto, 24px 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 860px);
  align-items: end;
  min-height: 520px;
  padding-top: 80px;
  padding-bottom: 72px;
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--moss);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
}

h1 {
  max-width: 750px;
  margin-bottom: 28px;
  font-size: clamp(56px, 6.2vw, 92px);
  line-height: 0.94;
  letter-spacing: -0.045em;
}

h1 em {
  font-weight: 400;
  color: var(--saffron);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  padding: 0 24px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:active {
  transform: translateY(1px);
}

.button-dark {
  color: var(--paper-bright);
  background: var(--ink);
}

.button-dark:hover {
  background: var(--moss);
  border-color: var(--moss);
}

.button-light {
  color: var(--ink);
  background: transparent;
}

.button-light:hover {
  background: var(--stone);
}

.archive-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--stone-dark);
}

.archive-stats > div {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 28px;
  border-right: 1px solid var(--stone-dark);
}

.archive-stats > div:first-child {
  border-left: 1px solid var(--stone-dark);
}

.archive-stats strong {
  margin-bottom: 4px;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
}

.archive-stats strong.format-list {
  font-size: clamp(22px, 2.25vw, 34px);
  letter-spacing: -0.04em;
}

.archive-stats span {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.archive-statement {
  margin: 0 auto;
  padding: 28px;
  border-top: 1px solid var(--stone-dark);
  border-right: 1px solid var(--stone-dark);
  border-left: 1px solid var(--stone-dark);
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.3;
}

.archive-statement strong {
  color: var(--saffron);
  font-family: var(--sans);
  font-size: 0.78em;
  letter-spacing: 0.08em;
}

.section {
  padding-top: 112px;
  padding-bottom: 120px;
}

.section-heading {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 52px;
}

.section-heading h2,
.catalog-head h2 {
  max-width: 720px;
  margin-bottom: 0;
  font-size: clamp(42px, 4.3vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.section-heading > p {
  max-width: 470px;
  margin-bottom: 4px;
  color: var(--ink-soft);
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 36px 22px;
}

.collection-card {
  grid-column: span 4;
  min-width: 0;
}

.collection-card:first-child:last-child {
  grid-column: span 12;
}

.fresh-start-card {
  grid-column: span 12;
  max-width: 780px;
}

.collection-card {
  grid-column: span 4;
}

.fresh-start-card:nth-child(1) {
  grid-column: span 12;
}

.collection-art {
  position: relative;
  /* All library artwork ships as 500×500 — keep the frame square. */
  aspect-ratio: 1 / 1;
  margin-bottom: 20px;
  overflow: hidden;
  background: var(--stone);
}

.collection-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(0.92);
  transition: filter 500ms ease, transform 700ms ease;
}

.collection-card:hover .collection-art img {
  filter: grayscale(0.25) contrast(0.95);
  transform: scale(1.025);
}

.library-art {
  display: grid;
  place-items: center;
  color: var(--paper-bright);
  background:
    radial-gradient(circle at 72% 18%, rgba(211, 140, 46, 0.38), transparent 28%),
    radial-gradient(circle at 20% 80%, rgba(80, 100, 65, 0.42), transparent 30%),
    linear-gradient(135deg, #171917, #343727);
}

.library-art::before {
  position: absolute;
  inset: 22px;
  content: "";
  border: 1px solid rgba(245, 244, 239, 0.18);
}

.library-art-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  text-align: center;
}

.library-art-inner span {
  color: var(--saffron);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.library-art-inner strong {
  font-family: var(--serif);
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 400;
  letter-spacing: -0.05em;
}

.library-art-inner small {
  color: rgba(245, 244, 239, 0.72);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.empty-collection-art {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.4vw, 16px);
  border: 1px dashed var(--stone-dark);
  background:
    radial-gradient(circle at 25% 25%, rgba(117, 83, 54, 0.16), transparent 32%),
    linear-gradient(135deg, rgba(245, 244, 239, 0.8), rgba(207, 199, 184, 0.55));
}

.empty-collection-art span {
  width: clamp(9px, 1.6vw, 18px);
  height: clamp(48px, 8vw, 120px);
  background: var(--ink);
  opacity: 0.18;
}

.empty-collection-art span:nth-child(2),
.empty-collection-art span:nth-child(4) {
  height: clamp(84px, 12vw, 160px);
  opacity: 0.26;
}

.empty-collection-art span:nth-child(3) {
  height: clamp(120px, 16vw, 210px);
  opacity: 0.34;
}

.collection-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 7px 9px;
  color: var(--ink);
  background: rgba(245, 244, 239, 0.9);
  border: 1px solid rgba(23, 25, 23, 0.25);
  backdrop-filter: blur(6px);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.collection-preview {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--paper-bright);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 50%;
  cursor: pointer;
}

.collection-preview:hover {
  color: var(--ink);
  background: var(--paper-bright);
}

.collection-preview svg {
  width: 17px;
  margin-left: 2px;
  fill: currentColor;
  stroke: none;
}

.collection-meta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 10px;
  color: var(--moss);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.collection-card h3 {
  margin-bottom: 8px;
  font-size: 29px;
  line-height: 1.1;
}

.collection-card p {
  max-width: 460px;
  margin-bottom: 15px;
  color: var(--ink-soft);
  font-size: 13px;
}

.collection-detail {
  display: block;
  padding-top: 13px;
  border-top: 1px solid var(--stone-dark);
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.collection-card-foot {
  display: grid;
  gap: 14px;
}

.collection-buy {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 15px;
  color: var(--paper-bright);
  background: var(--ink);
  border: 1px solid var(--ink);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease;
}

.collection-buy:hover {
  color: var(--ink);
  background: transparent;
}

.catalog-section {
  padding: 108px 0 128px;
  color: var(--paper-bright);
  background: var(--ink);
}

.catalog-head {
  display: grid;
  grid-template-columns: 1fr minmax(340px, 0.72fr);
  gap: 64px;
  align-items: end;
  margin-bottom: 48px;
}

.catalog-head .eyebrow {
  color: #a8ad9f;
}

.search-field {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #777b74;
}

.search-field:focus-within {
  border-color: var(--paper-bright);
}

.search-field svg {
  width: 20px;
}

.search-field input {
  min-width: 0;
  color: inherit;
  background: transparent;
  border: 0;
  outline: 0;
}

.search-field input::placeholder {
  color: #9a9d97;
}

.search-field kbd {
  padding: 3px 6px;
  color: #bec0bb;
  border: 1px solid #666a64;
  font-family: var(--sans);
  font-size: 9px;
}

.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  border: 1px solid #666a64;
  color: #c7cac4;
  background: transparent;
  padding: 8px 13px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.filter-pill:hover,
.filter-pill.active {
  color: var(--ink);
  background: var(--paper-bright);
  border-color: var(--paper-bright);
}

.result-count {
  color: #aeb1aa;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.track-table {
  border-top: 1px solid #6e716c;
}

.track-table-head,
.track-row {
  display: grid;
  grid-template-columns: 72px minmax(270px, 1.4fr) minmax(170px, 0.72fr) minmax(160px, 0.62fr) 72px;
  gap: 22px;
  align-items: center;
}

.track-table-head {
  min-height: 54px;
  color: #aeb1aa;
  border-bottom: 1px solid #50534f;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.track-row {
  position: relative;
  min-height: 106px;
  border-bottom: 1px solid #444743;
  transition: background 180ms ease;
}

.track-row:hover,
.track-row.active {
  background: #242724;
}

.track-row.active::before {
  position: absolute;
  top: -1px;
  bottom: -1px;
  left: -10px;
  width: 2px;
  content: "";
  background: var(--saffron);
}

.track-play {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid #777b74;
  border-radius: 50%;
  color: var(--paper-bright);
  background: transparent;
  cursor: pointer;
}

.track-buy {
  width: 48px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  color: var(--ink);
  background: var(--paper-bright);
  border: 1px solid var(--paper-bright);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease;
}

.track-buy:hover {
  color: var(--paper-bright);
  background: transparent;
}

.track-play:hover,
.track-row.active .track-play {
  color: var(--ink);
  background: var(--paper-bright);
  border-color: var(--paper-bright);
}

.track-play svg {
  width: 15px;
  margin-left: 2px;
  fill: currentColor;
  stroke: none;
}

.track-play .pause-bars {
  display: none;
  margin-left: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
}

.track-row.playing .track-play .play-triangle {
  display: none;
}

.track-row.playing .track-play .pause-bars {
  display: block;
}

.track-title strong {
  display: block;
  margin-bottom: 7px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
}

.track-title span,
.track-place span,
.track-ucs span {
  display: block;
  overflow: hidden;
  color: #aeb1aa;
  font-size: 9px;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-place strong,
.track-ucs strong {
  display: block;
  margin-bottom: 3px;
  font-size: 11px;
  font-weight: 600;
}

.track-duration {
  font-variant-numeric: tabular-nums;
  color: #d6d7d3;
  font-size: 11px;
}

.empty-state {
  padding: 80px 24px;
  text-align: center;
  border-bottom: 1px solid #444743;
}

.empty-state p {
  font-family: var(--serif);
  font-size: 28px;
}

.empty-state button {
  color: var(--paper-bright);
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  cursor: pointer;
}

.contributor-band {
  padding: 72px 0;
  background: var(--stone);
  border-top: 1px solid var(--stone-dark);
}

.contributor-grid {
  display: flex;
  justify-content: center;
}

.contributor-grid-simple .button {
  min-width: min(100%, 280px);
}

.site-footer {
  padding: 72px 0 28px;
  color: #e9e8e2;
  background: #0e0f0e;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 0.7fr 0.7fr;
  gap: 48px;
  padding-bottom: 64px;
}

.footer-brand {
  margin-bottom: 22px;
}

.footer-grid p,
.footer-grid span {
  color: #9ea099;
  font-size: 12px;
}

.footer-grid h3 {
  margin: 0 0 18px;
  color: #9ea099;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.footer-grid > div:not(:first-child) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}

.footer-grid a,
.text-button {
  font-size: 12px;
}

.text-button {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.footer-grid a:hover,
.text-button:hover {
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  color: #777a75;
  border-top: 1px solid #2d2f2d;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.player {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  min-height: 84px;
  display: grid;
  grid-template-columns: 52px minmax(170px, 0.5fr) auto minmax(200px, 1fr) auto 42px 42px;
  gap: 16px;
  align-items: center;
  padding: 14px max(24px, calc((100vw - var(--max)) / 2));
  color: var(--ink);
  background: var(--paper-bright);
  border-top: 1px solid var(--ink);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.08);
}

.player[hidden] {
  display: none;
}

.player-play {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--paper-bright);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 50%;
  cursor: pointer;
}

.player-play svg {
  width: 16px;
  fill: currentColor;
  stroke: none;
}

.player-play .pause-icon {
  display: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
}

.player.playing .play-icon { display: none; }
.player.playing .pause-icon { display: block; }

.player-meta {
  min-width: 0;
}

.player-meta strong,
.player-meta span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-meta strong {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
}

.player-meta span {
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.player-time {
  width: 34px;
  color: var(--ink-soft);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.player-progress {
  width: 100%;
  height: 2px;
  appearance: none;
  background: linear-gradient(to right, var(--ink) var(--progress, 0%), var(--stone-dark) var(--progress, 0%));
  cursor: pointer;
}

.player-progress::-webkit-slider-thumb {
  width: 12px;
  height: 12px;
  appearance: none;
  background: var(--ink);
  border-radius: 50%;
}

.contributor-dialog {
  width: min(600px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  padding: 48px;
  color: var(--ink);
  background: var(--paper-bright);
  border: 1px solid var(--ink);
}

.contributor-dialog::backdrop {
  background: rgba(15, 16, 15, 0.72);
  backdrop-filter: blur(5px);
}

.contributor-dialog h2 {
  margin-bottom: 14px;
  font-size: 45px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.dialog-lede {
  color: var(--ink-soft);
  font-size: 13px;
}

.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
}

.contributor-dialog form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 30px;
}

.contributor-dialog label {
  display: grid;
  gap: 7px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contributor-dialog label:last-of-type,
.contributor-dialog form .button,
.form-status {
  grid-column: 1 / -1;
}

.contributor-dialog input,
.contributor-dialog textarea {
  width: 100%;
  border: 1px solid var(--stone-dark);
  border-radius: 0;
  background: var(--paper);
  padding: 11px 12px;
  outline: 0;
  resize: vertical;
  font-size: 13px;
  text-transform: none;
  letter-spacing: normal;
}

.contributor-dialog input:focus,
.contributor-dialog textarea:focus {
  border-color: var(--ink);
}

.form-status {
  min-height: 20px;
  margin: 0;
  color: var(--moss);
  font-size: 12px;
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: reveal 700ms ease forwards;
}

@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}

:focus-visible {
  outline: 2px solid var(--saffron);
  outline-offset: 3px;
}

@media (max-width: 1000px) {
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 94px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .collection-card,
  .collection-card:nth-child(1),
  .collection-card:nth-child(2) {
    grid-column: span 6;
  }

  .collection-card:last-child {
    grid-column: 4 / span 6;
  }

  .collection-card:first-child:last-child {
    grid-column: span 12;
  }

  .catalog-head {
    grid-template-columns: 1fr;
  }

  .track-table-head {
    display: none;
  }

  .track-row {
    grid-template-columns: 54px minmax(220px, 1.2fr) minmax(160px, 0.7fr) 64px;
  }

  .track-ucs {
    display: none;
  }

  .track-table {
    border-top: 1px solid #50534f;
  }

  .player {
    grid-template-columns: 48px minmax(150px, 0.6fr) minmax(160px, 1fr) 42px 42px;
  }

  .player-time {
    display: none;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(calc(100% - 32px), var(--max));
  }

  .header-inner {
    grid-template-columns: 1fr auto;
    min-height: 64px;
  }

  .menu-button {
    display: inline-grid;
  }

  .site-nav {
    position: absolute;
    top: 64px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 18px;
    background: var(--paper);
    border-bottom: 1px solid var(--stone-dark);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 13px 0;
  }

  .site-nav a::after {
    display: none;
  }

  h1 {
    font-size: clamp(52px, 16vw, 72px);
  }

  .hero-grid {
    gap: 52px;
    padding-top: 76px;
    padding-bottom: 48px;
  }

  .hero-actions .button {
    flex: 1;
  }

  .archive-stats {
    grid-template-columns: 1fr 1fr;
  }

  .archive-stats > div:nth-child(odd) {
    border-left: 1px solid var(--stone-dark);
  }

  .archive-stats > div {
    min-height: 108px;
    border-bottom: 1px solid var(--stone-dark);
    padding: 18px;
  }

  .archive-statement {
    padding: 22px 18px;
    border-top: 0;
    font-size: 20px;
  }

  .section,
  .catalog-section {
    padding-top: 80px;
    padding-bottom: 88px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-heading h2,
  .catalog-head h2 {
    font-size: 44px;
  }

  .collection-grid {
    grid-template-columns: 1fr;
  }

  .collection-card,
  .collection-card:nth-child(1),
  .collection-card:nth-child(2),
  .collection-card:last-child {
    grid-column: 1;
  }

  .collection-art {
    aspect-ratio: 1 / 1;
  }

  .filter-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .filter-pills {
    flex-wrap: nowrap;
    max-width: calc(100vw - 32px);
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .filter-pill {
    flex: 0 0 auto;
  }

  .track-row {
    grid-template-columns: 48px minmax(0, 1fr) 45px;
    gap: 12px;
    min-height: 94px;
  }

  .track-place,
  .track-ucs {
    display: none;
  }

  .track-title strong {
    font-size: 18px;
  }

  .track-title span {
    max-width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .player {
    grid-template-columns: 44px minmax(0, 1fr) 38px;
    gap: 10px;
    min-height: 76px;
    padding: 10px 14px;
  }

  .player-progress,
  .player-volume,
  .player-time {
    display: none;
  }

  .contributor-dialog {
    padding: 42px 22px 26px;
  }

  .contributor-dialog h2 {
    font-size: 38px;
  }

  .contributor-dialog form {
    grid-template-columns: 1fr;
  }

  .contributor-dialog label,
  .contributor-dialog label:last-of-type,
  .contributor-dialog form .button,
  .form-status {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============ Sonic map ============ */
.sonic-map-section {
  padding-top: 0;
}

.sonic-map-stage {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--stone-dark);
  background: var(--paper-bright);
}

.sonic-map-canvas {
  width: 100%;
  height: 68vh;
  min-height: 500px;
  max-height: 760px;
  background: #e8e9e2;
}

.sonic-map-overlay {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 500;
  width: min(280px, calc(100% - 36px));
  padding: 18px 20px;
  border: 1px solid var(--stone-dark);
  background: color-mix(in srgb, var(--paper-bright) 90%, transparent);
  backdrop-filter: blur(10px);
}

.sonic-map-title {
  margin: 0 0 2px;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.sonic-map-count {
  margin: 0;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sonic-map-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.sonic-map-pill {
  border: 1px solid var(--stone-dark);
  color: var(--ink-soft);
  background: transparent;
  padding: 7px 12px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 160ms ease;
}

.sonic-map-pill:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.sonic-map-pill.active {
  color: var(--paper-bright);
  background: var(--ink);
  border-color: var(--ink);
}

.sonic-map-toolbar {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.sonic-map-style {
  display: inline-flex;
  border: 1px solid var(--stone-dark);
  background: color-mix(in srgb, var(--paper-bright) 90%, transparent);
  backdrop-filter: blur(10px);
}

.sonic-map-style button {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  padding: 8px 14px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.sonic-map-style button.active {
  color: var(--paper-bright);
  background: var(--ink);
}

.sonic-map-reset {
  border: 1px solid var(--stone-dark);
  background: color-mix(in srgb, var(--paper-bright) 90%, transparent);
  backdrop-filter: blur(10px);
  color: var(--ink-soft);
  padding: 8px 14px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.sonic-map-reset:hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* Pins */
.sonic-pin {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--pin, var(--saffron));
  border: 2px solid var(--paper-bright);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--pin, var(--saffron)) 22%, transparent),
    0 4px 14px rgba(23, 25, 23, 0.25);
  position: relative;
  transition: transform 200ms ease;
}

.sonic-pin::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--pin, var(--saffron)) 35%, transparent) 0%, transparent 70%);
  animation: sonic-pin-pulse 2.4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes sonic-pin-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(2.3);
    opacity: 0;
  }
}

.leaflet-marker-icon:hover .sonic-pin {
  transform: scale(1.3);
}

/* Hover preview */
.sonic-hover {
  position: absolute;
  z-index: 600;
  pointer-events: none;
  min-width: 210px;
  max-width: 240px;
  padding: 14px 16px;
  border: 1px solid var(--stone-dark);
  background: var(--paper-bright);
  box-shadow: 0 16px 40px rgba(23, 25, 23, 0.18);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.sonic-hover.show {
  opacity: 1;
  transform: translateY(0);
}

.sonic-hover-cat {
  margin: 0 0 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.sonic-hover h4 {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.1;
}

.sonic-hover-place {
  margin: 0 0 10px;
  color: var(--ink-soft);
  font-size: 11px;
}

.sonic-hover-wave {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 20px;
}

.sonic-hover-wave span {
  flex: 1;
  animation: sonic-wave 1.1s ease-in-out infinite;
  transform-origin: bottom;
}

@keyframes sonic-wave {
  0%,
  100% {
    transform: scaleY(0.25);
  }
  50% {
    transform: scaleY(1);
  }
}

/* Popup */
.sonic-popup .leaflet-popup-content-wrapper {
  border-radius: 0;
  border: 1px solid var(--stone-dark);
  background: var(--paper-bright);
  color: var(--ink);
  box-shadow: 0 20px 60px rgba(23, 25, 23, 0.22);
}

.sonic-popup .leaflet-popup-content {
  margin: 16px 18px;
  min-width: 230px;
  font-family: var(--sans);
  line-height: 1.5;
}

.sonic-popup .leaflet-popup-tip {
  background: var(--paper-bright);
  border: 1px solid var(--stone-dark);
}

.sonic-popup-meta {
  margin: 0 0 6px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.sonic-popup-card h3 {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.sonic-popup-place {
  margin: 0 0 8px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sonic-popup-blurb {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 13px;
}

.sonic-popup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sonic-popup-browse,
.sonic-popup-buy {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.sonic-popup-browse {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper-bright);
}

.sonic-popup-browse:hover {
  background: var(--moss);
  border-color: var(--moss);
}

.sonic-popup-buy {
  border: 1px solid var(--stone-dark);
  background: transparent;
  color: var(--ink);
}

.sonic-popup-buy:hover {
  background: var(--stone);
}

/* Leaflet control tweaks to match the site */
.sonic-map-stage .leaflet-control-zoom {
  border: 1px solid var(--stone-dark) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.sonic-map-stage .leaflet-control-zoom a {
  border-radius: 0 !important;
  color: var(--ink) !important;
  background: var(--paper-bright) !important;
}

.sonic-map-stage .leaflet-control-attribution {
  font-size: 9px !important;
  background: color-mix(in srgb, var(--paper-bright) 80%, transparent) !important;
}

@media (max-width: 720px) {
  .sonic-map-canvas {
    height: 60vh;
    min-height: 420px;
  }

  .sonic-map-toolbar {
    top: auto;
    bottom: 18px;
    flex-direction: row;
    align-items: center;
  }
}

.sonic-map-overlay,
.sonic-map-toolbar {
  transition: opacity 200ms ease;
}

.sonic-map-stage.popup-open .sonic-map-overlay,
.sonic-map-stage.popup-open .sonic-map-toolbar {
  opacity: 0;
  pointer-events: none;
}

/* Library sample player (SoundCloud embed) */
.collection-sample {
  margin: 4px 0 16px;
  border: 1px solid var(--stone-dark);
  background: var(--stone);
}

.collection-sample iframe {
  display: block;
  width: 100%;
}

/* ============ Library track-list dialog ============ */
.collection-card[data-open-library] {
  cursor: pointer;
}

.collection-tracks-button {
  border: 1px solid var(--stone-dark);
  background: transparent;
  color: var(--ink);
  padding: 8px 14px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.collection-tracks-button:hover {
  background: var(--stone);
  border-color: var(--ink);
}

.library-dialog {
  width: min(980px, calc(100vw - 28px));
  max-height: min(86vh, 940px);
  border: 1px solid var(--stone-dark);
  padding: 0;
  color: var(--ink);
  background: var(--paper-bright);
}

.library-dialog::backdrop {
  background: rgba(23, 25, 23, 0.55);
  backdrop-filter: blur(3px);
}

.library-dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: var(--paper-bright);
}

.library-dialog-body {
  max-height: calc(86vh - 2px);
  overflow-y: auto;
  padding: 32px;
}

.library-dialog-head {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 28px;
}

.library-dialog-head img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border: 1px solid var(--stone-dark);
}

.library-dialog-head .eyebrow {
  margin-bottom: 10px;
}

.library-dialog-head h2 {
  margin-bottom: 8px;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.library-dialog-detail {
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.library-dialog-desc {
  max-width: 60ch;
  margin-bottom: 16px;
  color: var(--ink-soft);
  font-size: 13.5px;
}

.library-tracks {
  border-top: 1px solid var(--stone-dark);
}

.library-track {
  display: grid;
  grid-template-columns: 34px 1.1fr 1.5fr 0.8fr;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--stone);
  font-size: 12.5px;
  line-height: 1.5;
}

.library-track-head {
  padding: 10px 0;
  border-bottom: 1px solid var(--stone-dark);
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.library-track .lt-num {
  color: var(--ink-soft);
  font-size: 11px;
}

.library-track .lt-name strong {
  display: block;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 4px;
}

.library-track .lt-name span {
  display: block;
  color: var(--ink-soft);
  font-size: 10.5px;
  word-break: break-word;
}

.library-track .lt-desc {
  margin: 0;
  color: var(--ink-soft);
}

.library-track .lt-format strong {
  display: block;
  font-size: 11px;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.library-track .lt-format span {
  display: block;
  color: var(--ink-soft);
  font-size: 10.5px;
}

@media (max-width: 720px) {
  .library-dialog-body {
    padding: 22px 16px;
  }

  .library-dialog-head {
    grid-template-columns: 96px 1fr;
    gap: 16px;
  }

  .library-dialog-head img {
    width: 96px;
    height: 96px;
  }

  .library-track {
    grid-template-columns: 26px 1fr;
    gap: 8px 12px;
  }

  .library-track-head {
    display: none;
  }

  .library-track .lt-desc,
  .library-track .lt-format {
    grid-column: 2;
  }
}
