/* Christopher Kies site
   Contrast: #111 on #fff ≈ 18.7:1; muted #3d3d3d on #fff ≈ 10.7:1 (WCAG AAA).
   Type: 137.5% root → 22px body when the browser default is 16px.
   Largest base that still fits the full nav on a 1280px screen and reflows at 320px (400% zoom). */

@import url("https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,400;0,500;0,600;1,400&family=Fraunces:opsz,wght@9..144,560;9..144,700&display=swap");

:root {
  --bg: #ffffff;
  --ink: #111111;
  --muted: #3d3d3d;
  --rule: #111111;
  --rule-light: #6e6e6e;
  --focus: #111111;
  --wash: #f3f3f3; /* search-result and theme-switch hover */
  --serif: "Fraunces", "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  --sans: "Figtree", "Avenir Next", "Segoe UI", sans-serif;
  --measure: 72rem;
  --space: clamp(1rem, 2.5vw, 2rem);
  --header-offset: 5.5rem;
  /* Tag pills. Contrast ≥ 4.5:1 (WCAG AA). */
  --tag-arrangement-bg: var(--ink); /* #111111 */
  --tag-arrangement-fg: var(--bg); /* #ffffff = 18.88:1 */
  --tag-beatles-bg: #102a83; /* deep royal blue */
  --tag-beatles-fg: var(--bg); /* #ffffff ≈ 12.4:1 */
}

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

html {
  font-size: 137.5%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .back-to-top {
    transition: none;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 560;
  font-optical-sizing: auto;
  line-height: 1.25;
}

button,
input,
textarea,
select {
  font-family: inherit;
}

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

figcaption {
  text-align: center;
}

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

a:hover {
  text-decoration-thickness: 2px;
  color: var(--muted);
}

.skip-link:hover {
  color: var(--bg);
}

h1, h2, h3, p, li {
  overflow-wrap: break-word;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  scroll-margin-top: var(--header-offset);
}

dialog a:focus-visible,
dialog button:focus-visible,
dialog input:focus-visible {
  scroll-margin-top: 0;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  transform: translateY(-250%);
}

.skip-link:focus {
  transform: none;
  color: var(--bg);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
}

.header-inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1rem var(--space);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: block;
  text-decoration: none;
  line-height: 1.15;
  width: max-content;
}

.brand:hover {
  text-decoration: none;
}

.brand:hover .brand-name {
  color: var(--muted);
}

.brand-name {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  white-space: nowrap;
  overflow-wrap: normal;
}

.brand-roles {
  font-weight: 400;
  font-size: 0.7em;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.header-end {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-left: auto;
}

.search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  background: none;
  border: 0;
  padding: 0.45rem;
  color: var(--ink);
  cursor: pointer;
  line-height: 0;
}

.search-toggle:hover {
  color: var(--muted);
}

.search-toggle svg {
  display: block;
  width: 1.75rem;
  height: 1.75rem;
}

.site-search-input {
  flex: 1;
  min-width: 0;
  min-height: 2.75rem;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 2px solid var(--rule);
  padding: 0.4rem 0.7rem;
}

.site-search-input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.site-search-submit {
  flex-shrink: 0;
  min-height: 2.75rem;
  min-width: 5.5rem;
  font-family: var(--sans);
  font-size: 1.125rem;
  letter-spacing: 0.02em;
  color: var(--bg);
  background: var(--ink);
  border: 2px solid var(--rule);
  padding: 0.4rem 0.9rem;
  cursor: pointer;
}

.site-search-submit:hover {
  background: var(--muted);
}

.site-search-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.2rem);
  z-index: 22;
  max-height: min(70vh, 28rem);
  overflow: auto;
  background: var(--bg);
  border: 2px solid var(--rule);
  box-shadow: 0 0.4rem 1rem rgba(0, 0, 0, 0.12);
}

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

.search-dialog {
  width: min(42rem, calc(100vw - 2rem));
  max-height: min(80vh, 38rem);
  padding: 0;
  border: 1px solid var(--rule);
  background: var(--bg);
  color: var(--ink);
}

.search-dialog::backdrop {
  background: rgba(255, 255, 255, 0.82);
}

.search-panel {
  display: flex;
  flex-direction: column;
  max-height: min(80vh, 38rem);
}

.search-bar {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--rule);
}

.search-bar input {
  flex: 1;
  min-width: 0;
  font-size: 1rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0.35rem 0;
}

.search-bar input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.search-bar input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.search-dialog .search-bar input:focus-visible {
  outline: none;
}

.search-dialog:focus-within {
  border-width: 3px;
}

.search-close {
  font-family: var(--sans);
  font-size: 1.125rem;
  background: none;
  border: 0;
  padding: 0.25rem 0;
  color: var(--ink);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.search-dialog .search-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  text-decoration: none;
  border-radius: 999px;
}

.search-dialog .search-close svg {
  display: block;
  width: 22px;
  height: 22px;
}

@media (hover: hover) {
  .search-dialog .search-close:hover {
    background: var(--wash);
  }
}

@media (max-width: 480px) {
  .search-dialog {
    width: calc(100vw - 0.75rem);
    max-width: calc(100vw - 0.75rem);
  }

  .search-bar {
    gap: 0.35rem;
    padding: 0.45rem 0.5rem;
  }

  .search-bar input {
    font-size: 0.84rem;
  }
}

.search-status {
  margin: 0;
  padding: 0.75rem 1rem 0;
  font-family: var(--sans);
  font-size: 1.05rem;
  color: var(--muted);
}

.search-status:empty {
  display: none;
}

.search-results {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0 0.75rem;
  overflow: auto;
  flex: 1;
  min-height: 0;
}

.search-results:empty {
  display: none;
}

.search-dialog .search-bar:has(+ .search-status:empty + .search-results:empty) {
  border-bottom: 0;
}

.search-results [role="option"] {
  display: block;
  padding: 0;
  cursor: pointer;
}

.search-result-link {
  display: block;
  padding: 0.65rem 1rem;
  color: inherit;
  text-decoration: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.08);
}

.search-results [role="option"]:hover,
.search-results [role="option"].is-active {
  background: var(--wash);
}

.search-result-title {
  display: block;
  font-size: 1.2rem;
}

.search-result-title .work-tag {
  vertical-align: 0.12em;
}

.search-result-meta {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--sans);
  font-size: 1.05rem;
  color: var(--muted);
}

.nav-toggle {
  display: none;
  font-family: var(--sans);
  font-size: 1.3rem;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  cursor: pointer;
}

@media (hover: hover) {
  .nav-toggle:hover {
    background: var(--wash);
  }
}

.nav-close {
  display: none;
}

.nav-home {
  display: none;
}

.site-nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.15rem 1.35rem;
  align-items: center;
}

.site-nav > ul > li {
  position: relative;
}

.site-nav a {
  font-family: var(--sans);
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0.4rem 0;
  color: var(--ink);
  cursor: pointer;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 0.28em;
}

.site-nav a:hover {
  color: var(--muted);
}

.site-nav .sub-nav {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  min-width: 14rem;
  background: var(--bg);
  border: 1px solid #4a4a4a; /* on #f3f0ed ≈ 7.8:1, on white ≈ 8.9:1 */
  padding: 0.4rem 0;
  z-index: 20;
  list-style: none;
  margin: 0;
}

@media (min-width: 1280px) and (max-width: 1399px) {
  .site-nav > ul {
    gap: 0.15rem 0.55rem;
  }

  .header-end {
    gap: 0.5rem;
  }
}

