/* The Adam Dunn Show mock-up: The Crates, Dunn Deals, The Record Store.
   Builder B's stylesheet. Tokens and shared classes come from site.css and are
   never redefined here. Prefixes: cr- (The Crates, plus pieces the three views
   share), dd- (Dunn Deals), rs- (The Record Store).
   Focus color (--focus) appears in exactly three rules: the pulled sleeve's
   label on /crates, the Play label in the open record, and the pulled record's
   label on /record-store. The "Get in the bin" button takes it from the shared
   .btn--focus class. */

/* ------------------------------------------------------------------ */
/* Shared pieces                                                       */
/* ------------------------------------------------------------------ */

.cr-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.cr-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6) var(--gutter);
}

@media (min-width: 1024px) {
  .cr-cols {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .cr-span-5 { grid-column: span 5; }
  .cr-span-6 { grid-column: span 6; }
  .cr-span-7 { grid-column: span 7; }
  .cr-span-8 { grid-column: span 8; }
  .cr-span-12 { grid-column: 1 / -1; }
  .cr-start-7 { grid-column: 7 / span 6; }
  .cr-start-8 { grid-column: 8 / span 5; }
  .cr-start-9 { grid-column: 9 / span 4; }
}

.cr-measure {
  max-width: var(--measure);
}

.cr-stack > * + * {
  margin-top: var(--space-5);
}

.cr-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
}

.cr-mono-line {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  line-height: var(--lh-mono);
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.cr-anton {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: var(--lh-display);
  letter-spacing: var(--track-display);
  text-transform: uppercase;
  text-wrap: balance;
}

.cr-text-link {
  font-family: var(--font-body);
  font-weight: var(--weight-strong);
  color: var(--fg);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: text-decoration-thickness var(--dur-micro) linear;
}

.cr-text-link:hover {
  text-decoration-thickness: 3px;
}

.cr-ext-icon {
  display: inline-block;
  width: 0.75em;
  height: 0.75em;
  margin-left: 0.3em;
  vertical-align: 0.05em;
}

.cr-placeholder-cta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

.cr-placeholder-cta .btn[aria-disabled="true"] {
  cursor: default;
  border-style: dashed;
}

/* Plan strip: three track cards */
.cr-plan {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: var(--border-hair) solid var(--rule);
}

.cr-plan__step {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-5) 0;
  border-bottom: var(--border-hair) solid var(--rule);
}

.cr-plan__n {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-s);
  font-weight: 700;
  letter-spacing: var(--track-mono);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.cr-plan__title {
  font-family: var(--font-display);
  font-size: min(var(--fs-display-3), 2.25rem);
  line-height: var(--lh-tight);
  letter-spacing: var(--track-display);
  text-transform: uppercase;
  text-wrap: balance;
}

.cr-plan__line {
  max-width: 40ch;
  color: var(--fg);
}

@media (min-width: 768px) {
  .cr-plan {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: var(--border-hair) solid var(--rule);
  }
  .cr-plan__step {
    padding: var(--space-5) var(--space-5) var(--space-5) 0;
    border-bottom: 0;
  }
  .cr-plan__step + .cr-plan__step {
    padding-left: var(--space-5);
    border-left: var(--border-hair) solid var(--rule);
  }
}

/* Close band */
.cr-band__stakes {
  max-width: 22ch;
}

.cr-band .cr-plan {
  margin-top: var(--space-7);
}

.cr-band__cta {
  margin-top: var(--space-7);
}

@media (max-width: 639px) {
  .cr-band__cta .btn,
  .cr-band__cta.cr-row > .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Divider cards (crate dividers, Record Store crates, Dunn Deals status) */
.cr-dividers {
  border: 0;
  margin: 0;
  padding: 8px 0 0;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-2);
}

.cr-div {
  position: relative;
  display: block;
  flex: 1 1 30%;
  min-width: 72px;
  cursor: pointer;
}

@media (min-width: 768px) {
  .cr-div {
    flex: 0 1 auto;
  }
}

.cr-div__input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.cr-div__tab {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  min-height: 56px;
  padding: 14px var(--space-4) 6px;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 700;
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  color: var(--fg);
  white-space: nowrap;
  transition: transform var(--dur-short) var(--ease-out), color var(--dur-micro) linear;
}

/* The divider card drawn twice: an outer --fg shape and an inner ground-colored
   shape inset by the border width, both clipped to the raised tab. */
.cr-div__shape,
.cr-div__shape::before {
  position: absolute;
  inset: 0;
  clip-path: polygon(0 0, 60% 0, 60% 8px, 100% 8px, 100% 100%, 0 100%);
}

.cr-div__shape {
  z-index: -1;
  background-color: var(--fg);
}

.cr-div__shape::before {
  content: "";
  inset: var(--border);
  clip-path: polygon(0 0, calc(60% - var(--border)) 0, calc(60% - var(--border)) 8px, 100% 8px, 100% 100%, 0 100%);
  background-color: var(--bg);
  transition: background-color var(--dur-micro) linear;
}

.cr-div__tab {
  isolation: isolate;
}

.cr-div__n {
  font-weight: 400;
  color: var(--muted);
  transition: color var(--dur-micro) linear;
}

.cr-div:hover .cr-div__tab {
  transform: translateY(-2px);
}

.cr-div__input:checked + .cr-div__tab {
  color: var(--bg);
  transform: translateY(-6px);
}

