/* The scores shop: one stylesheet for the shop and the studio.
   Paper, ink and a single red, as in a printed score. Bodoni Moda for titles and figures,
   Schibsted Grotesk for everything else. Plain CSS for Safari 15.4+; text-wrap is an enhancement. */

@font-face {
  font-family: "Bodoni Moda";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(../fonts/bodoni-moda-latin-standard-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bodoni Moda";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(../fonts/bodoni-moda-latin-ext-standard-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bodoni Moda";
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url(../fonts/bodoni-moda-latin-standard-italic.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bodoni Moda";
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url(../fonts/bodoni-moda-latin-ext-standard-italic.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(../fonts/schibsted-grotesk-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(../fonts/schibsted-grotesk-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #f3efe7;
  --paper-2: #ebe5d9;
  --sheet: #fffdf9;
  --ink: #1b1814;
  --ink-2: #57514a;
  --ink-3: #6f675e;
  --rule: #d8d0c3;
  --red: #a4281b;
  --red-2: #861f13;
  --shadow-sheet: 0 1px 2px rgba(48, 36, 22, 0.08), 0 7px 14px -7px rgba(48, 36, 22, 0.2), 0 30px 60px -30px rgba(48, 36, 22, 0.42);
  --sheet-filter: none;

  --serif: "Bodoni Moda", "Bodoni 72", Didot, "Bodoni MT", Georgia, serif;
  --sans: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4.2vw, 56px);
  --max: 1280px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #16140f;
    --paper-2: #1f1c16;
    --sheet: #e9e3d6;
    --ink: #ece5d7;
    --ink-2: #bcb3a5;
    --ink-3: #9a9183;
    --rule: #39342c;
    --red: #e3735d;
    --red-2: #f0907c;
    --shadow-sheet: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 20px -10px rgba(0, 0, 0, 0.6), 0 34px 70px -30px rgba(0, 0, 0, 0.85);
    --sheet-filter: sepia(0.12) brightness(0.9);
  }
}

@view-transition {
  navigation: auto;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--red);
  color: var(--paper);
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover {
  color: var(--red);
}

img {
  max-width: 100%;
}

h1, h2, h3, p, ol, ul, dl, dd, figure {
  margin: 0;
}

ol, ul {
  padding: 0;
  list-style: none;
}

abbr[title] {
  text-decoration: none;
}

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

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

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

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  z-index: 50;
}
.skip:focus {
  top: 12px;
}

/* Small capitals, set by hand: the label voice used across the site. */
.eyebrow,
.nav a,
.field-label,
.count,
.arrow-link,
.crumbs a,
.tag,
.buy-format,
.score-arr,
.facts dt,
.ticket-lines dt,
figcaption,
.table th {
  font: 500 12px/1.3 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------- masthead */

.masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 0 18px;
  border-bottom: 1px solid var(--ink);
}

.wordmark {
  font: 500 25px/1 var(--serif);
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark i {
  font-weight: 400;
}
.wordmark:hover {
  color: inherit;
}
.wordmark:hover i {
  color: var(--red);
}

.nav {
  display: flex;
  align-items: baseline;
  gap: clamp(18px, 3vw, 36px);
}
.nav a {
  color: var(--ink-2);
  text-decoration: none;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--red);
}

.arrow-link {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
}
.arrow-link::after {
  content: "→";
  font-family: var(--sans);
  transition: transform 0.25s ease;
}
.arrow-link:hover::after {
  transform: translateX(4px);
}

/* --------------------------------------------------------- sheets of paper */

.sheet {
  display: block;
  width: 100%;
  height: auto;
  background: var(--sheet);
  box-shadow: var(--shadow-sheet);
  filter: var(--sheet-filter);
}

/* A second sheet peeking out from underneath, slightly askew. */
.stack {
  position: relative;
  display: block;
  isolation: isolate;
}
.stack::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--sheet);
  box-shadow: var(--shadow-sheet);
  filter: var(--sheet-filter);
  transform: translate(9px, 8px) rotate(1.4deg);
  transform-origin: 30% 80%;
}
a.stack .sheet {
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
a.stack:hover .sheet {
  transform: translateY(-6px) rotate(-0.4deg);
}

.no {
  font: italic 400 17px/1 var(--serif);
  color: var(--red);
  white-space: nowrap;
}

/* ----------------------------------------------------------------- home */

.opening {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 128px);
  align-items: end;
  padding: clamp(56px, 9vw, 132px) 0 clamp(72px, 10vw, 148px);
}
.opening-solo {
  grid-template-columns: minmax(0, 1fr);
}