@media (min-width: 1280px) {
  .header-inner {
    justify-content: center;
  }

  .header-end {
    margin-left: 0;
    transform: translateY(0.28rem);
  }

  .site-nav .has-sub::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 0.65rem;
  }

  .site-nav .has-sub:hover > .sub-nav {
    display: block;
  }

  .site-nav .sub-nav {
    border-radius: 0.75rem;
    overflow: hidden;
  }
}

.site-nav .has-sub {
  padding-bottom: 0;
  margin-bottom: 0;
}

.site-nav .sub-nav a {
  display: block;
  padding: 0.45rem 0.9rem;
  letter-spacing: 0.02em;
}

.site-main {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2.5rem var(--space) 4rem;
  scroll-margin-top: var(--header-offset);
}

.page-title {
  font-size: clamp(1.75rem, 2.8vw, 2.25rem);
  letter-spacing: 0.02em;
  margin: 0 0 0.35rem;
}

.page-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 26rem);
  grid-template-areas:
    "title search"
    "lede lede";
  align-items: center;
  column-gap: 1.25rem;
  row-gap: 0.35rem;
  margin: 0 0 0.35rem;
}

.page-heading .page-title {
  grid-area: title;
  margin: 0;
  min-width: 0;
}

.page-search {
  grid-area: search;
  position: relative;
  z-index: 5;
  display: flex;
  min-width: 0;
  gap: 0.4rem;
  align-items: stretch;
}

.page-heading .lede {
  grid-area: lede;
}

.page-search .site-search-input {
  min-height: 2.75rem;
  font-size: 1rem;
}

.page-search .site-search-submit {
  min-height: 2.75rem;
}

.lede {
  color: var(--muted);
  max-width: 40rem;
  margin: 0 0 2rem;
}

.site-footer {
  position: relative;
  isolation: isolate;
  padding: 2rem var(--space) 1.5rem;
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--muted);
}

.site-footer::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -0.85rem;
  right: 0;
  bottom: 0;
  left: 0;
  background: var(--palette-band);
  clip-path: shape(
    from 0 1.35rem,
    curve to 100% 1.35rem with 36% 0 / 64% 0,
    vline to 100%,
    hline to 0,
    close
  );
}

.footer-inner {
  max-width: var(--measure);
  margin: 0 auto;
  display: grid;
  gap: 0.35rem;
  text-align: center;
}

.footer-inner p {
  margin: 0;
}

.footer-line {
  display: inline;
}

.back-to-top {
  position: fixed;
  right: var(--space);
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  z-index: 12;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--rule);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: none;
  }
}

.back-to-top svg {
  display: block;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Landing */
.hero-block {
  padding: 2.25rem 0 2.5rem;
  border-bottom: 1px solid var(--rule);
}

.hero-block:first-child {
  padding-top: 0;
}

.hero-block:last-of-type {
  border-bottom: 0;
}

.kicker {
  font-family: var(--sans);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  margin: 0 0 0.65rem;
}

.hero-block h2 {
  font-size: clamp(1.5rem, 2.2vw, 1.85rem);
  margin: 0 0 0.75rem;
}

.hero-block .lede {
  margin-bottom: 1.1rem;
  max-width: 42rem;
}

.featured-piece-title {
  font-size: 1.25rem;
  margin: 0 0 0.35rem;
}

.featured-excerpt {
  margin: 1rem 0 0;
  max-width: 42rem;
  color: var(--muted);
}

.featured-score {
  margin: 0.35rem 0 0;
  max-width: 28rem;
}

.featured-score a {
  display: block;
  line-height: 0;
  text-decoration: none;
}

.featured-score img {
  width: 100%;
  height: auto;
  border: 1px solid rgba(17, 17, 17, 0.18);
  background: var(--bg);
  box-shadow: 0 1px 2px rgba(17, 17, 17, 0.04), 0 10px 28px rgba(17, 17, 17, 0.08);
}

.hero-block .work-links {
  margin-top: 0.15rem;
}

.placeholder-note {
  border: 1px dashed var(--rule-light);
  padding: 1.1rem 1.2rem;
  color: var(--muted);
  max-width: 42rem;
}

.score-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 1.25rem 0 0;
  max-width: 42rem;
}

.score-pair:has(> :nth-child(3)) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 64rem;
}

.score-page {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  line-height: 0;
  cursor: zoom-in;
}

.score-pair figure {
  margin: 0;
}

.score-pair img {
  width: 100%;
  height: auto;
  border: 1px solid rgba(17, 17, 17, 0.18);
  background: var(--bg);
  box-shadow: 0 1px 2px rgba(17, 17, 17, 0.04), 0 10px 28px rgba(17, 17, 17, 0.08);
}

.score-pair figcaption {
  margin-top: 0.45rem;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--muted);
  text-align: center;
  cursor: zoom-in;
}

.score-page:hover + figcaption,
.score-page:focus-visible + figcaption {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.score-entry {
  display: block;
  color: inherit;
  text-decoration: none;
}

.score-entry figcaption {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
  cursor: pointer;
}

.score-entry:hover figcaption {
  text-decoration-thickness: 2px;
}

.score-download {
  margin: 0.3rem 0 0;
  font-family: var(--sans);
  font-size: 1rem;
  text-align: center;
}

figure > figcaption.cover-credit {
  margin: 0.45rem 0 0;
  max-width: none;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--ink);
  text-align: center;
  cursor: auto;
}

.page-home .album-card figure > a {
  display: block;
  line-height: 0;
  text-decoration: none;
}

.page-placeholder {
  margin: 0;
  border: 1px dashed var(--rule-light);
  aspect-ratio: 8.5 / 11;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  color: var(--muted);
  text-align: center;
  background: var(--bg);
}

.page-placeholder figcaption {
  font-family: var(--sans);
  font-size: 1rem;
  margin: 0;
}

.video-placeholder {
  border: 1px dashed var(--rule-light);
  aspect-ratio: 16 / 9;
  max-width: 42rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  padding: 1.1rem 1.2rem;
  text-align: center;
}

.video-placeholder p {
  margin: 0;
  max-width: 22rem;
}

.video-embed {
  aspect-ratio: 16 / 9;
  max-width: 42rem;
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 1.25rem 0 0;
}

.album-card {
  text-decoration: none;
}

.album-card figure,
.about-layout figure {
  margin: 0;
}

.about-layout figcaption {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

.album-card img {
  width: 100%;
  border: 1px solid rgba(17, 17, 17, 0.18);
  box-shadow: 0 1px 2px rgba(17, 17, 17, 0.04), 0 10px 28px rgba(17, 17, 17, 0.08);
}

.album-card figcaption {
  margin-top: 0.55rem;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.35;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.album-subtitle {
  display: block;
  margin: 0.2rem 0 0;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
}

.media-item .album-subtitle {
  margin: 0.15rem 0 0.55rem;
  font-size: 1.2rem;
}

.credits {
  margin-top: 0.85rem;
}

.credits p {
  color: var(--muted);
  max-width: 52rem;
}

.credits p:first-child {
  margin-top: 0;
}

.credits-list {
  margin: 1.25rem 0 0;
  padding-left: 1.15rem;
  columns: 1;
  column-gap: 2rem;
  color: var(--ink);
  font-size: 1.15rem;
}

.credits-list li {
  break-inside: avoid;
  padding: 0.12rem 0;
}

@media (min-width: 640px) {
  .credits-list {
    columns: 2;
  }
}

@media (min-width: 960px) {
  .credits-list {
    columns: 3;
  }
}

/* Catalogue */
.cat-nav,
.section-list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
}

.section-list li {
  border-top: 1px solid var(--rule);
}

.section-list a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  text-decoration: none;
  font-size: 1.125rem;
}

