/* mondiscs — white label.
   One typeface throughout: monospace. A fixed-width face is what a white
   label, a distributor's list and a shop's inventory sheet all use, and
   committing to it entirely is a stronger signal than mixing it with a sans.
   Sleeves sit on the paper with a soft shadow rather than a hard outline —
   an outline boxed them in and fought the artwork. Everything else is flat
   and squared. Hierarchy comes from size, case and space alone: not from ink
   density, and not from anything canted or distressed. */

:root {
  /* Light: ink on paper. Every tint below is the ink at some strength, so
     dark mode -- the two swapped -- needs only these few lines redefined. */
  --paper: #f5f2ec;
  --ink: #1a1712;
  --ink-rgb: 26, 23, 18;
  /* Sleeves cast a warm shadow on paper; on dark, a plain one. */
  --shadow-rgb: 60, 45, 25;
  color-scheme: light;
  --faint: rgba(var(--ink-rgb), 0.55);
  --rule: rgba(var(--ink-rgb), 0.22);
  --rule-strong: rgba(var(--ink-rgb), 0.45);
  --body-text: rgba(var(--ink-rgb), 0.82);
  --hover: rgba(var(--ink-rgb), 0.04);

  --mono: ui-monospace, "SF Mono", Menlo, "DejaVu Sans Mono", "Liberation Mono",
    Consolas, monospace;
}

/* Dark: the paper and the ink swapped. Chosen in the header (a cookie the
   server reads, so no script), or else whatever the device asks for. */
:root[data-theme="dark"] {
  --paper: #1a1712;
  --ink: #f5f2ec;
  --ink-rgb: 245, 242, 236;
  --shadow-rgb: 0, 0, 0;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1a1712;
    --ink: #f5f2ec;
    --ink-rgb: 245, 242, 236;
    --shadow-rgb: 0, 0, 0;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

/* No link anywhere inherits the user agent's blue/purple. Specific link
   styles below still win; this only removes the default colour, so a link
   added later without a class is wrong-looking rather than garish. */
a { color: inherit; }

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

/* A column at least the height of the window, so on a short page the footer
   sits at the bottom of the screen rather than just under the content.
   svh where it is understood: on phones, vh counts the space under the
   browser's own toolbar and would push the footer behind it. */
.wrap {
  max-width: 860px; margin: 0 auto; padding: 32px 26px 28px;
  min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column;
}
.wrap > main { flex: 1 0 auto; padding-bottom: 64px; }

header.site {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 14px; border-bottom: 2px solid var(--ink); margin-bottom: 4px;
}
/* The wordmark is always lowercase — brand rule, no exceptions. Nothing that
   renders "mondiscs" may carry text-transform: uppercase or small-caps. */
header.site a.logo {
  font-size: 16px; font-weight: 500; letter-spacing: 0.16em;
  text-decoration: none; color: var(--ink); text-transform: lowercase;
}
header.site nav { display: flex; gap: 20px; }
header.site nav a {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--faint); text-decoration: none;
}
header.site nav a:hover { color: var(--ink); }
header.site { position: relative; }

/* Phones get the sections in a menu: a row of six does not fit. The basket
   stays in the header. A native disclosure (<details>), so it needs no script
   and is announced as expanded or collapsed. */
.nav-narrow { display: none; }
@media (max-width: 720px) {
  header.site:has(.nav-narrow) { flex-wrap: nowrap; align-items: center; }
  header.site .nav-wide { display: none; }
  .nav-narrow { display: flex; align-items: center; gap: 22px; }
  .nav-menu > summary {
    list-style: none; cursor: pointer; color: var(--ink); display: block; line-height: 0;
  }
  .nav-menu > summary::-webkit-details-marker { display: none; }
  .nav-menu svg { width: 24px; height: 24px; display: block; }
  .nav-menu .icon-close, .nav-menu[open] .icon-open { display: none; }
  .nav-menu[open] .icon-close { display: block; }
  /* Under the header's rule, across the page, over what is below. */
  header.site .nav-menu > nav {
    position: absolute; left: 0; right: 0; top: calc(100% + 2px); z-index: 20;
    flex-direction: column; gap: 0; background: var(--paper);
    border-bottom: 1px solid var(--rule-strong); padding: 4px 0 8px;
  }
  header.site .nav-menu > nav a {
    font-size: 13px; padding: 14px 0; color: var(--ink);
    border-bottom: 1px solid var(--rule);
  }
  header.site .nav-menu > nav a:last-child { border-bottom: 0; }
}
/* The basket as an icon, with how many records are in it on a small ink
   badge. Ink rather than the nav's faint grey: it is the one item that
   changes, and the count is the point. */