.cr-div__input:checked + .cr-div__tab .cr-div__shape::before {
  background-color: var(--fg);
}

.cr-div__input:checked + .cr-div__tab .cr-div__n {
  color: var(--bg);
}

.cr-div__input:focus-visible + .cr-div__tab {
  outline: var(--focus-ring-width) solid var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
}

/* Native selects drawn to match */
.cr-select {
  display: grid;
  gap: var(--space-2);
  min-width: 0;
}

.cr-select__label {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-s);
  font-weight: 700;
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  color: var(--fg);
}

.cr-select select {
  width: 100%;
  min-height: 56px;
  padding: 0 var(--space-4);
  border: var(--border) solid var(--fg);
  border-radius: var(--radius-0);
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
}

.cr-select select:hover {
  border-width: 2px;
}

/* Live counts */
.cr-count {
  margin: var(--space-4) 0 0;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* Sticky filter bars (paper, under the header, 768 px and up) */
.cr-bar {
  background-color: var(--bg);
  color: var(--fg);
  padding: var(--space-4) 0 var(--space-4);
  border-bottom: var(--border-hair) solid var(--rule);
}

@media (min-width: 768px) {
  .cr-bar {
    position: sticky;
    top: var(--sticky-top, var(--header-h));
    z-index: var(--z-sticky);
    transition: top var(--dur-short) var(--ease-out);
  }
}

/* Empty and error states */
.cr-empty {
  display: grid;
  justify-items: start;
  gap: var(--space-5);
  padding: var(--space-7) 0;
}

.cr-empty__crate {
  width: 120px;
  height: 72px;
  color: var(--fg);
}

.cr-empty__line {
  max-width: 40ch;
  font-size: var(--fs-lead);
  line-height: var(--lh-tight);
}

/* ------------------------------------------------------------------ */
/* Vinyl (shared by sleeves, the open record, and the Record Store)    */
/* ------------------------------------------------------------------ */

.cr-vinyl {
  position: absolute;
  left: 2%;
  top: 2%;
  width: 96%;
  aspect-ratio: 1;
  border-radius: var(--radius-round);
  transform: translateY(0);
  transition: transform var(--dur-settle) var(--ease-out);
}

.cr-vinyl > svg {
  display: block;
  width: 100%;
  height: 100%;
}

.cr-vinyl__label {
  position: absolute;
  left: 33%;
  top: 33%;
  width: 34%;
  height: 34%;
  border-radius: var(--radius-round);
  background-color: var(--paper);
  transition: background-color var(--dur-micro) linear;
}

.cr-vinyl__label::before {
  content: "";
  position: absolute;
  left: 20%;
  top: 30%;
  width: 60%;
  height: 40%;
  background-color: var(--ink);
  -webkit-mask: url("../assets/brand/flag-header.png") center / contain no-repeat;
  mask: url("../assets/brand/flag-header.png") center / contain no-repeat;
}

/* ------------------------------------------------------------------ */
/* Sleeve card (The Crates)                                            */
/* ------------------------------------------------------------------ */

.cr-crate {
  list-style: none;
  margin: 0;
  padding: var(--space-9) 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-8) var(--gutter);
}