.section-list a:hover span:first-child {
  text-decoration: underline;
}

.section-list a span:first-child {
  min-width: 0;
}

.section-list small {
  font-family: var(--sans);
  font-size: 1.05rem;
  color: var(--muted);
  align-self: center;
  flex-shrink: 0;
  white-space: nowrap;
}

.work {
  padding: 1.15rem 0;
  border-top: 1px solid var(--rule);
  scroll-margin-top: var(--header-offset);
}

.work:last-child {
  border-bottom: 1px solid var(--rule);
}

.work h3 {
  font-size: 1.25rem;
  margin: 0 0 0.25rem;
}

.catno {
  font-family: var(--sans);
  font-size: 1.05rem;
  color: var(--muted);
  margin-left: 0.4rem;
  white-space: nowrap;
}

.work-tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: 1rem;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--tag-arrangement-fg);
  background: var(--tag-arrangement-bg);
  border-radius: 999px;
  padding: 0.28em 0.6em;
  margin-left: 0.45rem;
  vertical-align: 0.15em;
  white-space: nowrap;
}

.work-tag--beatles {
  color: var(--tag-beatles-fg);
  background: var(--tag-beatles-bg);
}

.meta {
  margin: 0 0 0.55rem;
  color: var(--muted);
  font-size: 1.15rem;
}

.work-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  font-family: var(--sans);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

/* Rights-holder contact. #111 on #fff ≈ 18.7:1 (1.4.6 AAA).
   Underline is not color-only. 44px target (2.5.5 AAA). */
.composer-contact {
  margin: 0.35rem 0 0;
  font-family: var(--sans);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.composer-contact a {
  display: inline-block;
  max-width: 100%;
  min-height: 44px;
  min-width: 44px;
  padding: 0.5rem 0.15rem;
  color: var(--ink);
  background-color: var(--bg);
  line-height: 1.5;
  text-decoration-line: underline;
  text-decoration-color: var(--ink);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
  overflow-wrap: break-word;
}

.composer-contact a:hover {
  text-decoration-thickness: 2px;
  color: var(--muted);
  text-decoration-color: var(--muted);
}

.breadcrumb {
  font-family: var(--sans);
  font-size: 1.05rem;
  margin: 0 0 1.1rem;
  color: var(--muted);
}

.breadcrumb:has(+ .palette-band) {
  margin-bottom: 1.65rem;
}

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

.breadcrumb a:hover {
  color: var(--muted);
}

.samples {
  display: grid;
  gap: 1.25rem;
  justify-items: center;
}

.samples figure {
  margin: 0 auto;
  width: fit-content;
  max-width: 100%;
  border: 1px solid var(--rule);
  padding: 0.5rem;
}

.samples img {
  margin-inline: auto;
  width: auto;
  max-width: 100%;
  height: auto;
}

.samples figcaption {
  font-family: var(--sans);
  font-size: 1rem;
  margin-top: 0.4rem;
  color: var(--muted);
}

.samples .score-download {
  justify-self: start;
}

.samples-pdf {
  display: block;
  width: 100%;
  max-width: 56rem;
  height: calc(100vh - 12rem);
  min-height: 36rem;
  border: 1px solid var(--rule);
  background: var(--bg);
}

.note-return {
  margin: 0 0 1.35rem;
  font-family: var(--sans);
  font-size: 1.05rem;
}

.note-body + .note-return {
  margin: 1.75rem 0 0;
}

.note-body {
  max-width: 42rem;
}

.note-body p {
  margin: 0 0 1.15em;
}

.note-body p:last-child {
  margin-bottom: 0;
}

.note-body em,
.note-body i {
  font-style: italic;
}

.note-body strong,
.note-body b {
  font-weight: 600;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(12rem, 18rem) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.about-portrait {
  width: fit-content;
  max-width: 100%;
}

.about-portrait .photo-zoom {
  width: auto;
  max-width: 100%;
}

.about-portrait img {
  width: auto;
  max-width: min(18rem, 100%);
  height: auto;
  max-height: min(36rem, calc(100dvh - var(--header-offset) - 8rem));
  object-fit: contain;
  object-position: center top;
  display: block;
  border: 1px solid rgba(17, 17, 17, 0.18);
  box-shadow: 0 1px 2px rgba(17, 17, 17, 0.04), 0 10px 28px rgba(17, 17, 17, 0.08);
}

.read-more {
  margin: 0 0 1rem;
}

.read-more summary {
  font-family: var(--sans);
  font-size: 1.15rem;
  cursor: pointer;
  width: fit-content;
  min-height: 1.5rem;
  padding: 0.45rem 0;
  color: var(--ink);
}

.read-more summary::-webkit-details-marker,
.read-more summary::marker {
  display: none;
  content: "";
}

.read-more-hide {
  display: none;
}

.read-more[open] .read-more-show {
  display: none;
}

.read-more[open] .read-more-hide {
  display: inline;
}

.read-more[open] summary {
  margin-bottom: 0.75rem;
}

.about-gallery {
  margin-top: 2.75rem;
}

.about-gallery h2 {
  font-size: 1.35rem;
  margin: 0 0 1rem;
}

.about-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.about-gallery figure {
  margin: 0;
}

.about-gallery img {
  width: 100%;
  display: block;
  border: 1px solid rgba(17, 17, 17, 0.18);
  box-shadow: 0 1px 2px rgba(17, 17, 17, 0.04), 0 10px 28px rgba(17, 17, 17, 0.08);
}

.about-portrait img,
.about-gallery img,
[data-photo-dialog] .photo-dialog-stage img {
  border-radius: 0.3rem;
}

.photo-zoom {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  line-height: 0;
}

.photo-dialog {
  position: fixed;
  top: 0.75rem;
  bottom: 0.75rem;
  left: 0;
  right: 0;
  width: min(72rem, calc(100vw - 1.5rem));
  height: auto;
  max-height: none;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--bg);
  color: var(--ink);
}

.photo-dialog::backdrop {
  background: rgba(255, 255, 255, 0.82);
}

.photo-dialog-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
}

.photo-dialog-bar {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 0.9rem 1.15rem;
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
}

.photo-dialog-title {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  letter-spacing: 0.01em;
}

.photo-dialog-bar .search-close {
  flex-shrink: 0;
}

.photo-dialog-nav {
  display: flex;
  gap: 0.85rem;
  flex-shrink: 0;
}

.photo-dialog-nav button,
.photo-dialog-nav a {
  font-family: var(--sans);
  font-size: 1.125rem;
  background: none;
  border: 0;
  padding: 0.25rem 0;
  color: var(--ink);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.photo-dialog-nav a:hover {
  color: var(--muted);
}

.photo-dialog-nav a[hidden] {
  display: none;
}

.photo-dialog-nav button:disabled {
  opacity: 0.35;
  cursor: default;
  text-decoration: none;
}

.photo-dialog-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 1rem 1.15rem 1.25rem;
}

.photo-dialog-stage figure {
  margin: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.photo-dialog-stage img {
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: calc(100dvh - 9rem);
  object-fit: contain;
  border: 1px solid var(--rule);
}

[data-photo-dialog] .photo-dialog-stage img {
  border: 1px solid rgba(17, 17, 17, 0.18);
  box-shadow: 0 1px 2px rgba(17, 17, 17, 0.04), 0 10px 28px rgba(17, 17, 17, 0.08);
}

.photo-dialog-stage figcaption {
  margin-top: 0.6rem;
  font-family: var(--sans);
  font-size: 1.05rem;
  color: var(--muted);
}

.score-pdf {
  display: block;
  width: 100%;
  height: calc(100vh - 8.5rem);
  border: 1px solid var(--rule);
  background: var(--bg);
}

.photo-dialog-stage:has(.score-pdf) {
  display: block;
  overflow: hidden;
  padding: 0;
}

.photo-dialog-stage .score-pdf-fallback {
  margin: 1.25rem;
  font-family: var(--sans);
}

/* Mobile sample pages stay in the site so Back can close them. */
.pdf-viewer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
}

