/* PS-Music catalogue
   ---------------------------------------------------------------------------
   The visual language comes from printed choral scores: the voicing stamp
   (SATB, SSAA) set in mono and boxed like a mark on a score cover, roman
   difficulty grades, and durations written with primes (3'50").
   Palette is Faroese: lichen paper, basalt ink, maritime blue, and a muted
   flag red reserved for one job only -- audio.
   ------------------------------------------------------------------------- */

:root {
  --paper: #e9ebe4;
  --paper-raised: #f4f5f0;
  --ink: #14181a;
  --ink-soft: #59625f;
  --rule: #c9cdc2;
  --rule-soft: #dcdfd6;
  --sea: #14495e;
  --sea-bright: #1d6a86;
  --signal: #a83a32;

  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --data: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --measure: 62ch;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14181a;
    --paper-raised: #1b2124;
    --ink: #e6e9e1;
    --ink-soft: #98a29e;
    --rule: #2f3639;
    --rule-soft: #242b2e;
    --sea: #8dc0d2;
    --sea-bright: #a9d3e2;
    --signal: #e0837a;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Any author-set `display` outranks the browser's own `[hidden]` rule, so
   `.work-row { display: grid }` would otherwise keep filtered-out rows on
   screen. Everything that hides itself in this file relies on this. */
[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.55;
  font-feature-settings: "ss02";
}

a {
  color: var(--sea);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--sea-bright);
}

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

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 500;
  font-variation-settings: "SOFT" 30, "WONK" 1;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
}

/* --- The voicing stamp ---------------------------------------------------
   Every work gets one. Choral works show their real voicing; everything else
   shows a code derived from its instrumentation, so the column stays scannable.
   ------------------------------------------------------------------------ */

.stamp {
  display: inline-block;
  font-family: var(--data);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-indent: 0.14em;
  line-height: 1;
  padding: 0.42em 0.5em 0.38em;
  border: 1px solid currentColor;
  color: var(--sea);
  white-space: nowrap;
  text-transform: uppercase;
}

.stamp[data-kind="derived"] {
  color: var(--ink-soft);
  border-style: dashed;
}

.stamp-lg {
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  padding: 0.6em 0.7em 0.55em;
  border-width: 1.5px;
}

/* --- Shell --------------------------------------------------------------- */

.shell {
  max-width: 78rem;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.masthead {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.masthead-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  align-items: baseline;
  padding-block: 1rem;
}

.wordmark {
  font-family: var(--data);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}

.masthead nav {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.875rem;
}

.masthead nav a {
  color: var(--ink-soft);
  text-decoration: none;
}

.masthead nav a:hover,
.masthead nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
}

/* --- Front page ----------------------------------------------------------
   A photograph, the name, and then the ways in: forces, six recordings, the
   man, the categories, the records. The catalogue itself lives at /works/.
   ------------------------------------------------------------------------ */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: min(34rem, 72vh);
  padding-block: clamp(4rem, 12vw, 8rem) clamp(2rem, 6vw, 4rem);
  overflow: hidden;
  background: var(--ink);
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}

/* The photograph is a low sun over the town: dark at the foot, bright in the
   middle. The scrim keeps the type legible over both. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to top,
    rgb(6 9 10 / 0.92) 0%,
    rgb(6 9 10 / 0.72) 38%,
    rgb(6 9 10 / 0.35) 70%,
    rgb(6 9 10 / 0.2) 100%
  );
}

/* The hero is the one place the palette is fixed: it sits on a photograph, so
   it does not follow the light or dark setting. */
.hero-inner {
  color: #f2f4ee;
  width: 100%;
}

.hero-inner .eyebrow {
  color: #c3cbc4;
}

.hero-inner h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-variation-settings: "SOFT" 40, "WONK" 1;
  margin-block: 0.5rem 0;
}