.display {
  font: 400 clamp(50px, 7.4vw, 116px) / 0.92 var(--serif);
  letter-spacing: -0.032em;
  text-wrap: balance;
}
.display em {
  letter-spacing: -0.02em;
}

.lede {
  max-width: 30em;
  margin-top: clamp(28px, 3.4vw, 44px);
  font-size: clamp(17px, 1.35vw, 19px);
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: pretty;
}

.opening-link {
  margin-top: 36px;
}

.opening-sheet {
  justify-self: end;
  width: min(100%, 430px);
}
.opening-sheet figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  margin-top: 30px;
  color: var(--ink-2);
}
.opening-sheet figcaption a {
  font: 400 19px/1.2 var(--serif);
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  color: var(--ink);
}
.opening-sheet figcaption a:hover {
  color: var(--red);
}
.tag {
  color: var(--red);
}
.price-inline {
  margin-left: auto;
  font: 400 19px/1.2 var(--serif);
  letter-spacing: 0;
  color: var(--ink);
}

/* The catalogue, set as a numbered index. */

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  padding-bottom: 20px;
}
.section-head h2 {
  font: italic 400 clamp(32px, 3.6vw, 46px) / 1.05 var(--serif);
  letter-spacing: -0.015em;
}
.count {
  color: var(--ink-3);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding: 18px 0 22px;
  border-top: 1px solid var(--rule);
}
.filter-search {
  flex: 1 1 260px;
  max-width: 380px;
}
.filter-levels {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
}
.chip {
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--ink-3);
  font: 500 12px/1.3 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}
.chip:hover {
  color: var(--ink);
}
.chip[aria-pressed="true"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.45em;
}

.index {
  border-top: 1px solid var(--ink);
}
.entry > a {
  display: grid;
  grid-template-columns: 4.75rem minmax(0, 1fr) 9rem 5.5rem 6.25rem 1.5rem;
  align-items: baseline;
  column-gap: 20px;
  padding: 26px 0 24px;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
}
.entry-title {
  font: 400 clamp(25px, 2.7vw, 36px) / 1.12 var(--serif);
  letter-spacing: -0.012em;
  transition: color 0.2s;
}
.entry-title .by {
  margin-left: 0.35em;
  font-size: 0.56em;
  font-style: italic;
  letter-spacing: 0;
  color: var(--ink-2);
}
.entry-meta {
  display: contents;
}
.entry-level,
.entry-pages {
  font-size: 14px;
  color: var(--ink-2);
}
.entry-price {
  font: 400 21px/1 var(--serif);
  text-align: right;
}
.entry-arrow {
  justify-self: end;
  color: var(--red);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.2s, transform 0.25s ease;
}
.entry > a:hover .entry-title {
  color: var(--red);
}
.entry > a:hover .entry-arrow,
.entry > a:focus-visible .entry-arrow {
  opacity: 1;
  transform: none;
}

.empty,
.empty-filter {
  padding: 40px 0;
  border-top: 1px solid var(--ink);
  font: italic 400 22px/1.4 var(--serif);
  color: var(--ink-2);
}
.empty-filter {
  border-top: 0;
}

/* The first page, following the pointer over the index. */
.peek {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: 190px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease;
}
.peek.on {
  opacity: 1;
}

/* How buying works: three short notes, numbered like footnotes. */
.notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px);
  margin-top: clamp(80px, 10vw, 140px);
  padding-top: 30px;
  border-top: 1px solid var(--ink);
}
.note-mark {
  display: block;
  font: italic 400 22px/1 var(--serif);
  color: var(--red);
}
.note h3 {
  margin-top: 16px;
  font: 400 24px/1.2 var(--serif);
  letter-spacing: -0.01em;
}
.note p {
  margin-top: 10px;
  font-size: 15px;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* ------------------------------------------------------------ colophon */

.colophon {
  margin-top: clamp(96px, 12vw, 168px);
  padding-bottom: 48px;
}

/* A staff, ending in a final barline. */
.staff {
  position: relative;
  height: 33px;
  background: repeating-linear-gradient(to bottom, var(--ink) 0 1px, transparent 1px 8px);
}
.staff::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 10px;
  border-left: 1px solid var(--ink);
  border-right: 5px solid var(--ink);
}