.pdf-viewer::backdrop {
  background: rgba(255, 255, 255, 0.82);
}

.pdf-viewer-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100dvh;
  min-height: 0;
}

.pdf-viewer-bar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
  z-index: 2;
  padding: max(0.5rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) 0.5rem max(1rem, env(safe-area-inset-left));
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
}

.pdf-viewer-back,
.pdf-viewer-open {
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.2;
  flex-shrink: 0;
  min-height: 2.75rem;
  padding: 0.35rem 0.1rem;
  border: 0;
  background: none;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.pdf-viewer-title {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
}

.pdf-viewer-stage {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0.85rem 0.85rem max(1.25rem, env(safe-area-inset-bottom));
}

.pdf-viewer-pages {
  display: grid;
  gap: 0.85rem;
}

.pdf-viewer-pages canvas {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  border: 1px solid var(--rule);
}

.pdf-viewer-status {
  margin: 0.35rem 0.15rem 0;
  font-family: var(--sans);
  font-size: 1.05rem;
}

.audio-player {
  bottom: auto;
  height: auto;
  border-bottom: 1px solid var(--rule);
}

.audio-player .pdf-viewer-panel {
  height: auto;
  max-height: none;
}

.audio-player .pdf-viewer-stage {
  flex: none;
  overflow: visible;
}

.audio-player-control {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
}

.about-gallery figcaption {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

.prose p {
  margin: 0 0 1rem;
}

.contact-form {
  display: grid;
  gap: 0.85rem;
  max-width: 36rem;
  position: relative;
}

.contact-form label {
  font-family: var(--sans);
  font-size: 1.05rem;
  display: grid;
  gap: 0.35rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  font: inherit;
  font-size: 1.2rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 0.75rem;
  padding: 0.55rem 0.65rem;
  width: 100%;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #595959; /* on #ffffff ≈ 7.0:1 */
  opacity: 1;
}

.contact-form button {
  font-family: var(--sans);
  /* 1.125rem is 24.75px at the 22px root: above the 18pt large-text size. */
  font-size: 1.125rem;
  line-height: 1.2;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  border-radius: 0.75rem;
  padding: 0.7rem 1rem;
  cursor: pointer;
  width: fit-content;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

@media (hover: hover) {
  .contact-form button:hover:not(:disabled) {
    box-shadow: 0 10px 24px rgba(20, 19, 17, 0.34), 0 2px 6px rgba(20, 19, 17, 0.2);
    transform: translateY(-2px);
  }

  html[data-theme="dark"] .contact-form button:hover:not(:disabled) {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(246, 243, 238, 0.28);
  }
}

@media (hover: hover) and (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .contact-form button:hover:not(:disabled) {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(246, 243, 238, 0.28);
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-form button {
    transition: none;
  }
}

.contact-form button:disabled {
  cursor: default;
  opacity: 0.7;
}

.form-status {
  color: var(--muted);
  min-height: 1.4em;
}

.media-list {
  display: grid;
  gap: 2.5rem;
}

.media-item {
  display: grid;
  grid-template-columns: minmax(0, 12rem) minmax(0, 1fr);
  gap: 1.5rem;
  padding-top: 1.5rem;
}

.media-item.palette-band {
  padding-top: 1.35rem;
  padding-bottom: 1.5rem;
}

.media-item img {
  border: 1px solid rgba(17, 17, 17, 0.18);
  box-shadow: 0 1px 2px rgba(17, 17, 17, 0.04), 0 10px 28px rgba(17, 17, 17, 0.08);
  width: 100%;
  display: block;
}

.album-cover {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  line-height: 0;
}

.album-dialog {
  position: fixed;
  top: 0.75rem;
  bottom: 0.75rem;
  left: 0;
  right: 0;
  width: min(90rem, calc(100vw - 1.5rem));
  height: auto;
  max-height: none;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--bg);
  color: var(--ink);
}

.album-dialog::backdrop {
  background: rgba(255, 255, 255, 0.82);
}

.album-dialog-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.album-dialog-bar {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.15rem;
  border-bottom: 1px solid var(--rule);
}

.album-dialog-title {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  letter-spacing: 0.01em;
}

.album-dialog-bar .search-close {
  flex-shrink: 0;
}

.album-dialog-bar .photo-dialog-nav[hidden],
.album-zoom-stage[hidden],
.album-dialog-images[hidden] {
  display: none;
}

.album-zoom,
.album-zoom-out {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  line-height: 0;
}

.album-zoom {
  cursor: zoom-in;
}

.album-zoom-out {
  cursor: zoom-out;
}

.album-zoom-stage {
  flex: 1;
  min-height: 0;
}

.album-zoom-stage img {
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: none;
}

.album-dialog-images {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-content: start;
  min-height: 0;
  overflow: auto;
  padding: 1rem 1.15rem 1.25rem;
}

.album-dialog-images figure {
  margin: 0;
}

.album-dialog-images img {
  width: 100%;
  height: auto;
  max-height: calc(100vh - 8rem);
  object-fit: contain;
  border: 1px solid rgba(17, 17, 17, 0.18);
  background: var(--bg);
  box-shadow: 0 1px 2px rgba(17, 17, 17, 0.04), 0 10px 28px rgba(17, 17, 17, 0.08);
}

.album-dialog-images figcaption {
  margin-top: 0.45rem;
  font-family: var(--sans);
  font-size: 1.05rem;
  color: var(--muted);
}

.track-list {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.tracks h3 {
  font-size: 1.125rem;
  margin: 1rem 0 0.35rem;
}

.track-list li {
  margin: 0.35rem 0;
}

@media (max-width: 1279px) {
  :root {
    --header-offset: 9.5rem;
  }

  .page-heading {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "lede"
      "search";
    align-items: stretch;
    row-gap: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .page-heading .lede {
    margin-bottom: 0;
  }

  .page-search {
    max-width: none;
    flex-wrap: wrap;
  }

  .page-search .site-search-input {
    flex: 1 1 100%;
  }

  .page-search .site-search-submit {
    flex: 1 1 100%;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-close {
    display: none;
    position: fixed;
    top: 1rem;
    right: var(--space);
    z-index: 25;
    font-family: var(--sans);
    font-size: 2rem;
    line-height: 1;
    background: none;
    border: 0;
    padding: 0.2rem 0.45rem;
    color: var(--ink);
    cursor: pointer;
  }

  .site-nav.is-open .nav-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-home {
    display: block;
  }

  body.nav-open .nav-toggle,
  body.nav-open .search-toggle {
    visibility: hidden;
  }

  body.nav-open .page-search {
    visibility: hidden;
    pointer-events: none;
  }

  .header-inner {
    flex-wrap: wrap;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    min-width: 0;
    padding-inline: 0.55rem;
  }

  .brand {
    width: 100%;
    min-width: 0;
    flex: none;
    text-align: center;
  }

  .brand-name {
    white-space: normal;
    font-size: clamp(1.5rem, 9vw, 1.7rem);
  }

  .brand-roles {
    font-size: 0.7em;
  }

  .header-end {
    position: static;
    width: 100%;
    margin-left: 0;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    gap: 0.75rem;
  }

  .header-end .search-toggle {
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--rule);
    border-radius: 999px;
  }

  .header-end .search-toggle svg {
    width: 22px;
    height: 22px;
  }

  .header-end .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    margin: 0;
    padding: 0 1rem;
    font-size: 1.05rem;
    line-height: 1;
  }

  .header-end .theme-switch {
    margin: 0;
    border-color: var(--rule);
  }

  .header-end .theme-switch button {
    border-right-color: var(--rule);
  }

  body.nav-open .theme-switch {
    visibility: hidden;
  }

  .site-header {
    position: sticky;
    z-index: 20;
    background: var(--bg);
  }

  .site-nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 15;
    background: var(--bg);
    padding: 5.5rem var(--space) 2rem;
    overflow: auto;
  }

  .site-nav.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav > ul {
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    text-align: center;
    gap: 1.25rem;
    width: 100%;
    min-height: calc(100dvh - 8.5rem);
  }

  .site-nav:has(.has-sub.is-expanded) > ul {
    min-height: 0;
    justify-content: center;
    gap: clamp(0.45rem, 1.6vh, 0.7rem);
  }

  .site-nav a {
    font-size: clamp(1.25rem, 4.5vw, 1.5rem);
    padding: 0.45rem 0.75rem;
    line-height: 1.3;
  }

  .site-nav .has-sub {
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .site-nav .has-sub.is-expanded > .sub-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: static;
    border: 0;
    min-width: 0;
    padding: 0.35rem 0 0.15rem;
    text-align: center;
    gap: clamp(0.28rem, 1.5vh, 0.55rem);
  }

  .site-nav .sub-nav a {
    padding: 0.35rem 0.5rem;
    font-size: clamp(1rem, 3.6vw, 1.15rem);
    line-height: 1.35;
  }

  body.nav-open {
    overflow: hidden;
  }

  .album-grid,
  .about-layout,
  .about-gallery-grid,
  .media-item,
  .score-pair,
  .score-pair:has(> :nth-child(3)) {
    grid-template-columns: 1fr;
  }

  .page-home .score-pair,
  .page-beatles .score-pair,
  .page-home .score-pair:has(> :nth-child(3)),
  .page-beatles .score-pair:has(> :nth-child(3)) {
    max-width: min(100%, 22rem);
  }

  .album-card {
    max-width: 19rem;
    margin-inline: auto;
  }

  .about-portrait {
    max-width: 16rem;
    margin-inline: auto;
  }

  .about-portrait img {
    max-width: min(16rem, 100%);
  }

  .credits-list {
    columns: 1;
  }

  .album-dialog,
  .photo-dialog {
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: auto;
    margin: 0;
  }

  .album-dialog-images {
    grid-template-columns: 1fr;
  }

  .album-dialog-images img {
    max-height: none;
  }

  .album-dialog-bar,
  .photo-dialog-bar {
    flex-wrap: wrap;
    gap: 0.45rem 0.75rem;
    padding: max(0.75rem, env(safe-area-inset-top)) 1rem 0.75rem;
  }

  .album-dialog-title,
  .photo-dialog-title {
    flex-basis: 100%;
  }

  .photo-dialog-stage img {
    max-height: calc(100dvh - 9rem);
  }

  .score-pdf {
    height: calc(100dvh - 8.5rem);
  }

  .page-home .site-main {
    padding-top: 0.85rem;
  }

  .page-home .header-inner {
    padding-block: 0.5rem 0.35rem;
    gap: 0.15rem;
  }

  .page-home .hero-block:first-child {
    padding-bottom: 1.15rem;
  }

  .page-home .hero-block:first-child .kicker {
    margin-bottom: 0.2rem;
  }

  .page-home .hero-block:first-child h2 {
    margin-bottom: 0.3rem;
  }

  .page-home .hero-block:first-child .lede {
    margin-bottom: 0.45rem;
  }

  .page-home .score-pair {
    margin-top: 0.45rem;
  }

  .section-list a {
    flex-wrap: wrap;
  }

  .section-list small,
  .catno {
    white-space: normal;
  }

  .footer-inner {
    text-align: center;
    gap: 0;
  }

  .footer-inner .footer-line {
    display: block;
    line-height: 1.45;
  }

  .page-home .score-pair figure:nth-child(n + 2),
  .page-beatles .score-pair figure:nth-child(n + 2) {
    display: none;
  }

  .page-home .album-grid .album-card:nth-child(n + 2) {
    display: none;
  }

  .page-home .album-card {
    max-width: 22rem;
  }
}

@media (max-width: 560px) {
  .brand-roles {
    display: block;
  }

  .brand-comma {
    display: none;
  }
}

/* Tablet. Desktop is 1280px and up. Mobile is 759px and below. */
@media (min-width: 760px) and (max-width: 1279px) {
  .about-layout {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1.15rem;
  }

  .about-portrait {
    max-width: none;
    margin-inline: 0;
  }

  .about-portrait img {
    max-width: min(20rem, 42vw);
    max-height: min(34rem, calc(100dvh - var(--header-offset) - 7rem));
  }

  .about-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 759px) {
  .about-portrait {
    justify-self: center;
    width: min(100%, 16rem);
    max-width: min(100%, 16rem);
    margin-inline: auto;
    text-align: center;
  }

  .about-portrait .photo-zoom,
  .about-portrait img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
    margin-inline: auto;
  }

  .about-portrait .photo-zoom:hover,
  .about-portrait .photo-zoom:focus,
  .about-portrait .photo-zoom:focus-visible,
  .about-portrait img:hover,
  .about-portrait img:focus {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
    transform: none;
  }
}

/* Landing. Desktop is 1280px and up. Tablet is 760–1279px. Mobile is 759px and below. */
.page-home .score-pair,
.page-home .album-grid {
  grid-template-columns: minmax(0, 1fr);
  max-width: none;
  margin-top: 0.55rem;
}

.page-home .featured-score {
  max-width: none;
  margin-top: 0.55rem;
}

.page-home .kicker {
  margin-bottom: 0.3rem;
}

.page-home .hero-block h2 {
  margin-bottom: 0.45rem;
}

.page-home .featured-piece-title {
  margin: 0.85rem 0 0.35rem;
}

.page-home .home-hero-copy,
.page-home .home-albums-copy {
  min-width: 0;
  max-width: 36rem;
}

.page-home .home-hero-more {
  margin: 0 0 0.85rem;
  font-family: var(--sans);
  font-size: 1.05rem;
}

.page-home .home-hero .score-pair,
.page-home .album-card,
.page-home .home-featured .featured-score {
  width: fit-content;
  max-width: 100%;
}

.page-home .home-hero .score-pair figure,
.page-home .home-hero .score-entry {
  width: fit-content;
  max-width: 100%;
}

.page-home .home-hero .score-pair img {
  width: auto;
  max-width: min(29rem, 100%);
  height: auto;
  max-height: calc(100dvh - var(--header-offset) - 6.5rem);
}

.page-home .album-card img {
  width: auto;
  max-width: min(22rem, 100%);
  height: auto;
  max-height: calc(100dvh - var(--header-offset) - 8rem);
}

.page-home .home-featured .featured-score img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100dvh - var(--header-offset) - 8rem);
}