header.site a.nav-basket {
  position: relative; color: var(--ink); display: inline-flex; align-self: center;
}
.nav-basket svg { width: 20px; height: 20px; display: block; }
.nav-basket-count {
  position: absolute; top: -7px; right: -9px;
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: var(--ink); color: var(--paper);
  font-size: 10px; line-height: 16px; letter-spacing: 0; text-align: center;
}

/* The light/dark toggle: the moon offers dark, the sun offers light, and
   only the one that would change something is shown. */
.theme-toggle { display: inline-flex; align-self: center; margin: 0; }
.theme-toggle button {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--ink); line-height: 0;
}
.theme-toggle svg { width: 20px; height: 20px; display: block; }
.theme-toggle .to-light { display: none; }
:root[data-theme="dark"] .theme-toggle .to-light { display: block; }
:root[data-theme="dark"] .theme-toggle .to-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .to-light { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .to-dark { display: none; }
}

/* Under a hairline, like the header's rule but lighter. */
footer.site {
  display: flex; justify-content: flex-end; gap: 18px; padding-top: 16px;
  border-top: 1px solid var(--rule);
}
footer.site a { color: var(--ink); display: block; line-height: 0; }
footer.site a:hover { color: var(--faint); }
footer.site svg { width: 20px; height: 20px; fill: currentColor; }
/* The small print sits apart from the socials, on the left. */
footer.site .small-print { margin-right: auto; display: flex; gap: 18px; }
footer.site .small-print a {
  line-height: 20px;
  font-size: 11px; letter-spacing: 0.05em; color: var(--faint); text-decoration: none;
}
footer.site .small-print a:hover { color: var(--ink); }

/* catalogue index */
.empty-catalogue {
  font-size: 12px; letter-spacing: 0.05em; color: var(--faint); padding: 30px 0;
}
.release-row {
  display: grid; grid-template-columns: 68px 1fr 88px 104px;
  gap: 20px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--rule);
  text-decoration: none; color: var(--ink);
}
.release-row:hover { background: var(--hover); }
/* Shading rather than an outline: a hard border boxed the sleeve in and
   fought the artwork.
   Two layers, the way a real object shades. A key light high and to the left
   throws the cast shadow down and right, which carries the weight; under it,
   an unoffset ambient layer at half the alpha puts a whisper back on the top
   and left so the sleeve reads as sitting on the paper rather than sliding
   off it. Same recipe at both sizes, scaled. */
.release-row img {
  width: 68px; height: 68px; object-fit: cover;
  box-shadow:
    0 0 4px rgba(var(--shadow-rgb), 0.06),
    2px 3px 6px rgba(var(--shadow-rgb), 0.1);
  display: block;
}
.release-row .cat {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--faint);
}
.release-row .artist {
  font-size: 14px; letter-spacing: 0.02em; margin-top: 5px;
}
.release-row .title { font-size: 12px; color: var(--faint); margin-top: 2px; }
.release-row .fmt {
  font-size: 11px; letter-spacing: 0.06em; color: var(--faint);
}
.release-row .price { text-align: right; font-size: 14px; }
.release-row .status {
  text-align: right; font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--faint); margin-top: 5px;
}
/* On-sale is the quiet baseline above. Pre-order asserts itself at full ink,
   per the approved reference. Sold-out keeps the baseline mute rather than
   receding further — compounding opacity on the muted ink took it to roughly
   1.8:1 against the paper, and "Sold out" is the one word a shopper most
   needs to read. Its own copy carries the distinction. Forthcoming is
   announced like a pre-order, and with no price above it, it is all the
   column says. */