.hero-lede {
  max-width: 40ch;
  margin: 1rem 0 0;
  font-size: 1.0625rem;
  color: #dee3db;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button.ghost {
  background: transparent;
  color: #f2f4ee;
  border-color: currentColor;
}

.button.ghost:hover {
  background: #f2f4ee;
  border-color: #f2f4ee;
  color: #14181a;
}

/* The catalogue in four numbers, set like the figures on a work page. */
.figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding-block: 2rem;
  border-bottom: 1px solid var(--rule);
}

.figures dt {
  font-family: var(--data);
  font-size: 1.375rem;
  font-variant-numeric: tabular-nums;
}

.figures dd {
  margin: 0.2rem 0 0;
  font-family: var(--data);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.home-section {
  padding-block: clamp(2.5rem, 6vw, 4rem);
  border-bottom: 1px solid var(--rule-soft);
}

.home-section:last-child {
  border-bottom: 0;
  padding-bottom: 5rem;
}

.home-section > h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
}

.section-lede {
  max-width: 52ch;
  margin: 0.6rem 0 0;
  color: var(--ink-soft);
}

.more {
  margin: 1.5rem 0 0;
  font-size: 0.9375rem;
}

.home-section .shortcuts {
  margin-top: 1.5rem;
}

/* Ready-made searches. The stamps above them answer "what forces have I got";
   these answer "what am I looking for", which is the other half of arriving. */
.starters-lede {
  margin: 2.5rem 0 0;
  font-family: var(--data);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.starters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.starter {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55em;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--rule);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9375rem;
}

.starter:hover {
  border-color: var(--sea);
  color: var(--sea);
  background: var(--paper-raised);
}

.starter .count,
.poets .count {
  font-family: var(--data);
  font-size: 0.75rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

/* The poets, as a paragraph of names rather than a grid of cards: it is a list
   of people, and it should read like one. */
.poets {
  margin: 1.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-family: var(--display);
  font-size: 1.125rem;
}

.poets a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}

.poets a:hover {
  color: var(--sea);
  border-color: var(--sea);
}

/* Six featured pieces, each with a player. */
.features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.5rem;
  margin: 2rem 0 0;
  padding: 0;
}

.feature {
  padding: 1.25rem;
  border: 1px solid var(--rule);
  background: var(--paper-raised);
}

.feature h3 {
  font-size: 1.25rem;
  margin-block: 0.75rem 0;
}

.feature h3 a {
  color: var(--ink);
  text-decoration: none;
}

.feature h3 a:hover {
  color: var(--sea);
  text-decoration: underline;
}

.feature .work-meta {
  margin-top: 0.3rem;
}

.feature .notes {
  margin: 0.6rem 0 0;
  font-size: 0.9375rem;
}

.feature audio {
  width: 100%;
  height: 2.25rem;
  margin-top: 1rem;
}

.home-about {
  padding-block: clamp(2.5rem, 6vw, 4rem);
}

.home-about .prose h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  margin-bottom: 1rem;
}

.cat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.75rem;
  margin-top: 2rem;
}

.cat-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem;
  border: 1px solid var(--rule);
  text-decoration: none;
  color: var(--ink);
}

.cat-card:hover {
  border-color: var(--sea);
  background: var(--paper-raised);
}

.cat-count {
  font-family: var(--data);
  font-size: 1.5rem;
  color: var(--sea);
  font-variant-numeric: tabular-nums;
}

.cat-label {
  font-size: 0.9375rem;
  line-height: 1.3;
}

.cover-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
  gap: 0.75rem;
  margin-top: 2rem;
}

.cover-row .cover {
  display: block;
  padding: 0.3rem;
}

.cover-row .cover:hover {
  border-color: var(--sea);
}

.home-section .buy {
  margin-top: 0;
}

/* --- Catalogue header ---------------------------------------------------- */

.intro {
  padding-block: clamp(2.5rem, 7vw, 5rem) 2rem;
  border-bottom: 1px solid var(--rule);
}