.colophon-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 32px;
  padding-top: 32px;
  font-size: 14px;
  color: var(--ink-2);
}
.colophon-brand {
  font: 400 21px/1.3 var(--serif);
  color: var(--ink);
}
.colophon-brand span {
  font-style: italic;
  font-size: 17px;
  color: var(--ink-2);
}
.colophon nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.colophon nav a {
  text-decoration: none;
}
.colophon nav a:hover {
  text-decoration: underline;
}
.colophon-note {
  text-align: right;
  color: var(--ink-3);
}

/* ---------------------------------------------------------- score page */

.crumbs {
  padding-top: 26px;
}
.crumbs a {
  color: var(--ink-2);
  text-decoration: none;
}
.crumbs a:hover {
  color: var(--red);
}

.score-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  grid-template-areas:
    "sheet head"
    "sheet buy"
    "sheet details";
  grid-template-rows: auto auto 1fr;
  column-gap: clamp(40px, 6.5vw, 112px);
  padding-top: 36px;
}

.score-sheet {
  grid-area: sheet;
  align-self: start;
  position: sticky;
  top: 28px;
}
/* Sized so the whole page always fits on screen while it stays in place. */
.score-sheet .stack {
  width: min(100%, (100vh - 110px) * 0.707);
}
.score-sheet figcaption {
  margin-top: 22px;
  color: var(--ink-3);
}

.score-head .no {
  font-size: 19px;
}
.score-title {
  margin-top: 16px;
  font: 400 clamp(44px, 5.6vw, 84px) / 0.95 var(--serif);
  letter-spacing: -0.028em;
  text-wrap: balance;
}
.score-by {
  margin-top: 16px;
  font: italic 400 clamp(20px, 1.9vw, 25px) / 1.25 var(--serif);
  color: var(--ink-2);
}
.score-arr {
  margin-top: 22px;
  color: var(--ink-3);
}

/* On narrow screens the buy box is below the page image; this link jumps to it. */
.jump-buy {
  display: none;
  margin-top: 18px;
  color: var(--red);
}

.buy {
  grid-area: buy;
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: 22px;
  border-top: 1px solid var(--ink);
}
.buy-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.price {
  font: 400 54px/1 var(--serif);
  letter-spacing: -0.025em;
}
.buy-format {
  color: var(--ink-3);
}
.buy-form {
  display: grid;
  gap: 22px;
  margin-top: 26px;
}
.fine {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-3);
}

.notice {
  margin-top: 20px;
  padding: 12px 16px;
  border-left: 2px solid var(--ink);
  background: var(--paper-2);
  font-size: 15px;
}
.notice-error {
  border-left-color: var(--red);
}

.score-details {
  grid-area: details;
  margin-top: clamp(40px, 5vw, 60px);
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
  border-top: 1px solid var(--rule);
}
.facts > div {
  padding: 15px 0 14px;
  border-bottom: 1px solid var(--rule);
}
.facts dt {
  color: var(--ink-3);
}
.facts dd {
  margin-top: 6px;
  font: 400 21px/1.2 var(--serif);
}

.prose {
  max-width: 34em;
  margin-top: 34px;
}
.prose p {
  font-size: 17px;
  line-height: 1.68;
  color: var(--ink-2);
  text-wrap: pretty;
}
.prose p + p {
  margin-top: 1em;
}
.prose p:first-child {
  color: var(--ink);
}

/* Listening sample: the native player until site.js swaps in this one. */
.listen {
  margin-top: 30px;
}
.listen audio {
  width: 100%;
}
.player {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}
.player-toggle {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.player-toggle:hover,
.player.playing .player-toggle {
  background: var(--ink);
  color: var(--paper);
}
.player-toggle svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.player-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.player-label {
  font: italic 400 19px/1.2 var(--serif);
}
.player-time {
  font-size: 13px;
  color: var(--ink-3);
}
.player-track {
  position: relative;
  height: 18px;
  margin-top: 4px;
  cursor: pointer;
  touch-action: none;
}
.player-track::before,
.player-fill {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  height: 1px;
  background: var(--ink-3);
}
.player-track::before {
  right: 0;
}
.player-fill {
  width: 0;
  height: 2px;
  margin-top: -0.5px;
  background: var(--red);
}

/* More from the catalogue. */
.more {
  margin-top: clamp(88px, 11vw, 150px);
}
.shelf {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 44px);
  padding-top: 32px;
  border-top: 1px solid var(--ink);
}
.shelf a {
  display: grid;
  gap: 6px;
  text-decoration: none;
  color: inherit;
}
.shelf-sheet {
  display: block;
  margin-bottom: 18px;
}
.shelf-sheet .sheet {
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.shelf a:hover .sheet {
  transform: translateY(-5px);
}
.shelf-title {
  font: 400 23px/1.15 var(--serif);
  letter-spacing: -0.01em;
}
.shelf a:hover .shelf-title {
  color: var(--red);
}
.shelf-meta {
  font: italic 400 16px/1.3 var(--serif);
  color: var(--ink-2);
}
.shelf-price {
  font: 400 18px/1 var(--serif);
  margin-top: 4px;
}

/* ------------------------------------------------------------- forms */

.field {
  display: block;
}
.field-label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-2);
}
.optional {
  margin-left: 6px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--ink-3);
}