.page-home .home-hero .score-pair figcaption,
.page-home .album-card figcaption {
  text-align: center;
  text-decoration: none;
}

.page-home .hero-block .lede,
.page-home .featured-excerpt {
  max-width: none;
  margin-bottom: 0;
}

.page-home .hero-block .lede {
  margin-top: 0.35rem;
}

.page-home .hero-block.home-about {
  margin: 1.75rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid transparent;
  border-bottom: 0;
  color: var(--muted);
}

.page-home {
  overflow-x: clip;
}

.page-home .hero-block {
  border-bottom-color: transparent;
}

.page-home .home-about p {
  margin: 0;
  max-width: 56rem;
}

@media (min-width: 1280px) {
  .page-home .site-main {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2rem;
    align-items: start;
    padding-top: 1.15rem;
    padding-bottom: 2.25rem;
    padding-left: 5rem;
  }

  .page-home .hero-block {
    min-width: 0;
    padding: 0;
    border-bottom: 0;
  }

  .page-home .home-hero {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto auto;
    column-gap: 1.5rem;
    align-items: start;
    justify-content: center;
  }

  .page-home .home-hero .score-pair {
    width: fit-content;
    max-width: min(26rem, 100%);
  }

  .page-home .home-hero .score-pair img {
    width: auto;
    max-width: min(26rem, 100%);
    height: auto;
    max-height: calc(100dvh - var(--header-offset) - 8rem);
  }

  .page-home .hero-block.home-hero h2 {
    font-size: clamp(1.85rem, 2.6vw, 2.35rem);
  }

  .page-home .home-albums {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 16rem) minmax(16rem, 1fr);
    column-gap: 1.35rem;
    align-items: start;
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid transparent;
  }

  .page-home .home-albums .album-card {
    width: 100%;
    max-width: 16rem;
  }

  .page-home .home-albums .album-card img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    object-position: top center;
  }

  .page-home .hero-block.home-albums h2 {
    font-size: clamp(1.85rem, 2.6vw, 2.35rem);
  }

  .page-home .home-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(14rem, 20rem);
    column-gap: 1.35rem;
    align-items: start;
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid transparent;
    border-left: 0;
  }

  .page-home .home-featured .kicker {
    grid-column: 1;
    grid-row: 1;
  }

  .page-home .home-featured h2 {
    grid-column: 1;
    grid-row: 2;
    font-size: clamp(1.5rem, 2vw, 1.85rem);
  }

  .page-home .home-featured .featured-excerpt {
    grid-column: 1;
    grid-row: 3;
    max-width: 40rem;
    margin-top: 0.35rem;
  }

  .page-home .home-featured .featured-score {
    grid-column: 2;
    grid-row: 1 / span 3;
    margin: 0;
    justify-self: start;
  }

  .page-home .home-featured .featured-score img {
    width: auto;
    max-width: 100%;
    max-height: min(22rem, calc(100dvh - var(--header-offset) - 8rem));
    height: auto;
  }

  .page-home .home-about {
    grid-column: 1 / -1;
  }
}