.intro h1 {
  font-size: clamp(2.75rem, 9vw, 5.5rem);
  font-variation-settings: "SOFT" 40, "WONK" 1;
  margin-bottom: 0.5rem;
}

.intro p {
  max-width: 46ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.0625rem;
}

/* Voicing shortcuts: the same stamp, at hero scale, as a way into the list. */
.shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.shortcuts .stamp {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6em;
  font-size: 0.8125rem;
  padding: 0.55em 0.65em 0.5em;
  text-decoration: none;
}

.shortcuts .stamp span {
  font-size: 0.6875rem;
  letter-spacing: 0;
  text-indent: 0;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.shortcuts .stamp:hover {
  background: var(--sea);
  color: var(--paper);
  border-color: var(--sea);
}

.shortcuts .stamp:hover span {
  color: var(--paper);
}

.search {
  margin-top: 1.75rem;
  max-width: 34rem;
}

.search input {
  width: 100%;
  font: inherit;
  color: inherit;
  padding: 0.7rem 0.9rem;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: 0;
}

.search input::placeholder {
  color: var(--ink-soft);
}

/* --- Two-column catalogue ------------------------------------------------ */

.catalogue {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: 0 3rem;
  align-items: start;
  padding-block: 2rem 5rem;
}

@media (max-width: 62rem) {
  .catalogue {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }
}

.filters {
  position: sticky;
  top: 1.5rem;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  font-size: 0.875rem;
  padding-right: 0.5rem;
}

/* The drawer chrome and the button that opens it only exist below the
   two-column breakpoint. */
.filters-head,
.filters-scrim,
.filter-toggle {
  display: none;
}

@media (max-width: 62rem) {
  /* With no JavaScript the rail cannot be opened, so it stays a plain block
     above the results -- long, but complete. */
  .filters {
    position: static;
    max-height: none;
    border: 1px solid var(--rule);
    padding: 1rem;
  }

  .filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    font: inherit;
    font-family: var(--data);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink);
    background: var(--paper-raised);
    border: 1px solid var(--rule);
    padding: 0.5em 0.8em;
    cursor: pointer;
  }

  .filter-toggle.is-active {
    color: var(--paper);
    background: var(--sea);
    border-color: var(--sea);
  }

  /* Off-canvas from here down: the rail costs a whole screen of scrolling
     otherwise, and on a phone it is the list that matters. */
  .has-js .filters {
    position: fixed;
    z-index: 40;
    inset: 0 0 0 auto;
    width: min(21rem, 85vw);
    max-height: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--paper);
    border: 0;
    border-left: 1px solid var(--rule);
    padding: 0 1.25rem 2rem;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.22s ease, visibility 0.22s;
  }

  .has-js body.filters-open .filters {
    transform: none;
    visibility: visible;
  }

  .has-js body.filters-open {
    overflow: hidden;
  }

  .has-js .filters-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 39;
    background: rgb(0 0 0 / 0.4);
  }

  /* The drawer's own header: it scrolls with nothing above it, so it is pinned
     and opaque, and "Done" is where a thumb already is. */
  .has-js .filters-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--paper);
    padding: 1rem 0 0.75rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--rule);
    font-family: var(--data);
    font-size: 0.6875rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-soft);
  }

  .filters-done {
    font: inherit;
    color: var(--sea);
    background: none;
    border: 0;
    padding: 0.25rem 0;
    cursor: pointer;
    text-decoration: underline;
  }

  /* Each option is a touch target once the rail is a drawer. */
  .has-js .filter-group label {
    padding: 0.4rem 0;
  }

  /* The bar carries the Filters button, so it has to stay reachable while the
     list scrolls past. */
  .results-bar {
    position: sticky;
    top: 0;
    z-index: 5;
    background: var(--paper);
    padding-top: 0.75rem;
    gap: 0.75rem;
  }
}