@media (min-width: 640px) {
  .cr-crate { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .cr-crate { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1280px) {
  .cr-crate { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.cr-crate__item {
  min-width: 0;
}

.cr-sleeve {
  --cr-sh-rest: var(--shadow-1);
  --cr-sh-lift: var(--shadow-2);
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.cr-sleeve__lift {
  display: block;
  perspective: var(--perspective-card);
  transform: translateY(0);
  transition: transform var(--dur-settle) var(--ease-out);
}

.cr-sleeve.is-pulled .cr-sleeve__lift {
  transform: translateY(var(--lift-pulled));
}

.cr-sleeve:active .cr-sleeve__lift {
  transform: translateY(var(--lift-pulled)) scale(0.985);
}

.cr-sleeve.is-opened {
  opacity: 0;
}

/* Tilt toward the cursor: app.js writes --rx, --ry, --tz, and --px on the
   [data-tilt] element while the pointer is over it (motion on, fine pointer
   only). The lift lives on the parent, so it still eases while the tilt
   follows the pointer frame by frame. */
.cr-sleeve__tilt {
  position: relative;
  display: block;
  aspect-ratio: 1;
  transform: translateZ(var(--tz, 0px)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform var(--dur-settle) var(--ease-out);
}

.cr-sleeve__tilt.is-tilting {
  transition: none;
}

.cr-sleeve__tilt .cr-vinyl {
  translate: var(--px, 0px) 0;
}

/* --peek-pulled (22%) leaves the label inside the sleeve; the pulled record
   rises 2.2 times that so the top of its label (the view's focus color) clears
   the sleeve's edge. */
.cr-sleeve.is-pulled .cr-vinyl {
  transform: translateY(calc(-2.2 * var(--peek-pulled)));
}

/* Focus color: the pulled record's label, /crates */
.cr-sleeve.is-pulled .cr-vinyl__label {
  background-color: var(--focus);
}

.cr-sleeve__cap {
  display: block;
  margin-top: var(--space-3);
}

.cr-sleeve__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: var(--weight-strong);
  line-height: 1.3;
}

.cr-sleeve__meta {
  display: block;
  margin-top: var(--space-1);
  font-family: var(--font-mono);
  font-size: var(--fs-mono-s);
  line-height: var(--lh-mono);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.cr-sleeve--skeleton {
  cursor: default;
}

.cr-sleeve--skeleton .cr-sleeve__tilt {
  display: grid;
  place-items: center;
  border: var(--border) dashed var(--rule);
  font-family: var(--font-mono);
  font-size: var(--fs-mono-s);
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  color: var(--muted);
}

/* ------------------------------------------------------------------ */
/* Sleeve art: six generated variants (A to F), sized in container     */
/* units so the open record's clone matches the grid sleeve exactly.   */
/* ------------------------------------------------------------------ */

.cr-art {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-sleeve);
  background-color: var(--bg);
  color: var(--fg);
  box-shadow: var(--cr-sh-rest, var(--shadow-1)), inset 0 0 0 var(--border-hair) var(--rule);
  container-type: inline-size;
  transition: box-shadow var(--dur-settle) var(--ease-out);
}

.cr-sleeve.is-pulled .cr-art {
  box-shadow: var(--cr-sh-lift, var(--shadow-2)), inset 0 0 0 var(--border-hair) var(--rule);
}

.cr-art[data-ground="ink"] {
  --cr-wear: rgb(var(--paper-rgb) / 0.05);
}

.cr-art[data-ground="paper"] {
  --cr-wear: rgb(var(--ink-rgb) / 0.05);
}

/* Ring wear: the mark a record leaves on a used sleeve */
.cr-art::after {
  content: "";
  position: absolute;
  inset: 7%;
  border-radius: var(--radius-round);
  border: 1px solid var(--cr-wear);
  pointer-events: none;
}

.cr-art svg {
  position: absolute;
  display: block;
}

.cr-art__title {
  position: absolute;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: var(--track-display);
  text-transform: uppercase;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.cr-art__cat,
.cr-art__date {
  position: absolute;
  bottom: 5cqw;
  font-family: var(--font-mono);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cr-art__cat {
  left: 7cqw;
  font-size: max(7px, 5.2cqw);
  font-weight: 700;
  letter-spacing: var(--track-mono);
}

.cr-art__date {
  right: 7cqw;
  font-size: max(6px, 4.2cqw);
}

.cr-art__sticker {
  position: absolute;
  top: 6cqw;
  right: 6cqw;
  background-color: var(--bg);
  transform: rotate(2deg);
}

/* A: Flag, five bars with the title knocked out of the middle one */
.cr-art--a .cr-art__bars {
  position: absolute;
  left: 7cqw;
  right: 7cqw;
  top: 20cqw;
  display: grid;
  gap: 3cqw;
}

.cr-art--a .cr-art__bar {
  display: block;
  height: 6.5cqw;
  background-color: var(--fg);
}

.cr-art--a .cr-art__bar--title {
  height: auto;
  padding: 2.4cqw 3cqw 2cqw;
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 8cqw;
  line-height: 0.98;
  letter-spacing: var(--track-display);
  text-transform: uppercase;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

/* B: Halftone field over the lower 60 percent, title in the clear top */
.cr-art--b svg {
  left: 0;
  bottom: 0;
  width: 100%;
  height: 60%;
}

.cr-art--b .cr-art__title {
  left: 7cqw;
  top: 7cqw;
  max-width: 64cqw;
  font-size: 10cqw;
}

/* C: Catalog number huge and cropped, title small at the top */
.cr-art--c .cr-art__huge {
  position: absolute;
  left: -3cqw;
  top: 31cqw;
  font-family: var(--font-mono);
  font-size: 44cqw;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.cr-art--c .cr-art__title {
  left: 7cqw;
  top: 7cqw;
  max-width: 60cqw;
  font-family: var(--font-body);
  font-size: 5.6cqw;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: none;
}

/* D: Grooves, rings centered off the right edge, title bottom left */
.cr-art--d svg {
  inset: 0;
  width: 100%;
  height: 100%;
}

.cr-art--d .cr-art__title {
  left: 7cqw;
  bottom: 15cqw;
  max-width: 70cqw;
  font-size: 9cqw;
  background-color: var(--bg);
  padding: 1cqw 1.5cqw 0 0;
}

/* E: Type stack, the title alone, up to five lines */
.cr-art--e .cr-art__title {
  left: 7cqw;
  right: 7cqw;
  top: 21cqw;
  font-size: var(--cr-fs, 12cqw);
  line-height: 0.92;
  -webkit-line-clamp: 5;
}

/* F: Split at 18 degrees, the title across the cut on a solid bar */
.cr-art--f svg {
  inset: 0;
  width: 100%;
  height: 100%;
}

.cr-art--f .cr-art__cutbar {
  position: absolute;
  left: -4cqw;
  right: -4cqw;
  top: 47cqw;
  padding: 2.4cqw 10cqw 2cqw;
  background-color: var(--bg);
  border-top: 0.6cqw solid var(--fg);
  border-bottom: 0.6cqw solid var(--fg);
  transform: rotate(-18deg);
  font-family: var(--font-display);
  font-size: 7.5cqw;
  line-height: 0.98;
  letter-spacing: var(--track-display);
  text-transform: uppercase;
  text-align: center;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.cr-art--f .cr-art__cat,
.cr-art--f .cr-art__date {
  color: var(--bg);
}

/* ------------------------------------------------------------------ */
/* The Crates: hero, History Crates shelf, dividers bar, grid          */
/* ------------------------------------------------------------------ */

/* The 45 adapter at the top right of the hero: in the flow (right-aligned, small) on a phone,
   in the four spare columns beside the copy from 1024px up. It idles slowly and spins up to 45 RPM under the pointer. */
.cr-hero__adapter {
  justify-self: end;
  width: 84px;
  aspect-ratio: 1;
}
.cr-hero__adapter .cr-adapter {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.cr-adapter__body { fill: var(--paper); }
.cr-adapter__text {
  font-family: var(--font-mono);
  font-weight: var(--weight-strong);
  font-size: 4.6px;
  letter-spacing: 0.9px;
  fill: var(--ink);
  opacity: 0.55;
}
/* The turn itself is driven from crates.js (spinAdapter), so the speed can glide between idle and 45 RPM. */
.cr-hero__adapter .cr-adapter { transform-origin: 50% 50%; will-change: transform; }
@media (min-width: 1024px) {
  .cr-hero__adapter {
    grid-row: 1;
    align-self: start;
    width: clamp(150px, 15vw, 210px);
  }
}

.cr-hero__copy > * + * {
  margin-top: var(--space-5);
}

.cr-hero__tip {
  margin-top: var(--space-6);
}

.cr-shelf {
  margin-top: var(--space-9);
  padding-top: var(--space-7);
  border-top: var(--border-hair) solid var(--rule);
}

.cr-shelf__head {
  display: grid;
  gap: var(--space-4);
  max-width: 60ch;
}

.cr-shelf__h {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  margin: 0;
}

.cr-bar__in {
  display: grid;
  gap: var(--space-4);
}

.cr-bar__selects {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .cr-bar__selects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .cr-bar__in {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: end;
    column-gap: var(--gutter);
  }
  .cr-bar__in > .cr-dividers {
    grid-column: 1 / span 8;
  }
  .cr-bar__in > .cr-bar__selects {
    grid-column: 9 / span 4;
  }
}

.cr-genre-note {
  margin: var(--space-2) 0 0;
  color: var(--muted);
  font-size: var(--fs-small);
}

.cr-archive {
  margin-top: var(--space-9);
  padding-top: var(--space-6);
  border-top: var(--border-hair) solid var(--rule);
}

.cr-archive p {
  margin: 0 0 var(--space-4);
  max-width: 60ch;
}

/* Refilter: leaving cards fade, entering cards reveal (motion on only) */
.cr-crate__item.is-leaving {
  opacity: 0;
  transition: opacity 160ms linear;
}

/* ------------------------------------------------------------------ */
/* The record detail: sleeve flip dialog (spec 6c)                     */
/* ------------------------------------------------------------------ */

.cr-detail {
  --cr-card: min(560px, calc(100vh - 112px), calc((100vw - 2 * var(--gutter)) * 0.6));
  --cr-vin: calc(var(--cr-card) * 0.93);
  /* The vinyl slides out far enough that its whole label (the Play button)
     clears the sleeve's edge: 0.75 of its width rather than half. */
  --cr-slide: calc(var(--cr-vin) * 0.75);
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background-color: transparent;
  color: var(--paper);
  overflow: hidden;
}

@supports (height: 100svh) {
  .cr-detail {
    --cr-card: min(560px, calc(100svh - 112px), calc((100vw - 2 * var(--gutter)) * 0.6));
  }
}

.cr-detail::backdrop {
  background-color: transparent;
}

/* The scrim fades; the card never does (Safari rule) */
.cr-detail__scrim {
  position: absolute;
  inset: 0;
  background-color: rgb(var(--ink-rgb) / 0.88);
}

.cr-detail__stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: var(--space-8) var(--gutter) var(--space-6);
  pointer-events: none;
}

.cr-detail__set {
  position: relative;
  transform-origin: 0 0;
  width: calc((var(--cr-card) - var(--cr-vin)) / 2 + var(--cr-slide) + var(--cr-vin));
  height: var(--cr-card);
  pointer-events: auto;
}

.cr-detail__vinyl {
  position: absolute;
  z-index: 0;
  left: calc((var(--cr-card) - var(--cr-vin)) / 2);
  top: calc((var(--cr-card) - var(--cr-vin)) / 2);
  width: var(--cr-vin);
  height: var(--cr-vin);
}

.cr-detail__disc {
  position: absolute;
  inset: 0;
  transform: translateX(0);
}

.cr-detail.is-out .cr-detail__disc {
  transform: translateX(var(--cr-slide));
}

.cr-detail__disc > svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Focus color: the Play label in the open record, /crates */
.cr-detail__play {
  position: absolute;
  left: 33%;
  top: 33%;
  width: 34%;
  height: 34%;
  display: grid;
  place-items: center;
  border-radius: var(--radius-round);
  background-color: var(--focus);
  color: var(--on-focus);
  text-decoration: none;
}

.cr-detail__play-ring {
  display: grid;
  place-items: center;
  width: min(96px, 70%);
  aspect-ratio: 1;
  border: var(--border-stamp) solid var(--ink);
  border-radius: var(--radius-round);
  transition: transform var(--dur-micro) var(--ease-out);
}

.cr-detail__play-ring svg {
  width: 38%;
  height: 38%;
  margin-left: 8%;
}

.cr-detail__play:hover .cr-detail__play-ring {
  transform: scale(1.06);
}

.cr-detail__play:focus-visible {
  outline: var(--focus-ring-width) solid var(--paper);
  outline-offset: var(--focus-ring-offset);
}

.cr-detail__flip {
  position: absolute;
  z-index: 1;
  left: 0;
  top: 0;
  width: var(--cr-card);
  height: var(--cr-card);
  perspective: var(--perspective-flip);
}

.cr-detail__card {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: rotateY(0deg);
}

.cr-detail.is-flipped .cr-detail__card {
  transform: rotateY(180deg);
}

/* Safari rules: backface hidden on both faces and every rotated child */
.cr-detail__face,
.cr-detail__card .stamp,
.cr-detail__card .cr-art__sticker,
.cr-detail__card .cr-art__cutbar {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.cr-detail__face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: var(--radius-sleeve);
}

.cr-detail__face--front {
  transform: rotateY(0deg);
}

.cr-detail__face--front .cr-art {
  --cr-sh-rest: var(--shadow-ink-3);
}

/* The back face on its own layer */
.cr-detail__face--back {
  transform: rotateY(180deg) translateZ(1px);
  background-color: var(--bg);
  color: var(--fg);
  box-shadow: var(--shadow-ink-3);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.cr-detail__front-act {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 13%;
  display: flex;
  justify-content: center;
}

.cr-detail__back-in {
  padding: var(--space-6) var(--space-6) var(--space-7);
}

.cr-detail__back-in > * + * {
  margin-top: var(--space-5);
}

.cr-detail__title {
  margin: var(--space-2) 0 0;
  font-family: var(--font-display);
  font-size: min(var(--fs-display-3), 2.25rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: var(--track-display);
  text-transform: uppercase;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.cr-detail__title:focus {
  outline: none;
}

.cr-detail__title:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
}

.cr-detail__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  margin: var(--space-5) 0 0;
  padding: var(--space-4) 0;
  border-top: var(--border-hair) solid var(--rule);
  border-bottom: var(--border-hair) solid var(--rule);
}

.cr-detail__facts dt {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-s);
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  color: var(--muted);
}

.cr-detail__facts dd {
  margin: var(--space-1) 0 0;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.cr-detail__h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-6) 0 0;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 700;
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
}

.cr-detail__notes {
  max-width: var(--measure);
  max-height: calc(12 * var(--lh-body) * 1em);
  overflow-y: auto;
}

.cr-tracks {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: var(--border-hair) solid var(--rule);
}

.cr-tracks li {
  display: grid;
  grid-template-columns: 7ch minmax(0, 1fr);
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: var(--border-hair) solid var(--rule);
}

.cr-tracks__time {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.cr-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.cr-chip {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 var(--space-4);
  border: var(--border) solid var(--fg);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 700;
  letter-spacing: var(--track-mono);
  text-decoration: none;
  transition: background-color var(--dur-micro) linear, color var(--dur-micro) linear;
}

.cr-chip:hover {
  background-color: var(--fg);
  color: var(--bg);
}

.cr-detail__club {
  padding-top: var(--space-5);
  border-top: var(--border-hair) solid var(--rule);
}

.cr-detail__close {
  position: absolute;
  z-index: 2;
  top: var(--space-4);
  right: var(--gutter);
  display: grid;
  place-items: center;
  width: var(--tap);
  height: var(--tap);
  padding: 0;
  border: var(--border) solid var(--fg);
  background-color: var(--bg);
  color: var(--fg);
  cursor: pointer;
  pointer-events: auto;
}

.cr-detail__close svg {
  width: 20px;
  height: 20px;
}

/* The open record on a phone: a full-screen sheet, the vinyl on top, the
   sleeve back scrolling below. */
@media (max-width: 767px) {
  .cr-detail {
    --cr-card: 100vw;
    --cr-vin: 100vw;
  }
  .cr-detail__stage {
    display: block;
    padding: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    pointer-events: auto;
  }
  .cr-detail__set {
    width: 100%;
    height: auto;
  }
  .cr-detail__vinyl {
    position: relative;
    left: 0;
    top: 0;
    width: 100vw;
    height: calc(50vw + 72px);
    overflow: hidden;
  }
  .cr-detail__disc {
    top: var(--space-6);
    bottom: auto;
    height: 100vw;
    transform: translateY(100%);
  }
  .cr-detail.is-out .cr-detail__disc {
    transform: translateY(0);
  }
  .cr-detail__play {
    left: calc(50% - 56px);
    top: calc(50% - 56px);
    width: 112px;
    height: 112px;
  }
  .cr-detail__flip {
    position: relative;
    width: 100vw;
    height: auto;
  }
  .cr-detail__card {
    display: grid;
    height: auto;
  }
  .cr-detail__face {
    position: relative;
    inset: auto;
    grid-area: 1 / 1;
  }
  .cr-detail__face--front {
    align-self: start;
    aspect-ratio: 1;
  }
  .cr-detail__face--back {
    min-height: 100vw;
    overflow: visible;
  }
  .cr-detail__back-in {
    padding: var(--space-6) var(--gutter) var(--space-8);
  }
  .cr-detail__notes {
    max-height: none;
  }
  .cr-detail__close {
    position: fixed;
  }
}

/* ------------------------------------------------------------------ */
/* Dunn Deals                                                          */
/* ------------------------------------------------------------------ */

.dd-hero__h1 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) var(--space-5);
}

.dd-how {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: var(--border-hair) solid var(--rule);
}

.dd-how li {
  display: grid;
  grid-template-columns: 3.5ch minmax(0, 1fr);
  gap: var(--space-3);
  padding: var(--space-4) 0;
  border-bottom: var(--border-hair) solid var(--rule);
  font-size: var(--fs-lead);
  line-height: var(--lh-tight);
}

.dd-how__n {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 700;
  letter-spacing: var(--track-mono);
  color: var(--muted);
  padding-top: 0.35em;
  font-variant-numeric: tabular-nums;
}

.dd-quote {
  margin: var(--space-8) 0 0;
  padding: var(--space-6) 0 0;
  border-top: var(--border-stamp) solid var(--fg);
}

.dd-quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-display-2);
  line-height: var(--lh-display);
  letter-spacing: var(--track-display);
  text-transform: uppercase;
  text-wrap: balance;
}

.dd-quote figcaption {
  margin-top: var(--space-4);
}

.dd-example {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  line-height: var(--lh-mono);
  color: var(--muted);
}

/* Search and filter bar */
.dd-bar__in {
  display: grid;
  gap: var(--space-4);
}

.dd-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-2);
  align-items: end;
}

.dd-search__label {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: var(--fs-mono-s);
  font-weight: 700;
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
}

.dd-search__input {
  width: 100%;
  min-height: var(--control-h);
  padding: 0 var(--space-4);
  border: var(--border) solid var(--fg);
  border-radius: var(--radius-0);
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
}

.dd-search__input:hover {
  border-width: 2px;
}

.dd-search__input::placeholder {
  color: var(--muted);
}

.dd-cats {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.dd-cats__chips {
  display: none;
}

.dd-cats__select {
  display: grid;
}

@media (min-width: 640px) {
  .dd-cats__chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
  }
  .dd-cats__select {
    display: none;
  }
}

.dd-chip {
  position: relative;
  display: block;
  cursor: pointer;
}

.dd-chip__text {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: var(--tap);
  padding: 0 var(--space-3);
  border: var(--border) solid var(--fg);
  font-family: var(--font-mono);
  font-size: var(--fs-mono-s);
  font-weight: 700;
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color var(--dur-micro) linear, color var(--dur-micro) linear;
}

.dd-chip__n {
  font-weight: 400;
  color: var(--muted);
}

.cr-div__input:checked + .dd-chip__text {
  background-color: var(--fg);
  color: var(--bg);
}

.cr-div__input:checked + .dd-chip__text .dd-chip__n {
  color: var(--bg);
}

.cr-div__input:focus-visible + .dd-chip__text {
  outline: var(--focus-ring-width) solid var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
}

.dd-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dd-status .dd-chip__text {
  width: 100%;
  justify-content: center;
  white-space: normal;
  text-align: center;
  line-height: 1.2;
}

.dd-status .dd-chip + .dd-chip .dd-chip__text {
  border-left-width: 0;
}

.dd-legend-row {
  margin: 0 0 var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--fs-mono-s);
  font-weight: 700;
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
}

@media (min-width: 1024px) {
  .dd-bar__in {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gutter);
    align-items: end;
  }
  /* Search and status stacked in columns 1 to 4, the category chips beside
     them in columns 5 to 12, so the sticky bar stays two chip rows tall. */
  .dd-bar__in { align-items: start; row-gap: var(--space-3); }
  .dd-bar__in > .dd-search { grid-column: 1 / span 4; grid-row: 1; }
  .dd-bar__in > .dd-status-wrap { grid-column: 1 / span 4; grid-row: 2; }
  .dd-bar__in > .dd-cats { grid-column: 5 / span 8; grid-row: 1 / span 2; }
  .dd-cats__chips { gap: 6px; }
  .dd-cats__chips .dd-chip__text { padding: 0 var(--space-2); letter-spacing: 0.04em; }
}

/* The bin */
.dd-bin__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-4);
  margin-top: var(--space-7);
}

