@font-face {
  font-family: "DM Sans";
  src: url('/assets/records/dm.woff2') format('woff2');
  font-weight: 100 1000;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url('/assets/records/instrument.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url('/assets/records/italic.woff2') format('woff2');
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f7f6ef;
  --background-depth: 3px;
  --ink: #21231f;
  --muted: #52574f;
  --line: #c7c9bc;
  --column-gap: clamp(20px, 2.5vw, 42px);
  --edge: clamp(24px, 5vw, 90px);
  --surface: min(1440px, 100%);
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.45 "DM Sans", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
select {
  font: inherit;
  color: inherit;
}

button,
a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

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

button {
  border: 0;
  background: none;
  padding: 0;
}

button:focus-visible,
a:focus-visible,
select:focus-visible {
  outline: 2px solid #5d673d;
  outline-offset: 5px;
}

[hidden] {
  display: none !important;
}

h1,
h2,
h3,
p {
  margin: 0;
}

img {
  display: block;
}

button svg,
a svg {
  flex: none;
}

.inner {
  width: var(--surface);
  margin: auto;
  padding-inline: var(--edge);
}

.section-line {
  border-bottom: 1px solid var(--line);
}

.mono {
  font: 500 12px/1.45 var(--mono);
  letter-spacing: 0.055em;
  color: var(--muted);
}

.head,
.foot,
.hero-caption,
.collection-head,
.navlinks,
.logo,
.filters,
.meta-line {
  display: flex;
  align-items: center;
}

.head,
.foot,
.hero-caption,
.collection-head {
  justify-content: space-between;
}

.head {
  height: 88px;
}

.logo {
  gap: 10px;
  width: fit-content;
}

.logo b {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.065em;
}

.logo i {
  font: italic 35px/.95 "Instrument Serif", Georgia, serif;
  letter-spacing: -0.045em;
}

.logo svg {
  width: 42px;
  height: 42px;
}

.navlinks {
  gap: 36px;
  font-size: 16px;
  font-weight: 550;
}

.navlinks a:hover,
.foot a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.navlinks a[aria-current] {
  border-bottom: 2px solid var(--ink);
  padding-bottom: 3px;
  font-weight: 700;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.31fr);
  gap: 4%;
  align-items: center;
  min-height: 558px;
  padding-block: 22px 24px;
}

.byline {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
}

.byline::before {
  content: "";
  width: 29px;
  height: 1px;
  background: #73776c;
}

h1,
.collection-head h2,
.liner h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
}

h1 {
  font-size: clamp(83px, 8.05vw, 117px);
  line-height: 0.87;
  letter-spacing: -0.055em;
}

h1 i {
  display: block;
  font-size: 1.025em;
  line-height: 1.01;
  font-weight: 400;
}

.hero-text p {
  font-size: 20px;
  line-height: 1.48;
  color: var(--muted);
  max-width: 390px;
  margin: 20px 0 27px;
}

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
  border-bottom: 1px solid #686b60;
  padding: 4px 0;
}

.hero-media {
  align-self: center;
  min-width: 0;
}

.hero-piece {
  display: block;
  position: relative;
  width: min(100%, 728px);
  aspect-ratio: 728/455;
  margin: auto;
  isolation: isolate;
}

.hero-piece .jacket {
  width: 54.7%;
  height: auto;
  aspect-ratio: 1;
  left: 12.2%;
  top: 6.9%;
  transform: rotate(-4deg);
  box-shadow: 2px 2px 1px #6c6256, 3px 4px 2px #403c3240, 5px 13px 20px #2b251f45;
}

.hero-piece .wax {
  width: 52.5%;
  left: 38.4%;
  top: 9.4%;
  transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.22, 1);
}

.hero-piece.preview .wax {
  transform: translateX(9%);
}

.hero-caption {
  gap: 10px;
  width: 82%;
  margin: 10px auto 0;
  min-height: 35px;
}

.hero-caption a {
  font-weight: 650;
  font-size: 15px;
}

.hero-caption a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.jacket {
  position: absolute;
  display: block;
  z-index: 2;
  background: #d2c7ae;
  transform-origin: center;
  box-shadow: 1px 1px 1px #807768, 1px 3px 3px #342e2830;
  isolation: isolate;
}

.jacket img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jacket::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 1px 1px 1px #fffff570, inset -1px -1px 1px #44372b70;
  background: linear-gradient(91deg, #fff8e529, transparent 1.25%, transparent 98.7%, #312a1c15);
}