.filter-group {
  border: 0;
  margin: 0 0 1.5rem;
  padding: 0;
}

.filter-group legend {
  font-family: var(--data);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0 0 0.5rem;
  border-bottom: 1px solid var(--rule);
  width: 100%;
  margin-bottom: 0.5rem;
}

.filter-group label {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.15rem 0;
  cursor: pointer;
}

.filter-group input {
  accent-color: var(--sea);
  margin: 0;
  position: relative;
  top: 0.15em;
}

.filter-group .count {
  margin-left: auto;
  font-family: var(--data);
  font-size: 0.75rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.filter-group label:has(input:checked) {
  color: var(--sea);
  font-weight: 500;
}

/* An option that would return nothing keeps its place, dimmed. Removing it
   would make the rail jump under the pointer mid-click. */
.filter-group label.is-empty {
  opacity: 0.35;
  cursor: default;
}

/* Long facets start clipped. Driven by a class so that recounting the options
   cannot undo it. */
.filter-group[data-collapsible]:not(.is-expanded) label.is-extra {
  display: none;
}

.filter-more {
  background: none;
  border: 0;
  padding: 0.25rem 0;
  font: inherit;
  font-size: 0.8125rem;
  color: var(--sea);
  cursor: pointer;
  text-decoration: underline;
}

/* --- Results bar --------------------------------------------------------- */

.results-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: baseline;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--ink);
}

.results-count {
  font-family: var(--data);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.results-bar .sort {
  margin-left: auto;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.results-bar select {
  font: inherit;
  font-size: 0.8125rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  padding: 0.1rem 0;
  border-radius: 0;
}

.clear-filters {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 0.8125rem;
  color: var(--signal);
  cursor: pointer;
  text-decoration: underline;
}

/* --- Work rows ----------------------------------------------------------- */

.works {
  list-style: none;
  margin: 0;
  padding: 0;
}

.work-row {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) auto;
  gap: 0 1.25rem;
  align-items: start;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--rule-soft);
}

.work-row > .stamp-cell {
  padding-top: 0.15rem;
}

.work-title {
  font-family: var(--display);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.25;
  margin: 0;
}

.work-title a {
  color: var(--ink);
  text-decoration: none;
}

.work-title a:hover {
  color: var(--sea);
  text-decoration: underline;
}

.work-alt {
  font-family: var(--display);
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1rem;
}

.work-meta {
  margin: 0.2rem 0 0;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.work-meta .sep {
  opacity: 0.5;
  padding-inline: 0.4em;
}

.work-figures {
  display: flex;
  gap: 0.9rem;
  align-items: baseline;
  font-family: var(--data);
  font-size: 0.8125rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  padding-top: 0.2rem;
}

@media (max-width: 40rem) {
  .work-row {
    grid-template-columns: 3.75rem minmax(0, 1fr);
  }

  .work-figures {
    grid-column: 2;
    padding-top: 0.35rem;
  }
}

.has-audio {
  color: var(--signal);
}

.empty {
  padding: 3rem 0;
  color: var(--ink-soft);
}

/* --- Work detail --------------------------------------------------------- */

.work-page {
  padding-block: clamp(2rem, 6vw, 4rem) 5rem;
  max-width: 46rem;
}

.backlink {
  font-family: var(--data);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 2.5rem;
}

.backlink:hover {
  color: var(--sea);
}

.work-page h1 {
  font-size: clamp(2rem, 6vw, 3.25rem);
  margin-block: 1.25rem 0;
}

.work-page .alt-title {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.25rem, 3.5vw, 1.75rem);
  color: var(--ink-soft);
  margin: 0.25rem 0 0;
  font-weight: 400;
}

.eyebrow {
  font-family: var(--data);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0;
}

.byline {
  margin: 1.25rem 0 0;
  font-size: 1.0625rem;
  color: var(--ink-soft);
}

.byline a {
  color: var(--ink);
}