.dd-bin__head + p {
  margin-top: var(--space-4);
}

.dd-bin__n {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-l);
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.dd-legend {
  list-style: none;
  margin: var(--space-5) 0 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
}

.dd-legend li {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  align-items: center;
  gap: var(--space-3);
  max-width: 70ch;
}

.dd-legend li .stamp {
  justify-self: start;
}

.dd-grid {
  list-style: none;
  margin: var(--space-6) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5) var(--gutter);
}

@media (min-width: 640px) {
  .dd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .dd-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.dd-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-height: 232px;
  padding: var(--space-5) var(--space-5) var(--space-4);
  border: var(--border) solid var(--fg);
  background-color: var(--bg);
  color: var(--fg);
  box-shadow: var(--shadow-1);
  content-visibility: auto;
  contain-intrinsic-size: auto 232px;
  transition: transform var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .dd-card:hover {
    transform: translateY(var(--lift-hover));
    box-shadow: var(--shadow-2);
  }
}

.dd-card.is-highlighted {
  outline: 2px solid var(--fg);
  outline-offset: 4px;
}

.dd-card__hole {
  position: absolute;
  left: 10px;
  top: 10px;
  width: 12px;
  height: 12px;
  border-radius: var(--radius-round);
  background-color: var(--bg);
  box-shadow: inset 0 0 0 1px var(--rule), 0 0 0 1px var(--rule);
}