@media (min-width: 760px) and (max-width: 1279px) {
  .page-home .site-main {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.25rem;
    align-items: start;
    padding-top: 1rem;
    padding-bottom: 2rem;
    padding-left: 3.25rem;
  }

  .page-home .hero-block {
    min-width: 0;
    padding: 0;
    border-bottom: 0;
  }

  .page-home .hero-block:first-child {
    padding-bottom: 0;
  }

  .page-home .home-hero {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto auto;
    column-gap: 1.15rem;
    align-items: start;
    justify-content: center;
    padding-bottom: 0;
  }

  .page-home .home-hero .score-pair {
    width: fit-content;
    max-width: min(20rem, 100%);
  }

  .page-home .home-hero .score-pair img {
    width: auto;
    max-width: min(20rem, 100%);
    height: auto;
  }

  .page-home .hero-block.home-hero h2 {
    font-size: 1.65rem;
  }

  .page-home .home-albums {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 14rem) minmax(12rem, 1fr);
    column-gap: 1rem;
    align-items: start;
    margin-top: 1.35rem;
    padding-top: 1.25rem;
    padding-left: 0;
    border-top: 1px solid transparent;
    border-left: 0;
  }

  .page-home .home-albums .album-card {
    width: 100%;
    max-width: 14rem;
  }

  .page-home .home-albums .album-card img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    object-position: top center;
  }

  .page-home .hero-block.home-albums h2 {
    font-size: 1.65rem;
  }

  .page-home .score-pair,
  .page-home .album-card {
    max-width: 100%;
    margin-inline: 0;
  }

  .page-home .hero-block h2 {
    font-size: 1.35rem;
  }

  .page-home .home-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(10rem, 14rem);
    column-gap: 1rem;
    align-items: start;
    margin-top: 1.35rem;
    padding-top: 1.25rem;
    border-top: 1px solid transparent;
    border-left: 0;
    padding-left: 0;
  }

  .page-home .home-featured .kicker {
    grid-column: 1;
    grid-row: 1;
  }

  .page-home .home-featured h2 {
    grid-column: 1;
    grid-row: 2;
    font-size: 1.35rem;
  }

  .page-home .home-featured .featured-excerpt {
    grid-column: 1;
    grid-row: 3;
    margin-top: 0.35rem;
  }

  .page-home .home-featured .featured-score {
    grid-column: 2;
    grid-row: 1 / span 3;
    max-width: none;
    margin: 0;
    justify-self: start;
  }

  .page-home .home-featured .featured-score img {
    width: auto;
    max-width: 100%;
    max-height: min(18rem, calc(100dvh - var(--header-offset) - 8rem));
    height: auto;
  }

  .page-home .home-about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 759px) {
  .page-home .hero-block + .hero-block {
    border-left: 0;
    padding-left: 0;
  }

  .page-home .home-hero {
    display: block;
  }

  .page-home .home-hero .score-pair,
  .page-home .home-hero .score-pair figure,
  .page-home .home-hero .score-entry,
  .page-home .home-albums .album-card,
  .page-home .home-albums .album-card figure,
  .page-home .home-albums .album-card figure > a,
  .page-home .home-featured .featured-score,
  .page-home .home-featured .featured-score a {
    width: min(100%, 26rem);
    max-width: min(100%, 26rem);
    margin-inline: auto;
  }

  .page-home .home-hero .score-pair img,
  .page-home .home-albums .album-card img,
  .page-home .home-featured .featured-score img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
    margin-inline: auto;
  }

  .page-home .home-albums {
    display: block;
  }

  .page-home .home-albums .album-card {
    display: block;
  }

  .page-home .home-hero-copy,
  .page-home .home-albums-copy,
  .page-home .featured-piece-title,
  .page-home .hero-block .lede,
  .page-home .featured-excerpt,
  .page-home .home-about {
    text-align: center;
  }

  .page-home .home-hero-copy,
  .page-home .home-albums-copy {
    max-width: none;
  }

  .page-home .hero-block.home-about {
    border-top: 0;
    margin-top: 0;
  }
}

/* Beatles page. Same side-by-side idea as the landing page. */
.page-quote {
  margin: 0.45rem 0 0;
  padding: 0;
  border: 0;
  max-width: 34rem;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 560;
  line-height: 1.5;
  quotes: "\201C" "\201D" "\2018" "\2019";
}

.page-quote p {
  margin: 0;
  overflow-wrap: break-word;
}

.page-quote p::before {
  content: open-quote;
}

.page-quote p::after {
  content: close-quote;
}

.page-quote footer {
  margin-top: 0.7rem;
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--muted);
}

.page-beatles .beatles-hero {
  padding-top: 0.15rem;
  padding-bottom: 0;
  border-bottom: 0;
}

.page-beatles .beatles-hero .score-pair {
  display: block;
  grid-column: 1;
  grid-row: 1;
  width: fit-content;
  max-width: min(22rem, 100%);
  margin: 0;
}