/* The forces line, set the way a score title page sets it. */
.forces {
  margin: 2.5rem 0 0;
  padding: 1.25rem 0;
  border-block: 1px solid var(--rule);
  font-family: var(--display);
  font-size: 1.25rem;
  line-height: 1.4;
}

.forces .for {
  font-family: var(--data);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: block;
  margin-bottom: 0.4rem;
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 0;
  padding: 0;
}

.facts div {
  margin: 0;
}

.facts dt {
  font-family: var(--data);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.facts dd {
  margin: 0.3rem 0 0;
  font-family: var(--data);
  font-size: 1.0625rem;
  font-variant-numeric: tabular-nums;
}

/* --- The difficulty meter ------------------------------------------------
   One ordinal value against a fixed scale of six. The filled steps carry the
   grade in the accent hue and the rest are a lighter step of the same hue, so
   the whole scale reads at a glance; the roman numeral stays beside them, so
   the grade is never encoded in colour alone.
   ------------------------------------------------------------------------ */

.grade {
  display: inline-flex;
  flex-direction: column;
  gap: 0.4rem;
}

.grade-value {
  font-variant-numeric: tabular-nums;
}

.grade-steps {
  display: flex;
  gap: 2px;
}

.grade-step {
  width: 0.8rem;
  height: 0.35rem;
  background: color-mix(in oklab, var(--sea) 20%, var(--paper));
}

.grade-step.is-on {
  background: var(--sea);
}

/* Where colour is unavailable, the steps still have to differ from each other. */
@media (forced-colors: active) {
  .grade-step {
    border: 1px solid CanvasText;
  }

  .grade-step.is-on {
    background: CanvasText;
  }
}

.section {
  margin-top: 3rem;
}

.section > h2 {
  font-family: var(--data);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 1.25rem;
}

.track {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.track audio {
  flex: 1 1 18rem;
  height: 2.25rem;
}

.track-label {
  font-family: var(--data);
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.tags a {
  display: inline-block;
  font-size: 0.8125rem;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--rule);
  color: var(--ink-soft);
  text-decoration: none;
}

.tags a:hover {
  border-color: var(--sea);
  color: var(--sea);
}

.movements {
  margin: 0;
  padding-left: 1.25rem;
}

.notes {
  color: var(--ink-soft);
  max-width: var(--measure);
}

.buy {
  margin-top: 3rem;
  padding: 1.5rem;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
}

.buy h2 {
  font-family: var(--display);
  font-size: 1.375rem;
  margin-bottom: 0.5rem;
}

.buy p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  max-width: var(--measure);
}

.price {
  font-family: var(--data);
  font-size: 1.5rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.price span {
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.button {
  display: inline-block;
  font-family: var(--data);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.7rem 1.1rem;
  background: var(--sea);
  color: var(--paper);
  text-decoration: none;
  border: 1px solid var(--sea);
}

.button:hover {
  background: var(--sea-bright);
  border-color: var(--sea-bright);
  color: var(--paper);
}

/* Ordering happens by email, so the steps are worth spelling out. */
.steps {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--ink-soft);
  max-width: var(--measure);
}

.steps li {
  padding-bottom: 0.6rem;
}

.steps strong {
  color: var(--ink);
  font-weight: 500;
}

.fineprint {
  margin: 0.9rem 0 0;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

/* The rate card. Priced by kind of score, because for choral music the price
   is per copy rather than per work. */
.rates {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.25rem;
}

.rates th {
  text-align: left;
  font-weight: 500;
  font-family: var(--display);
  font-size: 1.0625rem;
  padding: 0.9rem 1rem 0.9rem 0;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: baseline;
}

.rates td {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--rule-soft);
  text-align: right;
  vertical-align: baseline;
  white-space: nowrap;
}

.rate-detail {
  display: block;
  font-family: var(--body);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--ink-soft);
  margin-top: 0.2rem;
  white-space: normal;
}

.rate-amount {
  font-family: var(--data);
  font-size: 1.0625rem;
  font-variant-numeric: tabular-nums;
}

.rate-amount .unit,
.rates .unit {
  display: block;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* No price set yet reads as a state, not as a missing value. */
.on-request {
  font-family: var(--data);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px dashed currentColor;
  padding: 0.35em 0.5em 0.3em;
}

.priced-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.priced-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--rule-soft);
}

