/* Vinyl / LP - design-system tokens (from the claude.ai/design project). */
:root {
  --color-bg: #e8e0d0;
  --color-text: #1a1714;
  --color-sleeve: #f4ecdc;
  --color-record-accent: #d1452c;
  --color-record-text: #f4ecdc;

  --font-heading: "Big Shoulders Display", sans-serif;
  --font-body: "IBM Plex Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  text-wrap: pretty;
}

a { color: inherit; text-underline-offset: 3px; }
a:hover { opacity: .75; }
img { display: block; max-width: 100%; }
figure { margin: 0; }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--color-text); outline-offset: 3px; }

.page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 24px;
}

/* - mobile stage: normal flow - */
.stage {
  position: relative;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
}

.sleeve {
  position: relative;
  z-index: 2;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--color-sleeve);
  box-shadow: 12px 16px 40px rgba(0, 0, 0, .3);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
}

.portrait-frame {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  filter: grayscale(1) contrast(1.15);
}
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
}

.sleeve-footer {
  padding: clamp(14px, 3vw, 24px) clamp(16px, 3vw, 28px);
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  border-top: 4px solid var(--color-text);
}

.title {
  font: 800 clamp(32px, 9vw, 76px)/0.9 var(--font-heading);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: -.01em;
  text-wrap: balance;
}

.catalog {
  font: 400 clamp(11px, 1.4vw, 13px) var(--font-body);
  text-align: right;
  line-height: 1.6;
  flex-shrink: 0;
}

.record {
  position: absolute;
  z-index: 1;
  top: -8%;
  right: -18%;
  width: 55%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, #141210 0 2px, #1f1c19 2px 4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.label {
  width: 40%;
  height: 40%;
  border-radius: 50%;
  background: var(--color-record-accent);
  color: var(--color-record-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
}

.label-side {
  font: 800 clamp(13px, 2.4vw, 22px) var(--font-heading);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.label-rpm {
  font: 400 clamp(8px, 1.1vw, 11px) var(--font-body);
  letter-spacing: .1em;
  white-space: nowrap;
}

.label-hole {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-bg);
}

.tracklist {
  position: relative;
  z-index: 2;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font: 400 14px var(--font-body);
  background: var(--color-bg);
  padding: 20px;
  border: 2px solid var(--color-text);
}

.tracklist-title {
  font: 800 18px var(--font-heading);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.tracklist ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.play {
  background: var(--color-text);
  color: var(--color-sleeve);
  padding: 12px 14px;
  text-decoration: none;
  text-align: center;
  border: 2px solid var(--color-text);
}

.play-secondary {
  margin-top: -8px; /* pairs with Play rather than the 18px list gap */
  background: transparent;
  color: var(--color-text);
}
.play-secondary:hover { background: var(--color-text); color: var(--color-sleeve); opacity: 1; }

/* - desktop: composed stage, percentages match the 1280x800 artboard - */
@media (min-width: 1024px) {
  .stage {
    aspect-ratio: 1280 / 800;
    /* Fit the 16:10 stage inside the viewport on wide screens too (page padding is 24px). */
    width: min(100%, calc((100vh - 48px) * 1.6));
    width: min(100%, calc((100svh - 48px) * 1.6));
  }

  .sleeve {
    position: absolute;
    left: 5%;
    top: 10%;
    width: 46.9%;
    height: 80%;
    aspect-ratio: auto;
  }

  .record {
    top: 12.5%;
    right: auto;
    left: 36.7%;
    width: 46.9%;
  }

  .tracklist {
    position: absolute;
    right: 4.4%;
    top: 7.5%;
    width: 20.3%;
    margin-top: 0;
  }
}

/* - stacked (tablet + mobile): the LP slides out of the bottom of the sleeve - */
@media (max-width: 1023px) {
  .stage { display: flex; flex-direction: column; }
  .sleeve { order: 1; }
  .record {
    order: 2;
    position: relative;
    top: auto;
    right: auto;
    width: 100%; /* same width as the sleeve */
    margin-top: -55%; /* % of stage width: tucks over half the disc under the sleeve */
  }
  /* The tracklist overlaps the bottom of the disc, like a card resting on it. */
  .tracklist { order: 3; margin-top: -22%; }
}

/* - tablet: stacked like mobile, sleeve kept to a sensible size - */
@media (min-width: 760px) and (max-width: 1023px) {
  .stage { max-width: 560px; }
}

/* - mobile fine-tuning - */
@media (max-width: 759px) {
  .tracklist { font-size: 13px; }
}