.page-beatles .beatles-hero .score-pair figure,
.page-beatles .beatles-hero .score-entry {
  width: fit-content;
  max-width: 100%;
}

.page-beatles .beatles-hero .score-pair img {
  width: auto;
  max-width: 100%;
  height: auto;
}

.page-beatles .beatles-hero-copy .kicker {
  margin: 1.35rem 0 0.3rem;
}

.page-beatles .beatles-hero-copy h2 {
  margin-bottom: 0.35rem;
}

.page-beatles .beatles-hero-copy .meta {
  margin-bottom: 0;
}

.page-beatles .beatles-lower {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 0;
}

.page-beatles .beatles-hero.palette-band::before {
  top: -1.5rem;
  left: calc(-1 * var(--bleed-left, 0px));
  transform: none;
}

.page-beatles .beatles-lower .hero-block {
  padding: 0;
  border-bottom: 0;
}

.page-beatles .beatles-lower .hero-block + .hero-block {
  margin-top: 1.75rem;
}

.page-beatles .beatles-lower .lede {
  margin-bottom: 1rem;
}

.page-beatles .beatles-video-row {
  display: grid;
  gap: 1.15rem;
  align-items: stretch;
}

.page-beatles .video-details {
  border: 1px dashed var(--rule-light);
  padding: 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.45rem;
}

.page-beatles .video-song,
.page-beatles .video-performers,
.page-beatles .video-more {
  margin: 0;
}

.page-beatles .video-song,
.page-beatles .video-performers {
  color: var(--muted);
  line-height: 1.5;
}

.page-beatles .video-song {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 560;
  color: var(--ink);
}

.page-beatles .video-more a {
  display: inline-block;
  min-height: 44px;
  padding-block: 0.45rem;
  line-height: 1.5;
}

@media (min-width: 760px) {
  .page-beatles .beatles-hero {
    display: grid;
    grid-template-columns: minmax(0, 23rem) minmax(14rem, 1fr);
    column-gap: 1.35rem;
    align-items: start;
  }

  .page-beatles .beatles-hero-copy {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }

  .page-beatles .beatles-hero .score-pair {
    width: 100%;
    max-width: 23rem;
  }

  .page-beatles .beatles-hero .score-pair img {
    max-width: min(23rem, 100%);
    max-height: calc(100dvh - var(--header-offset) - 8rem);
  }

  .page-beatles:has(.beatles-hero) .site-main {
    padding-left: 3.25rem;
  }

  .page-beatles .beatles-video-row {
    grid-template-columns: minmax(0, 1.4fr) minmax(14rem, 0.9fr);
    column-gap: 1.75rem;
  }

  .page-beatles .beatles-video .video-placeholder {
    max-width: none;
    width: 100%;
  }
}

@media (min-width: 1280px) {
  .page-beatles .beatles-hero {
    grid-template-columns: minmax(0, 29rem) minmax(16rem, 1fr);
    column-gap: 1.75rem;
  }

  .page-beatles .beatles-hero .page-title {
    font-size: clamp(1.85rem, 2.6vw, 2.35rem);
  }

  .page-beatles .beatles-hero .score-pair,
  .page-beatles .beatles-hero .score-pair img {
    max-width: min(29rem, 100%);
  }

  .page-beatles .beatles-hero .score-pair img {
    max-height: calc(100dvh - var(--header-offset) - 6.5rem);
  }

  .page-beatles:has(.beatles-hero) .site-main {
    padding-left: 5rem;
  }

  .page-beatles .beatles-video-row {
    column-gap: 2rem;
  }
}

@media (max-width: 759px) {
  .page-beatles .beatles-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .page-beatles .beatles-hero-copy,
  .page-beatles .beatles-hero .score-pair {
    min-width: 0;
    max-width: 100%;
  }

  .page-beatles .beatles-hero-copy {
    order: 1;
    text-align: center;
  }

  .page-beatles .beatles-hero .score-pair {
    order: 2;
    width: min(18rem, 100%);
    margin-top: 1.15rem;
  }

  .page-beatles .beatles-hero .score-pair img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .page-beatles .page-quote {
    margin-inline: auto;
  }

  .page-beatles .beatles-hero .score-pair,
  .page-beatles .beatles-hero .score-pair figure,
  .page-beatles .beatles-hero .score-entry {
    margin-inline: auto;
  }

  .page-beatles .video-placeholder {
    margin-inline: auto;
  }
}

.theme-switch {
  display: inline-flex;
  border: 1px solid var(--rule-light);
  border-radius: 999px;
  background: var(--bg);
  overflow: hidden;
}

.theme-switch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-right: 1px solid var(--rule-light);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.theme-switch button:last-child {
  border-right: 0;
}

.theme-switch button:hover {
  background: var(--wash);
}

.theme-switch button[aria-checked="true"],
.theme-switch button[aria-checked="true"]:hover {
  background: var(--ink);
  color: var(--bg);
}

.theme-switch button:focus-visible {
  outline-offset: -3px;
  z-index: 1;
}

@media (max-width: 420px) {
  .header-end {
    gap: 0.4rem;
  }

  .header-end .nav-toggle {
    padding: 0 0.75rem;
  }

  .header-end .theme-switch button {
    width: 40px;
    height: 44px;
  }
}

body {
  --palette-accent: #111111;
  --palette-accent-hover: #414141; /* white on hover ≈ 10.2:1 */
  --palette-band: #f3f0ed; /* album-cover padding; #111 on the band ≈ 16.6:1 */
  --palette-chip: #ffffff;
  --palette-chip-ink: #111111;
  --palette-on-accent: #ffffff;
  overflow-x: clip;
}

.kicker {
  color: var(--palette-accent);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  display: block;
  width: 1.75rem;
  height: 3px;
  margin: 0 0 0.4rem;
  background: var(--palette-accent);
}

h2 a {
  text-decoration-color: var(--palette-accent);
  text-decoration-thickness: 1px;
}

h2 a:hover {
  color: var(--muted);
  text-decoration-color: var(--muted);
}

.page-home .home-hero,
.page-home .home-featured {
  position: relative;
  isolation: isolate;
  padding-bottom: 1.5rem;
}

@media (min-width: 760px) {
  .page-home .home-albums,
  .page-home .home-about {
    margin-top: 0;
  }

  .page-home .home-hero {
    padding-bottom: 2.85rem;
  }

  .page-home .home-featured {
    padding-bottom: 3.25rem;
  }
}

@media (min-width: 1280px) {
  .page-home .home-hero {
    padding-bottom: 3.25rem;
  }
}

.page-home .home-hero::before,
.page-home .home-featured::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -0.8rem;
  bottom: -0.8rem;
  left: calc(-1 * var(--bleed-left, 0px));
  width: 100vw;
  background: var(--palette-band);
  clip-path: shape(
    from 0 1.35rem,
    curve to 100% 1.35rem with 36% 0 / 64% 0,
    vline to calc(100% - 1.35rem),
    curve to 0 calc(100% - 1.35rem) with 64% 100% / 36% 100%,
    close
  );
}

.page-home .home-hero::before {
  top: -0.85rem;
}

.page-home .home-featured::before {
  top: 1.25rem;
  bottom: -0.9rem;
}

@media (min-width: 760px) and (max-width: 1279px) {
  .page-home .home-hero::before {
    top: -1rem;
    bottom: -0.95rem;
  }

  .page-home .home-featured::before {
    top: -0.4rem;
    bottom: -3.35rem;
  }
}

@media (min-width: 1280px) {
  .page-home .home-hero::before {
    top: -1.15rem;
    bottom: -1.25rem;
  }

  .page-home .home-featured::before {
    top: -0.12rem;
    bottom: -3.35rem;
  }
}