.dd-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-left: var(--space-4);
}

.dd-card__num {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-s);
  font-weight: 700;
  letter-spacing: var(--track-mono);
  font-variant-numeric: tabular-nums;
}

.dd-card__brand {
  margin: var(--space-3) 0 0;
  font-family: var(--font-body);
  font-size: var(--fs-title);
  font-weight: var(--weight-strong);
  line-height: var(--lh-tight);
  overflow-wrap: anywhere;
}

.dd-card__cat {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-mono-s);
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  color: var(--muted);
}

.dd-card__code {
  margin: var(--space-2) 0 0;
  padding: var(--space-3);
  border: 1.5px dashed var(--fg);
  font-family: var(--font-mono);
  font-size: var(--fs-mono-l);
  font-weight: 700;
}

.dd-card__since {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--muted);
}

.dd-card__link {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
}

.dd-card--skeleton {
  border-style: dashed;
  border-color: var(--rule);
  box-shadow: none;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: var(--fs-mono-s);
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  color: var(--muted);
}

.dd-more {
  margin-top: var(--space-7);
}

.dd-join__intro {
  margin-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-4);
}

.dd-join .cr-plan {
  margin-top: var(--space-7);
}

.dd-join__ctas {
  margin-top: var(--space-7);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-5) var(--space-6);
}