input:not([type="checkbox"]),
select,
textarea {
  display: block;
  width: 100%;
  padding: 10px 0 9px;
  border: 0;
  border-bottom: 1px solid var(--ink-3);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: 400 17px/1.4 var(--sans);
  -webkit-appearance: none;
  appearance: none;
}
input::placeholder,
textarea::placeholder {
  color: var(--ink-3);
  opacity: 0.75;
}
input:not([type="checkbox"]):focus,
select:focus,
textarea:focus {
  outline: none;
  border-bottom-color: var(--ink);
  box-shadow: 0 1px 0 var(--ink);
}
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}
textarea {
  padding: 12px 14px;
  border: 1px solid var(--ink-3);
  line-height: 1.55;
  resize: vertical;
}
textarea:focus {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
select {
  padding-right: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236f675e'/%3E%3C/svg%3E") no-repeat right 4px center;
}

.check {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
  cursor: pointer;
}
.check input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--ink);
}

.field-row {
  display: flex;
  align-items: flex-end;
  gap: 14px;
}
.field-row input {
  flex: 1;
  min-width: 0;
}

.button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 19px 22px;
  border: 0;
  border-radius: 0;
  background: var(--ink);
  color: var(--paper);
  font: 500 15px/1.2 var(--sans);
  letter-spacing: 0.03em;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}