.wax {
  position: absolute;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: url("/assets/records/body.webp") center/contain no-repeat;
  filter: drop-shadow(1px 2px 1px #0f131633);
  display: block;
}

.revolution,
.revolution img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.revolution {
  background: url("/assets/records/groove-mark.webp") center/contain no-repeat;
  animation: revolve 2.4s linear infinite;
  animation-play-state: paused;
  transform: rotate(0);
}

.record .revolution {
  animation-duration: 4.5s;
  animation-delay: 0.55s;
}

@keyframes revolve {
  to {
    transform: rotate(360deg);
  }
}

.preview .revolution {
  animation-play-state: running;
}

.archive {
  padding-block: 32px 52px;
}

.collection-head {
  gap: 18px;
  margin-bottom: 34px;
}

.collection-name {
  display: flex;
  align-items: center;
  gap: 13px;
}

.collection-head h2 {
  font-size: 54px;
  line-height: 1.07;
  letter-spacing: -0.05em;
}

.filters {
  gap: 5px;
}

.filters button {
  font-size: 14px;
  padding: 6px 14px;
  line-height: 21px;
  border-radius: 2px;
}

.filters button[aria-pressed="true"] {
  color: var(--paper);
  background: var(--ink);
  font-weight: 700;
}

.filters button:hover:not([aria-pressed="true"]) {
  background: #e9e9df;
}

.mobile-filter {
  display: none;
}

.shelf-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px var(--column-gap);
}

.record {
  position: relative;
  min-width: 0;
  --ledge-extension: var(--column-gap);
  --sleeve-shift: -4%;
  --lift: clamp(-7px, -0.5vw, -4px);
  --sleeve-tilt: -1.6deg;
  --sleeve-scale: 1.05;
  --disc-scale: 1.05;
  --disc-travel: 73%;
}

.record.row-end {
  --ledge-extension: 0px;
}

.stage {
  display: block;
  position: relative;
  aspect-ratio: 1;
  isolation: isolate;
}

.stage::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: calc(100% + var(--ledge-extension));
  height: 6px;
  background: linear-gradient(#dad9ca, #c7c5b4 58%, #afa992);
  box-shadow: 0 3px 4px #342d181f;
  pointer-events: none;
}

.stage .jacket {
  width: 100%;
  height: 100%;
  left: 0;
  bottom: 0;
  transform-origin: 0 100%;
  transition: transform 0.58s cubic-bezier(0.19, 0.78, 0.23, 1), box-shadow 0.45s;
}

.stage .wax {
  width: 93%;
  left: 3%;
  bottom: 2%;
  transform-origin: 0 100%;
  transform: translate(0, 0) scale(0.99);
  transition: transform 0.63s cubic-bezier(0.2, 0.78, 0.18, 1);
}

.record.inward {
  --sleeve-shift: 4%;
  --sleeve-tilt: 1.6deg;
  --disc-travel: -73%;
}

.record.inward .stage .jacket {
  transform-origin: 100% 100%;
}

.record.inward .stage .wax {
  left: auto;
  right: 3%;
  transform-origin: 100% 100%;
}

.record.preview {
  z-index: 1;
}

.stage .jacket,
.stage .wax {
  pointer-events: none;
}

.record.preview .stage .jacket {
  transform: translate(var(--sleeve-shift), var(--lift)) rotate(var(--sleeve-tilt)) scale(var(--sleeve-scale));
  box-shadow: 2px 3px 1px #7c7262, 3px 7px 6px #302c2230, 5px 14px 14px #302c222e;
}

.record.preview .stage .wax {
  transform: translate(var(--disc-travel), -4%) scale(var(--disc-scale));
}

.record-caption {
  padding-top: 17px;
}

.record-caption h3 {
  font-size: inherit;
  line-height: 1.28;
}

.record-title {
  font-size: clamp(16px, 1.4vw, 21px);
  font-weight: 710;
  line-height: 1.28;
  letter-spacing: -0.027em;
  display: inline-block;
}

.project-type:disabled {
  color: inherit;
  opacity: 1;
  cursor: default;
}

.project-type:enabled:hover,
.record-title:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.meta-line {
  gap: 9px;
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}

.meta-line .mono {
  border-right: 1px solid var(--line);
  padding-right: 9px;
}

.status {
  display: inline-block;
  margin-top: 6px;
  background: #e8df9d;
  font: 650 11px/1.4 var(--mono);
  letter-spacing: 0.035em;
  padding: 2px 6px;
  color: #353526;
}

.touch-go {
  display: none;
}

.record.pinned .touch-go {
  display: inline;
}