@media (max-width: 759px) {
  .page-home .home-hero::before {
    top: -1.2rem;
    clip-path: shape(
      from 0 0.75rem,
      curve to 100% 0.75rem with 36% 0 / 64% 0,
      vline to calc(100% - 1.35rem),
      curve to 0 calc(100% - 1.35rem) with 64% 100% / 36% 100%,
      close
    );
  }
}

.home-featured .catno,
h3 .catno {
  display: inline-block;
  margin-left: 0.45rem;
  padding: 0.12em 0.55em;
  border-radius: 999px;
  background: var(--palette-chip);
  color: var(--palette-chip-ink);
  font-size: 0.72em;
  line-height: 1.4;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(32, 28, 27, 0.14);
}

h3 .catno {
  background: #f3f0ed; /* Current band on white; #111 ≈ 16.6:1 */
}

.back-to-top {
  background: var(--palette-accent);
  color: var(--palette-on-accent);
  border-color: var(--palette-accent);
  box-shadow: 0 2px 10px rgba(32, 28, 27, 0.22);
}

.back-to-top:hover,
.back-to-top:active {
  background: var(--palette-accent-hover);
  border-color: var(--palette-accent-hover);
  box-shadow: 0 10px 24px rgba(20, 19, 17, 0.34), 0 2px 6px rgba(20, 19, 17, 0.2);
  transform: translateY(-2px);
}

.palette-band {
  position: relative;
  isolation: isolate;
}

.palette-band::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -0.85rem;
  bottom: -1.15rem;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: var(--palette-band);
  clip-path: shape(
    from 0 1.35rem,
    curve to 100% 1.35rem with 36% 0 / 64% 0,
    vline to calc(100% - 1.35rem),
    curve to 0 calc(100% - 1.35rem) with 64% 100% / 36% 100%,
    close
  );
}

body:not(.page-home) .page-title::before {
  content: "";
  display: block;
  width: 1.75rem;
  height: 3px;
  margin: 0 0 0.45rem;
  background: var(--palette-accent);
}

.palette-band:has(> .page-title)::before,
.page-heading.palette-band::before {
  top: -1.9rem;
}

.about-layout.palette-band::before {
  top: -1.6rem;
}

@media (max-width: 759px) {
  .palette-band:has(> .page-title)::before,
  .page-heading.palette-band::before {
    top: -1.7rem;
  }
}

.page-albums .palette-band:has(> .page-title)::before {
  bottom: -1.65rem;
}

.about-layout.palette-band::before {
  clip-path: shape(
    from 0 0.9rem,
    curve to 100% 1.35rem with 36% 0 / 64% 0,
    vline to calc(100% - 1.35rem),
    curve to 0 calc(100% - 1.35rem) with 64% 100% / 36% 100%,
    close
  );
}

.page-heading.palette-band::before {
  clip-path: shape(
    from 0 1.35rem,
    curve to 100% 0.9rem with 36% 0 / 64% 0,
    vline to calc(100% - 1.35rem),
    curve to 0 calc(100% - 1.35rem) with 64% 100% / 36% 100%,
    close
  );
}

.page-heading + .section-list > li:first-child,
.page-heading + .work {
  border-top: 0;
}

.palette-band .lede {
  margin-bottom: 0;
}

@media (max-width: 759px) {
  .kicker::before,
  .page-beatles .beatles-hero .page-title::before {
    margin-inline: auto;
  }
}

/* Dark mode. Text on the page and on each band stays at or above 7:1. */
html[data-theme="dark"] {
  color-scheme: dark;
  --tag-beatles-fg: #f7f8ff;
}

html[data-theme="dark"] .site-nav .sub-nav {
  border-color: #b7b1a8; /* on #211f1d ≈ 7.7:1, on #141311 ≈ 8.7:1 */
}

html[data-theme="dark"] .contact-form input::placeholder,
html[data-theme="dark"] .contact-form textarea::placeholder {
  color: #9f9f9f; /* on #141311 ≈ 7.0:1 */
}

html[data-theme="dark"] body {
  --bg: #141311;
  --ink: #f6f3ee;
  --muted: #d4cfc8;
  --rule: #f6f3ee;
  --rule-light: #b7b1a8;
  --focus: #f6f3ee;
  --wash: #2c2926;
  --palette-accent: #f6f3ee;
  --palette-accent-hover: #a7a5a1; /* #141311 on hover ≈ 7.6:1 */
  --palette-band: #211f1d; /* same quiet step from the page as #f3f0ed is from white; text ≈ 14.8:1 */
  --palette-chip: #f3f0ed;
  --palette-chip-ink: #141311;
  --palette-on-accent: #141311;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    color-scheme: dark;
    --tag-beatles-fg: #f7f8ff;
  }

  html:not([data-theme="light"]) .site-nav .sub-nav {
    border-color: #b7b1a8;
  }

  html:not([data-theme="light"]) .contact-form input::placeholder,
  html:not([data-theme="light"]) .contact-form textarea::placeholder {
    color: #9f9f9f;
  }

  html:not([data-theme="light"]) body {
    --bg: #141311;
    --ink: #f6f3ee;
    --muted: #d4cfc8;
    --rule: #f6f3ee;
    --rule-light: #b7b1a8;
    --focus: #f6f3ee;
    --wash: #2c2926;
    --palette-accent: #f6f3ee;
    --palette-accent-hover: #a7a5a1;
    --palette-band: #211f1d;
    --palette-chip: #f3f0ed;
    --palette-chip-ink: #141311;
    --palette-on-accent: #141311;
  }
}

html[data-theme="dark"] .back-to-top:hover,
html[data-theme="dark"] .back-to-top:active {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(246, 243, 238, 0.28);
}

html[data-theme="dark"] .search-dialog::backdrop,
html[data-theme="dark"] .photo-dialog::backdrop,
html[data-theme="dark"] .album-dialog::backdrop,
html[data-theme="dark"] .pdf-viewer::backdrop {
  background: rgba(10, 9, 8, 0.78);
}

html[data-theme="dark"] .featured-score img,
html[data-theme="dark"] .score-pair img,
html[data-theme="dark"] .album-card img,
html[data-theme="dark"] .about-portrait img,
html[data-theme="dark"] .about-gallery img,
html[data-theme="dark"] .media-item img,
html[data-theme="dark"] .album-dialog-images img,
html[data-theme="dark"] [data-photo-dialog] .photo-dialog-stage img {
  border-color: rgba(246, 243, 238, 0.35);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .back-to-top:hover,
  html:not([data-theme="light"]) .back-to-top:active {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(246, 243, 238, 0.28);
  }

  html:not([data-theme="light"]) .search-dialog::backdrop,
  html:not([data-theme="light"]) .photo-dialog::backdrop,
  html:not([data-theme="light"]) .album-dialog::backdrop,
  html:not([data-theme="light"]) .pdf-viewer::backdrop {
    background: rgba(10, 9, 8, 0.78);
  }

  html:not([data-theme="light"]) .featured-score img,
  html:not([data-theme="light"]) .score-pair img,
  html:not([data-theme="light"]) .album-card img,
  html:not([data-theme="light"]) .about-portrait img,
  html:not([data-theme="light"]) .about-gallery img,
  html:not([data-theme="light"]) .media-item img,
  html:not([data-theme="light"]) .album-dialog-images img,
  html:not([data-theme="light"]) [data-photo-dialog] .photo-dialog-stage img {
    border-color: rgba(246, 243, 238, 0.35);
  }
}