.button:hover {
  background: var(--red);
  color: var(--paper);
}
.button:active {
  transform: translateY(1px);
}
.button:disabled {
  background: var(--ink-3);
  cursor: default;
}
.button-large {
  padding: 24px 26px;
  font-size: 17px;
}
.button-small {
  width: auto;
  padding: 11px 18px;
  font-size: 14px;
}
.button-quiet {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.button-quiet:hover {
  background: var(--ink);
}

.link {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.link:hover {
  color: var(--red);
}

/* ------------------------------------------------- download & checkout */

.receipt {
  max-width: 640px;
  padding-top: clamp(56px, 8vw, 108px);
}
.eyebrow {
  color: var(--red);
}
.receipt-title {
  margin-top: 18px;
  font: 400 clamp(46px, 7vw, 90px) / 0.96 var(--serif);
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.receipt-lede {
  max-width: 32em;
  margin-top: 22px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: pretty;
}
.receipt > p:last-child:not([class]) {
  margin-top: 32px;
}

.ticket {
  margin-top: 44px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.ticket-score {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 24px 0;
}
.ticket-sheet .sheet {
  box-shadow: 0 1px 2px rgba(48, 36, 22, 0.1), 0 8px 18px -10px rgba(48, 36, 22, 0.35);
}
.ticket-title {
  margin-top: 8px;
  font: 400 30px/1.1 var(--serif);
  letter-spacing: -0.015em;
}
.ticket-meta {
  margin-top: 4px;
  font-size: 14px;
  color: var(--ink-2);
}
.ticket-by {
  margin-top: 4px;
  font: italic 400 17px/1.3 var(--serif);
  color: var(--ink-2);
}
.ticket-lines {
  border-top: 1px solid var(--rule);
}
.ticket-lines > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}
.ticket-lines > div + div {
  border-top: 1px solid var(--rule);
}
.ticket-lines dt {
  color: var(--ink-3);
}
.ticket-lines dd {
  font: 400 18px/1.2 var(--serif);
  overflow-wrap: anywhere;
  text-align: right;
}
.ticket-total dd {
  font-size: 24px;
}
.ticket-lines .ref {
  font: 500 14px/1.2 var(--sans);
  letter-spacing: 0.08em;
}

.download-form,
.test-actions {
  margin-top: 32px;
}
.test-actions {
  display: grid;
  justify-items: start;
  gap: 18px;
}
.receipt-note {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-3);
  text-wrap: pretty;
}
.receipt-note strong,
.mail-line strong {
  font-weight: 500;
  color: var(--ink);
}
.mail-line {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  font-size: 15px;
  color: var(--ink-2);
}
.mail-form {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.mail-form .mail-line {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

/* --------------------------------------------------------------- legal */

.legal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
  gap: clamp(36px, 7vw, 120px);
  padding-top: clamp(56px, 7vw, 96px);
}
.legal-head {
  align-self: start;
  position: sticky;
  top: 32px;
}
.legal-title {
  margin-top: 16px;
  font: 400 clamp(44px, 5.4vw, 76px) / 0.98 var(--serif);
  letter-spacing: -0.028em;
}
.legal-lede {
  margin-top: 20px;
  font: italic 400 21px/1.4 var(--serif);
  color: var(--ink-2);
}
.legal-body section {
  padding: 26px 0 30px;
  border-top: 1px solid var(--rule);
}
.legal-body section:first-child {
  border-top-color: var(--ink);
}
.legal-body h2 {
  font: 400 25px/1.2 var(--serif);
  letter-spacing: -0.01em;
}
.legal-body p,
.seller {
  max-width: 36em;
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.68;
  color: var(--ink-2);
}
.seller {
  font-style: normal;
}
.contact-email {
  font: 400 clamp(24px, 3vw, 34px) / 1.2 var(--serif) !important;
  color: var(--ink) !important;
}
.todo {
  padding: 0 4px;
  background: rgba(164, 40, 27, 0.14);
  color: var(--ink);
}

/* -------------------------------------------------------------- studio */

.wordmark-studio,
.wordmark-section {
  margin-left: 8px;
  font: 500 12px/1 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  vertical-align: 3px;
}
.nav-form {
  display: inline;
}
.studio .nav .link {
  font: 500 12px/1.3 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-2);
}
.studio-main {
  padding-bottom: 96px;
}
.studio-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  padding: 36px 0 26px;
}
.studio-title {
  font: 400 clamp(36px, 4.4vw, 54px) / 1 var(--serif);
  letter-spacing: -0.025em;
}
.studio-title .no {
  font-size: 0.45em;
  vertical-align: 0.5em;
}
.studio-subtitle {
  font: 400 22px/1.2 var(--serif);
}
.studio-lede {
  margin-top: 10px;
  color: var(--ink-2);
}
.new-score {
  flex: 0 1 440px;
}
.head-actions {
  display: flex;
  gap: 12px;
}
.flash {
  margin-top: 24px;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--paper);
  font-size: 15px;
}
.checklist {
  margin-bottom: 28px;
  padding: 18px 22px 16px;
  border: 1px solid var(--red);
}
.checklist h2 {
  font: 500 12px/1.3 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}
.checklist ul {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding-left: 18px;
  list-style: disc;
  font-size: 15px;
  color: var(--ink-2);
}
code,
.code {
  padding: 1px 5px;
  background: var(--paper-2);
  font: 0.86em/1.5 var(--mono);
}
.code {
  display: block;
  margin: 12px 0 20px;
  padding: 14px 16px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--ink);
  font-size: 15px;
}
.table th {
  padding: 14px 14px 10px 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  color: var(--ink-3);
}
.table td {
  padding: 14px 14px 14px 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.table .num {
  text-align: right;
}
.table th:last-child,
.table td:last-child {
  padding-right: 0;
}
.row-link {
  font: 400 20px/1.2 var(--serif);
  text-decoration: none;
}
.muted {
  color: var(--ink-3);
}
.nowrap {
  white-space: nowrap;
}
.status {
  font-size: 13px;
  white-space: nowrap;
  color: var(--ink-3);
}
.status-live {
  color: var(--ink);
}
.status-live::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--red);
  vertical-align: 1px;
}
.status-error {
  color: var(--red);
}
.copy-link {
  margin-top: 6px;
  padding: 2px 0 !important;
  border: 0 !important;
  font: 12px/1.4 var(--mono) !important;
  color: var(--ink-3) !important;
  box-shadow: none !important;
  cursor: copy;
}
.row-actions form + form {
  margin-top: 6px;
}
.orders td {
  font-size: 14px;
}