@media (max-width: 639px) {
  .dd-join__ctas .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ------------------------------------------------------------------ */
/* The Record Store                                                    */
/* ------------------------------------------------------------------ */

.rs-hero__stamps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
}

.rs-fan {
  position: relative;
  height: 280px;
  margin-top: var(--space-7);
  overflow: clip;
}

.rs-fan__inner {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform: scale(0.7);
}

@media (min-width: 1024px) {
  .rs-fan {
    height: 100%;
    min-height: 340px;
    margin-top: 0;
    overflow: visible;
  }
  .rs-fan__inner {
    transform: none;
  }
}

.rs-fan__sleeve {
  position: absolute;
  left: -110px;
  top: -110px;
  width: 220px;
  height: 220px;
  box-shadow: var(--shadow-3);
}

.rs-fan__sleeve:nth-child(1) { transform: translateX(-70px) rotate(-4deg); }
.rs-fan__sleeve:nth-child(2) { transform: translateY(-18px) rotate(0deg); }
.rs-fan__sleeve:nth-child(3) { transform: translateX(70px) rotate(5deg); }

/* Store sleeve face text, sized to the sleeve */
.rs-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: var(--radius-sleeve);
  background-color: var(--bg);
  color: var(--fg);
  container-type: inline-size;
  box-shadow: var(--rs-sh, var(--shadow-1)), inset 0 0 0 var(--border-hair) var(--rule);
}

