@font-face {
  font-family: Jost;
  src: url("assets/fonts/jost.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0; background: #fff; color: #252621;
  font: 400 16px/1.45 Jost, "Gill Sans", sans-serif;
}
a { color: inherit; text-decoration: none; }

:focus-visible { outline: 2px solid #555; outline-offset: 4px; }
html { scrollbar-gutter: stable; }
body { --edge: clamp(18px, 3.5vw, 70px); --rail: 12rem; }
.sidebar {
  z-index: 1;
  position: fixed; top: var(--edge); left: var(--edge); width: var(--rail);
  max-height: calc(100dvh - 2 * var(--edge)); overflow: auto;
}
.artist { display: block; font-size: 1.75rem; line-height: 1.2; margin: 0 0 .25rem; }
.artist-links { margin-bottom: 1.25rem; }
.artist-links a, .project-list a {
  display: block; width: fit-content; padding: .26rem 0;
  font-size: .91rem; line-height: 1.4; font-style: italic;
}
.project-list a.seen, .sidebar nav a:visited { color: #777; }
.sidebar nav a:hover, .sidebar nav a:focus-visible { font-weight: 700; color: #242421; }
.gallery {
  max-width: 1000px; margin: var(--edge) auto 3rem;
  width: calc(100% - 2 * (var(--rail) + var(--edge) + 1.5rem));
}
.notes { margin: 1.25rem 0 0; }
.notes h1, .notes h2, .bio-header h1 { font-size: 1.35rem; font-weight: 450; margin: 0; }
.notes small, figcaption, .notes a { font-size: .88rem; }
.notes p { max-width: 54ch; margin: .45rem 0; }
.notes .launch-announcement { margin: .8rem 0 .25rem; font-size: 1.12rem; line-height: 1.3; font-weight: 550; }
.launch-announcement + p { margin: 0 0 1.25rem; }
.notes p a + a { margin-left: 1rem; }
.notes a { text-decoration: underline; text-underline-offset: .2em; }
.notes > a { display: inline-block; margin: .35rem .65rem 0; }
.plate {
  --media-width: min(100cqi, 46rem);
  width: var(--media-width);
  margin: 0 auto clamp(3rem, 8vh, 6rem);
}
.plate:has(video) { --media-width: min(100cqi, var(--natural), calc(72svh * var(--ratio))); }
/* Both recordings use the width of the 3:4 iPad preview at its usual height. */
.plate.toca-preview { --media-width: min(100cqi, calc(72svh * .75)); }
.section-heading { margin: 0 0 1rem; font-size: 1.35rem; font-weight: 450; }
.gallery { container-type: inline-size; }
@media (min-width: 541px) {
  .gallery.artwork-gallery {
    --side-space: max(calc(var(--rail) + 1rem), 15vw);
    width: calc(100% - 2 * (var(--edge) + var(--side-space)));
    margin-inline: auto;
  }
}
@media (min-width: 761px) {
  /* Equal outer tracks keep the artwork centered independently of its notes. */
  .plate:has(> .notes) {
    width: calc(100% + 2 * var(--side-space));
    margin-inline: calc(-1 * var(--side-space));
    display: grid;
    grid-template-columns: 1fr var(--media-width) 1fr;
    align-items: start;
  }
  .section-heading, .plate:has(> .notes) > figure { grid-column: 2; }
  .plate > .notes { min-width: 0; max-width: 15rem; margin: 0 0 0 clamp(1rem, 2vw, 2rem); }
}
.biography, .cv { max-width: 54rem; margin-inline: auto; }
.cv-section + .cv-section { margin-top: 2.5rem; }
.cv-section h2 { margin: 0 0 1rem; font-size: 1.35rem; font-weight: 450; overflow-wrap: anywhere; }
.cv-section h3 { margin: 1.5rem 0 .75rem; font-size: 1rem; font-weight: 450; font-style: italic; }
.cv-list { display: grid; gap: .75rem; }
.cv-row { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: .25rem 1.25rem; }
.cv-row time { color: #575754; font-variant-numeric: tabular-nums; }
.cv-row p { margin: 0; max-width: 64ch; }
@container (max-width: 30rem) {
  .cv-row { grid-template-columns: 1fr; }
}
.bio-header { margin-bottom: 1.5rem; }
.bio-header p { margin: .15rem 0; font-size: .91rem; }
.bio-header h1 { margin-bottom: .65rem; }
.biography a { text-decoration: underline; text-underline-offset: .2em; }
.portrait { display: block; width: min(100%, 15rem); height: auto; margin: 0 auto 1.5rem; }
.bio-copy { max-width: 60ch; }
.bio-copy p { margin: 0 0 1em; }
@container (min-width: 36rem) {
  .biography {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(10rem, 30%);
    column-gap: clamp(2rem, 5cqi, 4rem);
    align-items: start;
  }
  .portrait { grid-column: 2; grid-row: 1 / 3; width: 100%; }
  .bio-copy { grid-column: 1; }
}
figure { margin: 0; }
.plate img, .plate video { display: block; width: 100%; height: auto; aspect-ratio: var(--ratio); object-fit: contain; }
button { background: transparent; border: 0; padding: 0; color: inherit; }
.enlarge { display: block; width: 100%; cursor: zoom-in; }
figcaption { color: #575754; margin: .65rem 0; }
.enable-sound { display: block; margin-top: .4rem; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.viewer { inset: 0; margin: 0; padding: 0; border: 0; width: 100%; height: 100dvh; max-width: none; max-height: none; background: #fff; }
.viewer::backdrop { background: #fff; }
.viewer .close-image { width: 100%; height: 100%; display: grid; place-items: center; cursor: zoom-out; }
.viewer video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.close-movie { position: absolute; right: 1rem; top: 1rem; color: white; background: #222; width: 2.5rem; height: 2.5rem; font-size: 1.5rem; cursor: pointer; }
.viewer img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
html:has(.viewer[open]) { overflow: hidden; }
@media (min-width: 761px) and (max-width: 1150px) {
  .gallery { width: auto; margin-left: calc(var(--edge) + var(--rail) + 1.5rem); margin-right: var(--edge); }
}
@media (max-width: 760px) {
  body { --rail: 12rem; --edge: 14px; }
  .gallery { width: auto; margin-left: calc(var(--edge) + var(--rail) + .8rem); margin-right: var(--edge); }
  .project-list a { font-size: .86rem; padding: .36rem 0; }
  .notes h1, .notes h2, .section-heading { font-size: 1.15rem; }
  .notes p { font-size: .93rem; }
}
@media (max-width: 540px) {
  .sidebar { position: static; width: auto; margin: 1.2rem var(--edge) 1.75rem; max-height: none; }
  .artist-links { margin-bottom: .75rem; }
  .project-list { display: flex; flex-wrap: wrap; column-gap: 1rem; }
  .gallery { margin: 0 var(--edge) 2rem; }
  .project-list a { padding: .15rem 0; }
}