.record.pinned .record-title {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.liner-band {
  background: #e9e8df;
  border-block: 1px solid var(--line);
}

.liner {
  display: grid;
  grid-template-columns: 1fr 2.2fr auto;
  align-items: center;
  gap: 30px;
  padding-block: 36px;
}

.liner h2 {
  font-style: italic;
  font-size: 50px;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.liner h3 {
  font-size: 23px;
  line-height: 1.24;
  letter-spacing: -0.025em;
  margin-bottom: 6px;
}

.liner p {
  font-size: 17px;
  color: var(--muted);
}

.foot {
  min-height: 80px;
}

.foot div {
  display: flex;
  gap: 24px;
}

.foot a {
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 1050px) {
  .hero {
    min-height: 460px;
    gap: 3%;
    grid-template-columns: 0.78fr 1.22fr;
  }

  .hero-caption {
    width: 94%;
  }

  .hero-text p {
    font-size: 17px;
  }

  .collection-head h2 {
    font-size: 47px;
  }
}

@media (max-width: 760px) {
  :root {
    --background-depth: 2px;
    --column-gap: 18px;
    --edge: 20px;
  }

  .head {
    height: 64px;
  }

  .logo {
    gap: 6px;
  }

  .logo b {
    font-size: 21px;
  }

  .logo i {
    font-size: 26px;
  }

  .logo svg {
    width: 32px;
    height: 32px;
  }

  .navlinks {
    gap: 18px;
    font-size: 14px;
  }

  .navlinks .wide {
    display: none;
  }

  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding-top: 28px;
    padding-bottom: 21px;
    gap: 17px;
  }

  .byline {
    font-size: 10px;
    margin-bottom: 10px;
  }

  .hero h1 {
    font-size: clamp(47px, 9.5vw, 65px);
    line-height: 1.08;
  }

  .hero h1 i {
    display: inline;
    font-size: inherit;
    line-height: inherit;
  }

  .hero-text p {
    max-width: 460px;
    font-size: 16px;
    line-height: 1.5;
    margin: 9px 0 0;
  }

  .hero-text .textlink {
    display: none;
  }

  .hero-media {
    width: 100%;
    max-width: 490px;
  }

  .hero-piece {
    aspect-ratio: 350/260;
  }

  .hero-piece .jacket {
    width: 66%;
    left: 5.5%;
    top: 7%;
  }

  .hero-piece .wax {
    width: 63%;
    left: 35%;
    top: 10.8%;
  }

  .hero-piece.preview .wax {
    transform: translateX(2.5%);
  }

  .hero-caption {
    width: 100%;
    margin: 8px auto 0;
  }

  .hero-caption .mono {
    font-size: 10px;
  }

  .hero-caption a {
    font-size: 12px;
  }

  .archive {
    padding-block: 22px 34px;
  }

  .collection-head {
    margin-bottom: 24px;
  }

  .collection-head h2 {
    font-size: 36px;
  }

  .collection-name {
    gap: 8px;
  }

  .collection-name .mono {
    font-size: 10px;
  }

  .filters {
    display: none;
  }

  .mobile-filter {
    display: block;
    background: transparent;
    border: 1px solid #bdbfb2;
    border-radius: 3px;
    padding: 6px;
    font-size: 13px;
  }

  .shelf-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 27px;
  }

  .record {
    --sleeve-shift: max(-3%, -5px);
    --lift: clamp(-4px, calc(0.6vw - 7px), -2px);
    --sleeve-scale: 1.025;
    --disc-scale: 1.025;
    --disc-travel: 73%;
  }

  .record.inward {
    --sleeve-shift: min(3%, 5px);
    --disc-travel: -73%;
  }

  .record-caption {
    padding-top: 13px;
  }

  .record-title {
    font-size: 16px;
  }

  .meta-line {
    font-size: 12px;
    gap: 6px;
  }

  .meta-line .mono {
    font-size: 10px;
    padding-right: 6px;
  }

  .status {
    font-size: 10px;
  }

  .liner {
    grid-template-columns: 1fr;
    gap: 13px;
    padding-block: 26px;
  }

  .liner h2 {
    font-size: 36px;
  }

  .liner h3 {
    font-size: 19px;
  }

  .liner p {
    font-size: 15px;
  }

  .liner .textlink {
    font-size: 14px;
    width: fit-content;
  }

  .foot {
    min-height: 64px;
  }

  .foot div {
    gap: 15px;
  }

  .foot .mono {
    font-size: 10px;
  }
}

@media (max-width: 350px) {
  :root {
    --edge: 14px;
    --column-gap: 13px;
  }

  .navlinks {
    gap: 10px;
  }

  .hero-caption {
    gap: 6px;
  }

  .hero-caption .mono {
    font-size: 9px;
  }

  .hero-caption a {
    font-size: 11px;
  }

  .record-title {
    font-size: 14px;
  }
}

/* The stage and its caption share a focus plane. The shelf lip stays behind it. */

header,
main > section:first-child,
.collection-head,
.record,
.stage::after,
.liner-band,
.foot {
  transition: filter 150ms ease-out;
}

.rack-focus :is(header, main > section:first-child, .collection-head, .liner-band, .foot),
.rack-focus .record:not(.preview),
.rack-focus .record.preview .stage::after {
  filter: blur(var(--background-depth));
}

.rack-focus .record.preview {
  filter: none;
  transition-duration: 0s;
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation: none !important;
  }
}