.rs-face__in {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 2.5cqw;
  padding: 7cqw;
}

.rs-face__label {
  font-family: var(--font-mono);
  font-size: max(11px, 4.4cqw);
  font-weight: 700;
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
}

.rs-face__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(20px, 11cqw, 44px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: var(--track-display);
  text-transform: uppercase;
  text-wrap: balance;
}

.rs-face__name:focus {
  outline: none;
}

.rs-face__name:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
}

.rs-face__aside {
  display: block;
  margin-top: 1.5cqw;
  font-family: var(--font-mono);
  font-size: max(11px, 3.8cqw);
  letter-spacing: 0.02em;
  text-transform: none;
}

.rs-face__dl {
  margin: auto 0 0;
  display: grid;
  gap: 1.8cqw;
}

.rs-face__dl div {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  gap: 2cqw;
  padding-top: 1.8cqw;
  border-top: var(--border-hair) solid var(--rule);
}

.rs-face__dl dt {
  font-family: var(--font-mono);
  font-size: max(11px, 3.6cqw);
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  color: var(--muted);
}

.rs-face__dl dd {
  margin: 0;
  font-size: max(12px, 4.4cqw);
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.rs-face__photo {
  margin-bottom: var(--space-3);
  min-height: 0;
  padding: var(--space-1) var(--space-2);
}

/* On a narrow sleeve the photo slot would shrink to a sliver, so it gives its room to the text. */
@container (max-width: 259px) {
  .rs-face__photo { display: none; }
}

/* The back carries a heading, the photo slot, and three rows, so its name runs smaller than the front's. */
.rs-face--back .rs-face__name { font-size: clamp(16px, 8cqw, 36px); }

@container (max-width: 200px) {
  .rs-face--back .rs-face__in { gap: 1.5cqw; padding: 5cqw; }
  .rs-face--back .rs-face__dl { gap: 1cqw; }
  .rs-face--back .rs-face__dl div { padding-top: 1cqw; }
}

.rs-face__stamp {
  position: absolute;
  top: 6cqw;
  right: 6cqw;
  background-color: var(--bg);
  transform: rotate(3deg);
}

/* With a stamp in the corner, the label line starts below it. */
.rs-face__stamp + .rs-face__in {
  padding-top: calc(7cqw + 30px);
}

/* The crates, by name or by type */
.rs-controls {
  display: grid;
  gap: var(--space-4);
}

.rs-by {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-4);
}

.rs-by legend {
  float: left;
  margin-right: var(--space-4);
  padding: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-mono-s);
  font-weight: 700;
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  line-height: var(--tap);
}

.rs-grid {
  list-style: none;
  margin: 0;
  padding: var(--space-9) 0 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-8) var(--gutter);
}

