:root {
  color-scheme: light;
  --paper: #f4f3ed;
  --ink: #11110f;
  --quiet: #8d8b84;
  --rule: #cfcdc5;
  --rail: 184px;
  --content-top: 29vh;
  --media-top: 29vh;
  --content-left: 5vw;
  --detail-copy-width: min(28vw, 280px);
  --wide-copy-width: 700px;
  --gallery-gap: clamp(34px, 6vw, 84px);
}

* {
  box-sizing: border-box;
}

.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;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

body {
  overflow: hidden;
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 5px;
}

.shell {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  min-height: 100svh;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 2;
  align-self: start;
  height: 100svh;
  min-height: 100svh;
  padding: 34px 28px 28px;
}

.brand {
  display: inline-block;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

.nav {
  position: absolute;
  top: 28vh;
  left: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.nav a {
  display: grid;
  grid-template-columns: 22px auto;
  gap: 9px;
  line-height: 1;
}

.nav a[aria-current="page"] {
  font-weight: 700;
}

.nav span,
.side-note,
.caption,
.time,
.footer {
  color: var(--quiet);
}

.side-note {
  position: absolute;
  left: 28px;
  bottom: 28px;
  margin: 0;
  line-height: 1;
  white-space: nowrap;
}

.stage {
  position: relative;
  min-width: 0;
  min-height: 100svh;
}

body .site-grid {
  margin-right: auto;
  margin-left: max(
    calc(50vw - 618px),
    calc(var(--content-left) - 38px)
  );
}

.art {
  position: absolute;
  margin: 0;
}

.art img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.caption {
  display: flex;
  justify-content: space-between;
  margin-top: 11px;
  line-height: 1;
}

.player {
  position: absolute;
  right: 38px;
  bottom: 76px;
  left: 38px;
  display: grid;
  grid-template-columns: auto auto minmax(100px, 1fr) auto;
  gap: 18px;
  align-items: center;
  line-height: 1;
}

.play {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.triangle {
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 7px solid var(--ink);
}

.timeline {
  height: 1px;
  background: #b8b6af;
}

.footer {
  position: absolute;
  right: 38px;
  bottom: 28px;
  left: 38px;
  display: flex;
  justify-content: space-between;
  line-height: 1;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.layout-a .sidebar {
  border-right: 1px solid var(--rule);
}

.layout-a .art {
  top: 12vh;
  left: 18%;
  width: min(48vw, 55vh, 560px);
}

.layout-b {
  --rail: 82px;
}

.layout-b .sidebar {
  border-right: 1px solid var(--rule);
  padding-right: 0;
  padding-left: 0;
}

.layout-b .brand {
  position: absolute;
  top: 30px;
  left: 30px;
  writing-mode: vertical-rl;
}

.layout-b .nav {
  top: auto;
  bottom: 31px;
  left: 30px;
  flex-direction: row;
  gap: 20px;
  writing-mode: vertical-rl;
}

.layout-b .nav a {
  display: block;
}

.layout-b .nav span,
.layout-b .side-note {
  display: none;
}

.layout-b .art {
  top: 13vh;
  left: 9%;
  width: min(54vw, 58vh, 590px);
}

.layout-c {
  --rail: 230px;
  font-size: 9px;
}

.layout-c .sidebar {
  padding-left: 38px;
}

.layout-c .nav {
  top: 29vh;
  left: 38px;
  gap: 17px;
  font-size: 9px;
}

.layout-c .nav a {
  grid-template-columns: 20px auto;
  gap: 8px;
}

.layout-c .side-note {
  left: 38px;
}

.layout-c .art {
  top: 50%;
  right: 8vw;
  width: min(28vw, 38vh, 390px);
  transform: translateY(-58%);
}

.layout-c .art img {
  aspect-ratio: 4 / 5;
  object-position: center;
}

.layout-c .caption,
.layout-c .track {
  display: none;
}

.layout-c .player {
  grid-template-columns: auto minmax(100px, 1fr) auto;
}

.layout-c .player,
.layout-c .footer {
  left: 0;
}

.layout-c .footer {
  right: 38px;
  align-items: baseline;
}

.layout-c .footer-links {
  justify-content: flex-end;
  text-align: right;
}

@media (max-width: 760px) {
  :root {
    --content-top: 15vh;
    --media-top: 15vh;
    --content-left: 22px;
  }

  body {
    overflow: auto;
    font-size: 9px;
  }

  .shell {
    display: block;
  }

  .sidebar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    display: flex;
    height: auto;
    min-height: 0;
    padding: 24px 22px;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
    background: var(--paper);
  }

  .brand,
  .layout-b .brand {
    position: static;
    writing-mode: horizontal-tb;
  }

  .nav,
  .layout-b .nav,
  .layout-c .nav {
    position: static;
    flex-direction: row;
    gap: 15px;
    margin-left: auto;
    font-size: inherit;
    writing-mode: horizontal-tb;
  }

  .nav a,
  .layout-c .nav a {
    display: block;
  }

  .nav span,
  .side-note {
    display: none;
  }

  .stage {
    min-height: 100svh;
  }

  body .site-grid {
    margin-right: auto;
    margin-left: auto;
  }

  .art,
  .layout-a .art,
  .layout-b .art {
    top: 15vh;
    right: auto;
    left: 22px;
    width: min(82vw, 54vh);
  }

  .layout-c .art {
    top: 14vh;
    right: auto;
    left: 22px;
    width: min(72vw, 42vh);
    transform: none;
  }

  .player,
  .layout-c .player {
    right: 22px;
    bottom: 70px;
    left: 22px;
    grid-template-columns: auto 1fr auto;
  }

  .track {
    display: none;
  }

  .footer,
  .layout-c .footer {
    right: 22px;
    bottom: 22px;
    left: 22px;
  }

  .footer-links {
    gap: 16px;
  }
}