.edit-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 72px);
  padding-top: 32px;
  border-top: 1px solid var(--ink);
}
.drop {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 300px;
  border: 1px dashed var(--ink-3);
  background: var(--paper-2);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.drop:hover,
.drop.over {
  border-color: var(--red);
  border-style: solid;
}
.drop .sheet {
  box-shadow: none;
}
.drop-empty {
  padding: 100px 24px;
  text-align: center;
}
.drop-title {
  font: italic 400 26px/1.2 var(--serif);
}
.drop-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--rule);
}
.drop-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--red);
  transition: width 0.15s;
}
[data-upload="audio"] {
  position: relative;
  height: 3px;
  margin-top: 10px;
}
.file-line {
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}
.upload-error {
  margin-top: 10px;
  font-size: 14px;
  color: var(--red);
}
.audio-box {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}
.audio-box > p,
.audio-box audio {
  margin-top: 12px;
}
.audio-box audio {
  width: 100%;
}
.edit-form {
  display: grid;
  align-content: start;
  gap: 26px;
}
.field-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}
.field-prefix {
  align-items: baseline;
  gap: 2px;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
}
.form-actions .button {
  width: auto;
  min-width: 200px;
}
.danger-zone {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
}
.link-danger {
  color: var(--red);
}
.login {
  max-width: 440px;
  padding-top: clamp(48px, 8vw, 96px);
}
.stack-form {
  display: grid;
  gap: 26px;
  margin-top: 28px;
}

/* ---------------------------------------------------------- small screens */

@media (max-width: 1080px) {
  .entry > a {
    grid-template-columns: 4rem minmax(0, 1fr) 8rem 5rem 5.5rem;
  }
  .entry-arrow {
    display: none;
  }
  .shelf {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .shelf li:nth-child(4) {
    display: none;
  }
}

@media (max-width: 860px) {
  .opening {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
  .opening-sheet {
    justify-self: start;
    width: min(78%, 400px);
    margin-top: 8px;
  }

  .score-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "head" "sheet" "buy" "details";
    grid-template-rows: none;
    padding-top: 24px;
  }
  .score-sheet {
    position: static;
    margin-top: 36px;
  }
  .score-sheet .stack {
    width: min(88%, 520px);
  }
  .jump-buy {
    display: inline-flex;
  }

  .notes {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .colophon-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .colophon-note {
    grid-column: 1 / -1;
    text-align: left;
  }

  .legal {
    grid-template-columns: minmax(0, 1fr);
  }
  .legal-head {
    position: static;
  }

  .edit-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .edit-files {
    max-width: 440px;
  }
}

@media (max-width: 700px) {
  .masthead {
    padding-top: 22px;
  }
  .wordmark {
    font-size: 22px;
  }

  .entry > a {
    grid-template-columns: 2.75rem minmax(0, 1fr) auto;
    grid-template-areas:
      "no title price"
      "no meta meta";
    row-gap: 8px;
    column-gap: 12px;
    padding: 20px 0 18px;
  }
  .entry .no {
    grid-area: no;
    font-size: 15px;
  }
  .entry-title {
    grid-area: title;
    font-size: 25px;
  }
  .entry-title .by {
    display: block;
    margin: 4px 0 0;
    font-size: 16px;
  }
  .entry-price {
    grid-area: price;
    font-size: 19px;
  }
  .entry-meta {
    grid-area: meta;
    display: flex;
    gap: 14px;
  }
  .entry-level,
  .entry-pages {
    font-size: 13px;
  }

  .shelf {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .shelf li:nth-child(n + 3) {
    display: none;
  }
  .shelf-title {
    font-size: 20px;
  }

  .price {
    font-size: 46px;
  }
  .facts dd {
    font-size: 19px;
  }

  .ticket-score {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 18px;
  }
  .ticket-title {
    font-size: 25px;
  }

  .table thead {
    display: none;
  }
  .table,
  .table tbody,
  .table tr,
  .table td {
    display: block;
  }
  .table tr {
    padding: 14px 0;
    border-bottom: 1px solid var(--rule);
  }
  .table td {
    padding: 2px 0;
    border: 0;
  }
  .table .num {
    text-align: left;
  }
  .field-pair {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* On a phone the name and its section label fill the masthead; the name already leads to the catalogue. */
@media (max-width: 480px) {
  .nav-catalogue {
    display: none;
  }
}

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