.release-row .status.status--pre-order,
.release-row .status.status--forthcoming { color: var(--ink); opacity: 1; }

/* release page */
.release { display: grid; grid-template-columns: 300px 1fr; gap: 40px; margin-top: 34px; }
.release img.sleeve {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  box-shadow:
    0 0 10px rgba(var(--shadow-rgb), 0.06),
    8px 10px 20px rgba(var(--shadow-rgb), 0.11);
  display: block;
}
.release .cat {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--faint);
}
.release h1 {
  font-size: 24px; letter-spacing: 0.01em; margin: 12px 0 0; font-weight: 500;
}
.release .title { font-size: 15px; color: var(--faint); margin-top: 5px; }
/* Monospace prose needs a shorter measure and more leading than a sans would. */
.description { margin-top: 20px; max-width: 52ch; }
.description-text {
  font-size: 13px; line-height: 1.85; color: var(--body-text);
  margin: 0; white-space: pre-line;
}

/* Collapsed to a fixed four lines so a long description cannot push the buy
   control off the fold, with a label to expand it. No script: the checkbox
   carries the state and stays focusable rather than display:none, so the
   control is reachable by keyboard. The template only emits the toggle when
   the text is long enough to clamp, so short descriptions get no dead
   "More". */
.description-toggle {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip-path: inset(50%);
}
.description-text--clamped {
  display: -webkit-box; -webkit-box-orient: vertical;
  -webkit-line-clamp: 4; line-clamp: 4;
  overflow: hidden;
}
.description-toggle:checked ~ .description-text--clamped {
  -webkit-line-clamp: unset; line-clamp: unset;
  overflow: visible;
}
.description-more {
  display: inline-block; margin-top: 10px; cursor: pointer;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--faint); border-bottom: 1px solid var(--rule);
}
.description-more:hover { color: var(--ink); border-bottom-color: var(--ink); }
.description-more::after { content: "More"; }
.description-toggle:checked ~ .description-more::after { content: "Less"; }
.description-toggle:focus-visible ~ .description-more {
  outline: 2px solid var(--ink); outline-offset: 3px;
}

.tracklist { margin-top: 26px; border-top: 1px solid var(--rule-strong); }
.tracklist .track {
  display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: baseline;
  padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: 13px;
}
.tracklist .track .side {
  font-size: 10px; letter-spacing: 0.12em; color: var(--faint);
}

.buy-row { margin-top: 28px; display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; }
select.country {
  font-family: inherit; font-size: 12px; padding: 0 12px;
  background: transparent; border: 1px solid var(--ink); color: var(--ink);
  border-radius: 0;
}
button.buy {
  background: var(--ink); color: var(--paper); border: 1px solid var(--ink);
  font-family: inherit;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 14px 28px; cursor: pointer; border-radius: 0;
}
button.buy:hover { background: transparent; color: var(--ink); }
button.buy[disabled] {
  background: transparent; color: var(--faint); border-color: var(--rule-strong);
  cursor: not-allowed;
}
/* Scarcity is the sales model, so the count is the second thing read after
   the artist — not fine print beside the button, which is what it was. The
   emphasis is typographic rather than a coloured urgency badge: a large mono
   numeral over a rule, which reads like the hand-numbered edition mark on the
   record itself and needs no accent colour the palette does not have. */
/* Sits under the buy row rather than beside it: a pre-ticked box is a thing
   to notice and untick, so hiding it in the furniture would undermine the
   basis it is collected on. */
.opt-in {
  flex-basis: 100%;
  display: flex; align-items: baseline; gap: 8px;
  margin-top: 4px; cursor: pointer;
  font-size: 11px; letter-spacing: 0.03em; color: var(--faint);
}
.opt-in input { margin: 0; accent-color: var(--ink); }
.opt-in:hover { color: var(--ink); }

