:root {
  color-scheme: dark;
  --background: #101010;
  --ink: #f2f2f2;
  --muted: #b4b4b4;
  --line: #a2a2a2;
  --rail: #707070;
  --type: "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font: 1rem/1.55 var(--type);
}

body::before, body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
}

body::before {
  background: linear-gradient(#000c, #000c), url("assets/background.webp") center / cover no-repeat;
}

body::after {
  margin: auto;
  width: min(100%, 75vh);
  height: min(100%, 133.33vw);
  background: linear-gradient(#0008, #0008), url("assets/background.webp") center / contain no-repeat;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent),
    linear-gradient(transparent, #000 7%, #000 93%, transparent);
  mask-composite: intersect;
}
h1, h2, h3, p, blockquote { margin: 0; }
a, button { color: inherit; }
a { text-decoration: none; }
a:hover, .story-toggle:hover { text-decoration: underline; text-underline-offset: .25em; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.skip-link { position: fixed; z-index: 5; top: 12px; left: 12px; background: var(--background); padding: 8px 16px; transform: translateY(-180%); }
.skip-link:focus { transform: none; }

.shell { width: min(100% - 112px, 1080px); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; min-height: 65px; }
.home-link { font-size: 1.15rem; font-weight: 750; letter-spacing: -.045em; }
nav, .site-footer { display: flex; align-items: center; gap: clamp(16px, 3vw, 32px); font-size: .9rem; }

.hero { padding: clamp(32px, 5vw, 64px) 0 0; }
.identity { display: flex; align-items: center; gap: clamp(12px, 2vw, 22px); }
.identity img { display: block; width: clamp(50px, 6vw, 76px); height: auto; border-radius: 50%; }
h1 { font-size: clamp(3.5rem, 7.5vw, 7rem); font-weight: 800; line-height: .9; letter-spacing: -.085em; }
h2 { font-size: clamp(1.65rem, 3.8vw, 2.5rem); font-weight: 700; line-height: 1.08; letter-spacing: -.045em; }
.role { margin-top: 15px; color: var(--muted); font-size: .95rem; }
.about { margin-top: 34px; max-width: 49ch; }
.about h2 { margin-bottom: 7px; font-size: .95rem; letter-spacing: 0; }
.about p + p { margin-top: 9px; }

.music, .photos { margin-top: clamp(38px, 6vw, 68px); scroll-margin-top: 22px; }
.section-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 23px;
}
blockquote { max-width: 47ch; color: var(--muted); }

.track-list { list-style: none; padding: 0; margin: 0; }
.track { border-top: 1px solid var(--line); background: #080808c9; }
.track:last-child { border-bottom: 1px solid var(--line); }
.track article { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 24px; padding: 14px 16px; }
.track-face { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; column-gap: 17px; }
.disc { position: relative; }
.disc img { display: block; width: 100%; height: auto; }
.play {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border: 1px solid #555;
  border-radius: 50%;
  background: var(--background);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease;
}
.play:hover, .track[data-playing] .play { background: var(--ink); color: var(--background); }
.play:disabled { cursor: wait; }
.play span { border: solid transparent; border-width: 6px 0 6px 9px; border-left-color: currentColor; margin-left: 2px; }
.track[data-playing] .play span { width: 10px; height: 12px; border-width: 0 3px; border-color: currentColor; margin: 0; }
.track h3 { font-size: 1rem; line-height: 1.25; overflow-wrap: anywhere; }
.artist-name { color: var(--muted); font-size: .875rem; margin-top: 3px; }
.transport { margin-top: 4px; max-width: 480px; }
.transport input {
  --progress: 0%;
  --fill: linear-gradient(90deg, var(--ink) var(--progress), var(--rail) var(--progress));
  appearance: none;
  width: 100%;
  height: 22px;
  display: block;
  margin: 0;
  background: none;
  cursor: pointer;
}
.transport input:disabled { cursor: default; opacity: 1; }
.transport input::-webkit-slider-runnable-track { height: 4px; background: var(--fill); }
.transport input::-moz-range-track { height: 4px; background: var(--fill); }
.transport input::-webkit-slider-thumb { appearance: none; margin-top: -3px; width: 10px; height: 10px; border: 0; border-radius: 50%; background: var(--ink); }
.transport input::-moz-range-thumb { width: 10px; height: 10px; border: 0; border-radius: 50%; background: var(--ink); }
.times { display: flex; justify-content: space-between; color: var(--muted); font-size: .75rem; font-variant-numeric: tabular-nums; }
.player-status { color: var(--ink); font-size: .85rem; margin-top: 4px; }
.track-actions { display: flex; column-gap: 20px; }
.track-actions a, .story-toggle { min-height: 44px; display: inline-flex; align-items: center; font: inherit; font-size: .875rem; color: var(--muted); }
.story-toggle { background: none; border: 0; padding: 0; cursor: pointer; }
.story-toggle::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1px 1px 0; transform: rotate(45deg); margin: -3px 0 0 7px; }
.story-toggle[aria-expanded="true"]::after { transform: rotate(225deg); margin-top: 3px; }
.story { grid-column: 1 / -1; margin: 12px 0 4px 81px; max-width: 58ch; color: var(--muted); }

.photo-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 10px; margin-top: 20px; }
.photo-grid img { display: block; width: 100%; height: clamp(220px, 34vw, 420px); object-fit: cover; }
.photo-grid img:first-child { object-position: center 35%; }
.site-footer { padding-block: 24px 82px; }
.credit {
  position: fixed;
  z-index: 2;
  bottom: max(12px, env(safe-area-inset-bottom));
  left: 12px;
  padding: 5px 9px;
  background: var(--background);
  color: var(--muted);
  font-size: .75rem;
}

@media (max-width: 720px) {
  .shell { width: calc(100% - 36px); }
  .site-header { min-height: 59px; }
  .hero { padding-top: 26px; }
  .about { margin-top: 23px; }
  .section-intro { grid-template-columns: 1fr; gap: 9px; margin-bottom: 17px; }
  .track article { grid-template-columns: minmax(0, 1fr); padding: 13px 10px 3px; }
  .track-face { grid-template-columns: 52px minmax(0, 1fr); align-items: start; column-gap: 12px; }
  .track-actions { padding-left: 64px; }
  .story { margin: 0 0 13px 64px; }
  .photo-grid { grid-template-columns: 1fr 1fr; gap: 7px; }
  .photo-grid img:first-child { grid-column: span 2; height: auto; aspect-ratio: 1.2; }
  .photo-grid img { height: auto; aspect-ratio: 3 / 4; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.audio-frame {
  position: fixed;
  left: -1000px;
  top: 0;
  width: 250px;
  height: 166px;
  border: 0;
  pointer-events: none;
}