/* --- Person and category pages ------------------------------------------- */

.page-head {
  padding-block: clamp(2rem, 6vw, 4rem) 1.5rem;
}

.page-head h1 {
  font-size: clamp(2rem, 6vw, 3.25rem);
  margin-block: 0.75rem 0.5rem;
}

.page-head p {
  margin: 0;
  color: var(--ink-soft);
}

.role-list {
  padding-block: 0 5rem;
}

.role-list h2 {
  font-family: var(--data);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--ink);
  margin-block: 2.5rem 0;
}

.index-columns {
  columns: 3 14rem;
  column-gap: 2.5rem;
  padding-block: 1.5rem 5rem;
  list-style: none;
  margin: 0;
  padding-inline: 0;
}

.index-columns li {
  break-inside: avoid;
  padding: 0.25rem 0;
  font-size: 0.9375rem;
}

.index-columns .count {
  font-family: var(--data);
  font-size: 0.75rem;
  color: var(--ink-soft);
}

/* --- Editorial pages: the composer, contact -------------------------------
   Text set to a reading measure, with a narrow column beside it for the
   portrait and the small print. Same shell, same rules as the catalogue.
   ------------------------------------------------------------------------ */

.lede {
  margin: 0.75rem 0 0;
  max-width: 46ch;
  font-size: 1.0625rem;
  color: var(--ink-soft);
}

.page-head .lede {
  margin-top: 0.75rem;
}

.editorial {
  display: grid;
  grid-template-columns: minmax(0, var(--measure)) minmax(14rem, 18rem);
  gap: 1.5rem clamp(2rem, 6vw, 5rem);
  align-items: start;
  padding-block: 1.5rem 5rem;
}

@media (max-width: 62rem) {
  .editorial {
    grid-template-columns: minmax(0, 1fr);
  }

  /* The portrait belongs beside the opening paragraphs; when the columns
     stack, that means above them rather than at the foot of the page. A rail of
     plain notes, as on /prices/, stays where it is written: after the text. */
  .editorial .sidenote:has(.portrait) {
    grid-row: 1;
  }
}

.prose p {
  margin: 0 0 1.25rem;
  font-size: 1.0625rem;
}

.prose blockquote {
  margin: 2rem 0;
  padding-left: 1.25rem;
  border-left: 2px solid var(--sea);
  font-family: var(--display);
  font-size: 1.1875rem;
  line-height: 1.45;
}

.prose blockquote cite {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--data);
  font-size: 0.75rem;
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.sidenote > .section:first-child,
.sidenote > .portrait + .section {
  margin-top: 2.5rem;
}

.portrait {
  margin: 0;
  border: 1px solid var(--rule);
  background: var(--paper-raised);
  padding: 0.5rem;
  max-width: 16rem;
}

.portrait img {
  display: block;
  width: 100%;
  height: auto;
  filter: grayscale(1) contrast(1.05);
}

@media (prefers-color-scheme: dark) {
  .portrait img {
    filter: grayscale(1) contrast(0.95) brightness(0.9);
  }
}

.honours {
  margin: 0;
  padding: 0;
}

.honours div {
  padding-bottom: 0.9rem;
}

.honours dt {
  font-family: var(--data);
  font-size: 0.8125rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.honours dd {
  margin: 0.2rem 0 0;
  font-size: 0.9375rem;
}

/* --- Recordings ----------------------------------------------------------
   One section per release: the cover art in a narrow column, the track list
   beside it, set like the catalogue rows so the two pages feel related.
   ------------------------------------------------------------------------ */

.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  margin-top: 1.5rem;
  font-size: 0.8125rem;
}