.stock {
  margin-top: 32px; padding-top: 16px;
  border-top: 2px solid var(--ink);
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 12px;
}
.stock-remaining {
  font-size: 44px; line-height: 1; letter-spacing: -0.02em; font-weight: 500;
}
.stock-of {
  font-size: 20px; line-height: 1; color: var(--faint); margin-left: 2px;
}
.stock-label {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--faint);
}
/* Sold out states it plainly rather than shrinking away: the figure is still
   the point, it is just zero. */
.release .stock-remaining:first-child { color: var(--ink); }
.duties {
  font-size: 10px; letter-spacing: 0.05em; line-height: 1.8;
  color: var(--faint); margin-top: 12px; max-width: 56ch;
}
/* An error states what happened, in a box that reads like the rest of the
   page rather than an alert. */
.flash {
  border: 1px solid var(--ink); border-left-width: 4px;
  padding: 12px 14px; font-size: 12px; margin-top: 22px;
}
/* "Added to your basket", above the releases it came from. */
.flash.added { margin: 22px 0 10px; }
.flash.added a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--ink); margin-left: 6px; }

/* about page */
.about { margin-top: 34px; max-width: 52ch; }
/* Lowercase, not uppercase like the release-page h1 — this heading is the
   wordmark, and the wordmark is always lowercase. */
.about h1 {
  font-size: 24px; letter-spacing: 0.16em; text-transform: lowercase;
  margin: 0 0 20px; font-weight: 500;
}
.about .about-text { font-size: 13px; line-height: 1.85; color: var(--body-text); }
.about .about-contact {
  font-size: 11px; letter-spacing: 0.05em; color: var(--faint); margin-top: 24px;
}
.about .about-contact--next { margin-top: 6px; }

a:focus-visible, button:focus-visible, select:focus-visible {
  outline: 2px solid var(--ink); outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

@media (max-width: 720px) {
  .release { grid-template-columns: 1fr; gap: 24px; }
  .release-row { grid-template-columns: 54px 1fr 84px; }
  .release-row img { width: 54px; height: 54px; }
  .release-row .fmt { display: none; }
}

/* artists */
.artist-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 34px;
}
.artist-card { text-decoration: none; color: var(--ink); }
/* 6:5 matches the native ratio of a landscape press shot closely enough that
   the tile crops almost nothing. A portrait submission would crop harder —
   worth revisiting when there is a second artist to balance against. */
.artist-card img {
  width: 100%; aspect-ratio: 6 / 5; object-fit: cover; object-position: center;
  display: block;
  box-shadow:
    0 0 4px rgba(var(--shadow-rgb), 0.06),
    2px 3px 6px rgba(var(--shadow-rgb), 0.1);
}
.artist-card-name {
  margin-top: 12px; font-size: 13px; letter-spacing: 0.02em;
}
.artist-card:hover .artist-card-name { text-decoration: underline; }

.artist { display: grid; grid-template-columns: 300px 1fr; gap: 40px; margin-top: 34px; }
/* Uncropped: the press shot's composition carries deliberate negative space,
   so it keeps its own aspect ratio rather than being forced into the sleeve's
   square. */
.artist img.press-shot {
  width: 100%; height: auto; display: block;
  box-shadow:
    0 0 10px rgba(var(--shadow-rgb), 0.06),
    8px 10px 20px rgba(var(--shadow-rgb), 0.11);
}
.artist h1 {
  font-size: 24px; letter-spacing: 0.01em; margin: 0 0 4px; font-weight: 500;
}

.artist-releases { margin-top: 48px; }
.artist-releases h2 {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--faint); font-weight: 400;
  margin: 0 0 4px; padding-bottom: 12px; border-bottom: 1px solid var(--rule-strong);
}
/* The artist's name above every row on their own page is noise. */
.artist-releases .release-row .artist { display: none; }

/* Prose links: underlined with the rule colour rather than the UA's, and
   shared by anything sitting in body copy. */
.artist-link,
.duties a {
  color: inherit; text-decoration: none; border-bottom: 1px solid var(--rule);
}
.artist-link:hover,
.duties a:hover { border-bottom-color: var(--ink); }

@media (max-width: 720px) {
  .artist-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .artist { grid-template-columns: 1fr; gap: 24px; }
}