@media (min-width: 520px) {
  .rs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 640px) {
  .rs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .rs-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.rs-grid--three {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 640px) {
  .rs-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.rs-card {
  --rs-sh: var(--shadow-1);
  min-width: 0;
}

.rs-card.is-pulled {
  --rs-sh: var(--shadow-2);
}

.rs-card__sleeve {
  position: relative;
  aspect-ratio: 1;
  perspective: var(--perspective-flip);
  transform: translateY(0);
  transition: transform var(--dur-settle) var(--ease-out);
}

.rs-card.is-pulled .rs-card__sleeve {
  transform: translateY(var(--lift-pulled));
}

.rs-card.is-pulled:not(.is-flipped):not(.is-dropping) .cr-vinyl {
  transform: translateY(calc(-2.2 * var(--peek-pulled)));
}

.rs-card.is-dropping .cr-vinyl {
  transition-duration: 160ms;
}

/* Focus color: the pulled record's label, /record-store */
.rs-card.is-pulled .cr-vinyl__label,
.rs-week.is-pulled .cr-vinyl__label {
  background-color: var(--focus);
}

.rs-card__card {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateY(0deg);
  transition: transform var(--dur-flip) var(--ease-in-out);
}

.rs-card.is-flipped .rs-card__card,
.rs-week.is-flipped .rs-card__card {
  transform: rotateY(180deg);
}

/* Safari rules for the in-place flip */
.rs-card__card .rs-face,
.rs-card__card .stamp,
.rs-card__card .rs-face__stamp {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.rs-face--back {
  overflow-y: auto;   /* a back with both a photo and stats can run past the face; it scrolls instead of clipping (2026-10-22) */
  transform: rotateY(180deg) translateZ(1px);
}

.rs-card__flip {
  margin-top: var(--space-4);
}

.rs-card--skeleton .rs-card__sleeve {
  display: grid;
  place-items: center;
  border: var(--border) dashed var(--rule);
  font-family: var(--font-mono);
  font-size: var(--fs-mono-s);
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  color: var(--muted);
}

/* Record of the Week: the vinyl sits beside the sleeve, outside it, so it can
   slide across columns 4 to 8 on desktop and peek above the sleeve on phones. */
.rs-week {
  --rs-sh: var(--shadow-3);
  margin-top: var(--space-7);
}

.rs-week__stage {
  position: relative;
  padding-top: 22%;
}

.rs-week__stage > .rs-card__sleeve {
  width: 100%;
}

.rs-week__stage > .cr-vinyl {
  top: auto;
  bottom: 0;
  left: 2%;
  width: 96%;
  margin-bottom: 2%;
  transform: translateY(calc(-1 * var(--peek-pulled)));
}

.rs-week.is-dropping .rs-week__stage > .cr-vinyl,
.rs-week.is-flipped .rs-week__stage > .cr-vinyl {
  transform: translateY(0);
  transition-duration: 160ms;
}

@media (min-width: 1024px) {
  .rs-week__stage {
    grid-column: 1 / span 8;
    padding-top: 0;
  }
  .rs-week__stage > .rs-card__sleeve {
    width: 62.5%;
  }
  .rs-week__stage > .cr-vinyl,
  .rs-week.is-dropping .rs-week__stage > .cr-vinyl,
  .rs-week.is-flipped .rs-week__stage > .cr-vinyl {
    left: 37.5%;
    width: 60%;
    margin-bottom: 1.25%;
    transform: translateX(0);
  }
  .rs-week__details {
    grid-column: 9 / span 4;
    align-self: center;
  }
}

.rs-week__details > * + * {
  margin-top: var(--space-5);
}

.rs-week__name {
  margin: 0;
  overflow-wrap: anywhere;
}

.rs-week__name .rs-face__aside {
  margin-top: var(--space-3);
  font-size: var(--fs-mono-l);
}

.rs-week__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
}

.rs-new__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
}

/* The original pressings, a tracklist */
.rs-tracks {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: var(--border-hair) solid var(--rule);
}

.rs-tracks li {
  display: grid;
  grid-template-columns: 4ch minmax(0, 1fr);
  gap: var(--space-2) var(--space-4);
  padding: var(--space-5) 0;
  border-bottom: var(--border-hair) solid var(--rule);
}

.rs-tracks__n {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 700;
  color: var(--muted);
  padding-top: 0.4em;
  font-variant-numeric: tabular-nums;
}

.rs-tracks__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-display-3);
  font-weight: 400;
  line-height: var(--lh-display);
  letter-spacing: var(--track-display);
  text-transform: uppercase;
}

.rs-tracks__name a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.rs-tracks__meta {
  grid-column: 2;
  margin: 0;
}

.rs-tracks__note {
  grid-column: 2;
  margin: 0;
}

/* Wholesale note */
.rs-wholesale__in > * + * {
  margin-top: var(--space-5);
}

.rs-wholesale .cr-plan {
  margin-top: var(--space-7);
}

.rs-wholesale__ctas {
  margin-top: var(--space-7);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-5);
}

@media (min-width: 1024px) {
  .rs-wholesale__in {
    grid-column: 2 / span 8;
  }
}

/* Show more: the grid opens three rows at a time (2026-10-15). */
.cr-more { display: grid; gap: 12px; justify-items: start; margin-top: 24px; }
.cr-more__line { margin: 0; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; opacity: .72; }
.cr-more__acts { display: flex; flex-wrap: wrap; gap: 12px; }