.jump a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}

.jump a:hover {
  color: var(--sea);
  border-color: var(--sea);
}

.releases {
  padding-block: 1rem 5rem;
}

.release {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 1.5rem clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  padding-block: 2.5rem;
  border-top: 1px solid var(--rule);
}

@media (max-width: 48rem) {
  .release {
    grid-template-columns: minmax(0, 1fr);
  }
}

.release-covers {
  display: grid;
  gap: 0.75rem;
  position: sticky;
  top: 1.5rem;
}

@media (max-width: 48rem) {
  .release-covers {
    position: static;
    grid-template-columns: repeat(auto-fit, minmax(7rem, 9rem));
  }
}

.cover {
  margin: 0;
  border: 1px solid var(--rule);
  background: var(--paper-raised);
  padding: 0.35rem;
}

.cover img {
  display: block;
  width: 100%;
  height: auto;
}

/* The second cover is the back of the sleeve: reference, not headline. */
.cover:nth-child(2) {
  opacity: 0.75;
}

.cover:nth-child(2):hover {
  opacity: 1;
}

.release-body h2 {
  font-size: clamp(1.5rem, 4vw, 2.125rem);
  margin-block: 0.4rem 0;
}

.release-performers {
  margin: 0.5rem 0 0;
  color: var(--ink-soft);
  max-width: var(--measure);
}

.eyebrow .extent {
  padding-left: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: none;
}

.tracks {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  border-top: 2px solid var(--ink);
}

.track-row {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) auto;
  gap: 0 1rem;
  align-items: start;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule-soft);
}

/* Durations are short enough to keep their own column even on a phone, where
   the catalogue rows drop theirs under the title. */
@media (max-width: 40rem) {
  .track-row .work-figures {
    grid-column: 3;
    padding-top: 0.2rem;
  }
}

.track-no {
  font-family: var(--data);
  font-size: 0.8125rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  padding-top: 0.2rem;
}

.track-title {
  font-family: var(--display);
  font-size: 1.0625rem;
  line-height: 1.3;
  margin: 0;
}

.track-title a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}

.track-title a:hover {
  color: var(--sea);
  border-color: var(--sea);
}

/* Credits read as label-then-name, the label quiet and in mono. */
.credit > span {
  font-family: var(--data);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.75;
}

.track-note {
  margin: 0.35rem 0 0;
  font-size: 0.9375rem;
}

.players {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 0.6rem;
}

/* A disclosure rather than 36 audio players: nothing loads until asked. */
.listen summary {
  display: inline-block;
  cursor: pointer;
  font-family: var(--data);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--signal);
  padding: 0.3rem 0.6rem;
  border: 1px solid currentColor;
  list-style: none;
}

.listen summary::-webkit-details-marker {
  display: none;
}

.listen[open] summary {
  color: var(--ink-soft);
}

.listen audio {
  display: block;
  margin-top: 0.6rem;
  width: min(22rem, 100%);
  height: 2.25rem;
}

/* --- Contact ------------------------------------------------------------- */

.contact-cards {
  display: grid;
  gap: 1.25rem;
}

.card {
  padding: 1.5rem;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
}

.card h2 {
  font-family: var(--display);
  font-size: 1.375rem;
  margin-bottom: 0.5rem;
}

.card p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  max-width: var(--measure);
}

.contact-line {
  font-family: var(--data);
  font-size: 1rem;
  line-height: 1.8;
}

.contact-line a {
  color: var(--sea);
}

.sidenote address {
  font-style: normal;
  font-family: var(--data);
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* --- Footer -------------------------------------------------------------- */

.colophon {
  border-top: 1px solid var(--rule);
  padding-block: 2rem 3rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.colophon p {
  margin: 0 0 0.5rem;
  max-width: var(--measure);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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