/* admon: the admin spike. Borrows the storefront's type and rules rather than
   inventing a second visual language for one user. */
.admon h1 { font-size: 24px; font-weight: 500; margin: 34px 0 18px; }
.admon-menu { list-style: none; padding: 0; }
.admon-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admon-table th {
  text-align: left; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--faint); font-weight: 400; border-bottom: 1px solid var(--rule-strong);
  padding: 0 12px 10px 0;
}
.admon-table td { padding: 9px 12px 9px 0; border-bottom: 1px solid var(--rule); }
.admon-form { display: flex; flex-direction: column; gap: 18px; max-width: 560px; }
.admon-form label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
}
.admon-hint { text-transform: none; letter-spacing: 0.02em; color: var(--faint); }
.admon-form input, .admon-form textarea, .admon-form select {
  font-family: inherit; font-size: 13px; padding: 8px 10px;
  background: transparent; border: 1px solid var(--ink); color: var(--ink);
  border-radius: 0; letter-spacing: normal; text-transform: none;
}
.admon-form button { align-self: flex-start; }
/* The refund page: a row per copy, its three answers side by side rather
   than stacked like a form's fields. */
.admon-refund { max-width: none; }
.admon-preview { max-width: 240px; height: auto; display: block; }
.admon-problems { border: 1px solid var(--ink); padding: 12px 12px 12px 30px; font-size: 13px; }
.admon-tracks { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.admon-tracks legend {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; padding: 0; margin-bottom: 6px;
}
.admon-track { display: grid; grid-template-columns: 60px 1fr 1.4fr 1fr 34px; gap: 8px; }
/* Without this a select is as wide as its longest option, and the row
   outgrows the form. */
.admon-track input, .admon-track select { min-width: 0; }
.admon-audio { margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--rule-strong); }
.admon-audio h2 { font-size: 18px; font-weight: 500; margin: 0 0 6px; }
.admon-note { font-size: 12px; color: var(--faint); margin: 0 0 14px; }
/* Two lines a track: what it is and what it has, then what can be done. */
.admon-audio-row {
  display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: baseline;
  padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 13px;
}
.admon-audio-row:first-of-type { border-top: 1px solid var(--rule); }
.admon-side { font-size: 10px; letter-spacing: 0.12em; color: var(--faint); margin-right: 6px; }
.admon-audio-file { font-size: 12px; color: var(--faint); text-align: right; }
.admon-audio-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.admon-audio-actions form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
/* A small ink-edged button, and the file picker's own button made to match:
   ::file-selector-button is the one part of a file input CSS can reach. */
.admon-button, .admon-audio input[type="file"]::file-selector-button {
  font-family: inherit; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  background: transparent; color: var(--ink); border: 1px solid var(--ink);
  border-radius: 0; padding: 6px 12px; cursor: pointer;
}
.admon-button:hover, .admon-audio input[type="file"]::file-selector-button:hover {
  background: var(--ink); color: var(--paper);
}
.admon-audio input[type="file"] { font-family: inherit; font-size: 12px; color: var(--faint); max-width: 100%; }
.admon-audio input[type="file"]::file-selector-button { margin-right: 10px; }
.admon-icon {
  font-family: inherit; font-size: 16px; line-height: 1; padding: 6px 0; width: 34px;
  background: transparent; border: 1px solid var(--ink); color: var(--ink);
  cursor: pointer; border-radius: 0;
}
.admon-icon:hover { background: var(--ink); color: var(--paper); }
/* Off-screen rather than display:none, which some browsers treat as no
   default button at all and fall back to the next one -- a remove button. */
.admon-default { position: absolute; left: -9999px; }
.admon-stock { margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--rule-strong); }
.admon-stock h2 { font-size: 18px; font-weight: 500; margin: 0 0 12px; }
.admon-stock .admon-form { margin-top: 22px; }
.admon-order h2 {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 400;
  color: var(--faint); margin: 32px 0 10px;
}
.admon-label { font-style: normal; font-size: 15px; line-height: 1.6; }
.admon-facts { display: grid; grid-template-columns: 140px 1fr; gap: 6px 12px; font-size: 13px; margin: 0; }
.admon-facts dt { color: var(--faint); }
.admon-facts dd { margin: 0; }
.admon-tabs, .admon-pages { display: flex; gap: 20px; margin: 0 0 18px; font-size: 12px; letter-spacing: 0.06em; }
.admon-tabs a, .admon-pages a { text-decoration: none; color: var(--faint); }
.admon-tabs a[aria-current="page"] { color: var(--ink); border-bottom: 2px solid var(--ink); }
.admon-pages { margin-top: 18px; }
.admon-history { margin-top: 18px; }
.admon-trail blockquote {
  margin: 6px 0 0; padding-left: 10px; border-left: 2px solid var(--rule-strong);
  color: var(--faint);
}
/* Rows the triggers write when the database was changed by hand. Inverted, so
   they cannot be read past. */
.admon-trail tr.admon-alarm td { background: var(--ink); color: var(--paper); }
.admon-trail tr.admon-alarm .admon-hint { color: var(--paper); }
/* The browser's own player, which is all a track has without script.
   player.js replaces these with the bar below. */
.track-audio { display: block; width: 100%; height: 34px; margin-top: 8px; }

/* The audio player: player.js, one of the site's two scripts. Fixed to the
   foot of the page in the site's own paper, ink and type -- the header's 2px
   rule above it, labels set like the nav. */
.player {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  background: var(--paper); border-top: 2px solid var(--ink);
}
.player[hidden] { display: none; }
.player-inner {
  max-width: 860px; margin: 0 auto; padding: 12px 26px;
  display: grid; grid-template-columns: auto 1fr auto; grid-template-areas:
    "controls now time"
    "seek seek seek";
  gap: 8px 18px; align-items: center;
}
.player-controls { grid-area: controls; display: flex; gap: 8px; align-self: center; }
/* Square buttons with the Buy button's 1px ink edge; play/pause filled in ink
   as the one that matters most. */
.player-controls button {
  width: 34px; height: 34px; padding: 0; display: grid; place-items: center;
  background: transparent; color: var(--ink); border: 1px solid var(--ink);
  border-radius: 0; cursor: pointer;
}
.player-controls button svg { width: 14px; height: 14px; fill: currentColor; }
.player-controls .player-main { background: var(--ink); color: var(--paper); }
.player-controls button:hover:not([disabled]) { background: var(--ink); color: var(--paper); }
.player-controls .player-main:hover { background: transparent; color: var(--ink); }
.player-controls button[disabled] { color: var(--rule-strong); border-color: var(--rule-strong); cursor: default; }
.player-controls .icon-pause, .player-controls [data-playing] .icon-play,
.track-play .icon-pause, .track-play[data-playing] .icon-play { display: none; }
.player-controls [data-playing] .icon-pause, .track-play[data-playing] .icon-pause { display: block; }
.player-controls button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
/* A row's play/pause: the bar's square button, smaller, so the tracklist
   keeps its rhythm. */
.track-play {
  width: 24px; height: 24px; padding: 0; display: grid; place-items: center; align-self: center;
  background: transparent; color: var(--ink); border: 1px solid var(--ink);
  border-radius: 0; cursor: pointer;
}
.track-play svg { width: 10px; height: 10px; fill: currentColor; }
.track-play:hover, .track-play[data-playing] { background: var(--ink); color: var(--paper); }
.track-play:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.player-now {
  grid-area: now; font-size: 13px; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.player-now .side { font-size: 10px; letter-spacing: 0.12em; color: var(--faint); margin-right: 6px; }
.player-time { grid-area: time; font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }

/* The progress line: a thin rule that fills with ink, and a small square to
   drag. The fill is a gradient at --progress, which player.js sets, because
   only Firefox can style the played part of a range natively. */
.player-seek {
  grid-area: seek; width: 100%; margin: 4px 0 0; height: 14px; cursor: pointer;
  -webkit-appearance: none; appearance: none; background: transparent;
}
.player-seek[disabled] { cursor: default; }
.player-seek::-webkit-slider-runnable-track {
  height: 2px;
  background: linear-gradient(to right, var(--ink) var(--progress, 0%), var(--rule) var(--progress, 0%));
}
.player-seek::-moz-range-track { height: 2px; background: var(--rule); }
.player-seek::-moz-range-progress { height: 2px; background: var(--ink); }
.player-seek::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 10px; height: 10px; margin-top: -4px;
  background: var(--ink); border: 0; border-radius: 0;
}
.player-seek::-moz-range-thumb { width: 10px; height: 10px; background: var(--ink); border: 0; border-radius: 0; }
.player-seek[disabled]::-webkit-slider-thumb { background: var(--rule-strong); }
.player-seek[disabled]::-moz-range-thumb { background: var(--rule-strong); }
.player-seek:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Room at the foot of the page for the bar, and the row playing marked. */
body.has-player .wrap { padding-bottom: 140px; }
.tracklist .track--current span { font-weight: 600; }

@media (max-width: 720px) {
  .player-inner {
    padding: 10px 16px; grid-template-columns: 1fr auto;
    grid-template-areas: "now time" "seek seek" "controls controls";
  }
  .player-controls { justify-content: center; gap: 14px; }
}

/* On a phone: the header wraps rather than running the wordmark into the
   nav, and admin's track rows put the title on a line of its own. */
@media (max-width: 720px) {
  header.site { flex-wrap: wrap; row-gap: 10px; }
  header.site nav { gap: 14px; flex-wrap: wrap; }
  .admon-track {
    grid-template-columns: 54px 1fr 34px;
    grid-template-areas: "side artist remove" "title title title" "remixer remixer remixer";
  }
  .admon-track input[name="track_side"] { grid-area: side; }
  .admon-track select[name="track_artist"] { grid-area: artist; }
  .admon-track select[name="track_remixer"] { grid-area: remixer; }
  .admon-track input[name="track_title"] { grid-area: title; }
  .admon-track button { grid-area: remove; }
  .admon-track { padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
}

/* Where an image has not been uploaded yet: a paper-coloured space holding
   its place, so a grid or a row keeps its shape. */
.sleeve--blank { aspect-ratio: 1; background: var(--paper); border: 1px solid var(--rule); width: 100%; }
.release-row .sleeve--blank { width: 64px; height: 64px; }
.artist-card-blank { width: 100%; aspect-ratio: 6 / 5; border: 1px solid var(--rule); }
.admon-audio .admon-preview { margin-bottom: 14px; }

/* newsletter: its own plain heading -- the about page's h1 is the wordmark,
   lowercase and letter-spaced, which here would read as a second logo. */
.newsletter { margin-top: 34px; max-width: 52ch; }
.newsletter h1 { font-size: 24px; font-weight: 500; margin: 0 0 14px; }
.newsletter .about-text { font-size: 13px; line-height: 1.85; color: var(--body-text); }
.newsletter-form { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; max-width: 420px; }
.newsletter-email { display: flex; flex-direction: column; gap: 6px; }
.newsletter-email input {
  font-family: inherit; font-size: 14px; padding: 10px 12px;
  background: transparent; border: 1px solid var(--ink); color: var(--ink); border-radius: 0;
}
.newsletter-email input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.newsletter-notice { font-size: 12px; color: var(--faint); margin: 0; }
.newsletter-form .buy { align-self: flex-start; }

/* privacy notice and terms: plain headings, like the newsletter's. */
.privacy, .terms { margin-top: 34px; max-width: 64ch; }
.privacy h1, .terms h1 { font-size: 24px; font-weight: 500; margin: 0 0 14px; }
.privacy h2, .terms h2 { font-size: 13px; font-weight: 600; margin: 28px 0 8px; }
.privacy p, .privacy li, .terms p, .terms li { font-size: 13px; line-height: 1.85; color: var(--body-text); }
.privacy ul, .terms ul { padding-left: 18px; margin: 0; }
.privacy code { font-family: inherit; }
.terms blockquote { margin: 8px 0 0; padding-left: 16px; border-left: 1px solid var(--rule); }
.privacy .updated, .terms .updated { font-size: 11px; letter-spacing: 0.05em; color: var(--faint); margin-top: 32px; }
.newsletter-trap { position: absolute; left: -9999px; }

/* basket */
.basket { margin-top: 34px; }
.basket h1 { font-size: 24px; letter-spacing: 0.01em; margin: 0 0 4px; font-weight: 500; }
.basket-note { font-size: 12px; color: var(--faint); margin: 10px 0 18px; max-width: 64ch; }
.basket-note a,
.basket-row a.artist { color: inherit; text-decoration: none; border-bottom: 1px solid var(--rule); }
.basket-note--held { color: var(--ink); }
.basket-problems { margin: 18px 0; padding-left: 30px; }
.basket-problems li + li { margin-top: 6px; }
/* The form's first button, so that Enter saves quantities; never seen. */
.basket-default { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.basket-row {
  display: grid; grid-template-columns: 64px 1fr auto 96px auto;
  gap: 18px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--rule);
}
.basket-row:first-of-type { border-top: 1px solid var(--rule); }
.basket-row img {
  width: 64px; height: 64px; object-fit: cover; display: block;
  box-shadow: 0 0 4px rgba(var(--shadow-rgb), 0.06), 2px 3px 6px rgba(var(--shadow-rgb), 0.1);
}
.basket-row .sleeve--blank { width: 64px; height: 64px; }
.basket-row .cat { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.basket-row a.artist { display: inline-block; font-size: 14px; margin-top: 5px; }
.basket-row .title { font-size: 12px; color: var(--faint); margin-top: 2px; }
.basket-row .ships { font-size: 10px; letter-spacing: 0.05em; color: var(--ink); margin-top: 6px; }
.basket-row .price { text-align: right; font-size: 14px; }
.basket-qty { display: flex; align-items: center; gap: 8px; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.basket-qty input {
  width: 56px; font-family: inherit; font-size: 14px; padding: 6px 8px;
  border: 1px solid var(--rule-strong); background: transparent; color: var(--ink); border-radius: 0;
}
.basket-remove {
  font-family: inherit; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  background: transparent; border: 0; padding: 4px 0; color: var(--faint); cursor: pointer;
  border-bottom: 1px solid var(--rule);
}
.basket-remove:hover { color: var(--ink); border-bottom-color: var(--ink); }
.basket-destination {
  display: flex; align-items: center; gap: 12px; margin-top: 28px;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint);
}
.basket-destination select.country { padding: 12px; }
.basket-total[hidden] { display: none; }
/* Hidden until its zone's country is selected; see basket.html. */
.basket-postage { display: none; font-size: 12px; letter-spacing: 0.03em; margin-top: 12px; }
.duties-lines { font-size: 13px; padding-left: 20px; margin: 18px 0; }

@media (max-width: 720px) {
  .basket-row {
    grid-template-columns: 54px 1fr auto;
    grid-template-areas: "sleeve info price" "sleeve qty remove";
    gap: 10px 14px;
  }
  .basket-row > a:first-child { grid-area: sleeve; align-self: start; }
  .basket-row img, .basket-row .sleeve--blank { width: 54px; height: 54px; }
  .basket-row > div:nth-of-type(1) { grid-area: info; }
  .basket-row .basket-qty { grid-area: qty; }
  .basket-row .price { grid-area: price; align-self: start; }
  .basket-row .basket-remove { grid-area: remove; justify-self: end; }
}

/* admin: merch variants, each with its stock and its own adjustment form */
.admon-variant { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.admon-stock-row { display: grid; grid-template-columns: 90px 1fr auto; gap: 8px; margin-top: 10px; }
.admon-stock-row input { min-width: 0; }

/* merch: the artists' grid of cards, with a price under each name */
.merch-card-price { font-size: 12px; color: var(--faint); margin-top: 2px; }
.merch-grid .sleeve--blank { width: 100%; aspect-ratio: 6 / 5; }
.merch-only { align-self: center; font-size: 12px; letter-spacing: 0.06em; }
