:root {
  --ink: #1a1a1a;
  --text: #444;
  --muted: #8a8a8a;
  --faint: #b5b5b5;
  --rule: #e6e6e6;
  --page: #fff;
  --gutter: clamp(16px, 5vw, 72px);
  --col-gap: clamp(24px, 3vw, 48px);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
p, h1, h2, h3, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; width: 100%; height: auto; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 8px; background: var(--page); padding: 4px 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Header: a red band, then a slim dark band with the name, menu and tagline on one line */

.site-header {
  display: flex;
  align-items: center;
  gap: 8px 32px;
  flex-wrap: wrap;
  background: var(--ink);
  border-top: 30px solid #d4301f;
  padding: 14px max(var(--gutter), calc((100% - 1600px) / 2 + var(--gutter)));
}
.wordmark {
  color: #dddad3;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
/* The baseball script logo, white on a transparent background */
.wordmark.script img { display: block; width: auto; height: 46px; }
/* The angular RAMJAC from the 002 sleeve, white */
/* 214px: as tall as the 46px logo box, so the header keeps its height */
.wordmark.angular { display: flex; align-items: center; height: 46px; }
.wordmark.angular img { display: block; width: 214px; height: auto; }

.site-header ul { display: flex; flex-wrap: wrap; gap: 4px 26px; }
.site-header nav a,
.tagline {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #9a9a9a;
}
.site-header nav a:hover,
.site-header nav a[aria-current="page"] { color: #fff; }
.site-header a:focus-visible { outline-color: #fff; }
.tagline { margin-left: auto; }

main {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Catalogue: large covers, four across, with a short caption underneath */

.catalogue {
  margin-top: clamp(56px, 6vw, 96px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: clamp(36px, 4vw, 56px);
}

.entry a { display: block; }
.entry .cover { aspect-ratio: 1; background: #f4f4f4; }
.entry .cover img { height: 100%; object-fit: cover; }
.entry .cover { position: relative; }
.entry .hover { position: absolute; inset: 0; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.15s; }
@media (hover: hover) {
  .entry a:hover .hover { opacity: 1; }
}
.entry .info { margin-top: 12px; font-size: 14px; line-height: 1.35; }
.entry .artist { color: var(--ink); font-weight: 600; }
.entry .title { color: var(--ink); }
.entry .year { color: var(--muted); margin-top: 2px; font-size: 13px; }
.entry a:hover .title { text-decoration: underline; text-underline-offset: 2px; }

.entry[hidden] { display: none; }

/* Artist page */

.artist-head { margin: 56px 0 40px; max-width: 34em; }
.artist-head h1 { color: var(--ink); font-size: 17px; font-weight: 600; }
.bio { margin-top: 12px; }
.artist-links { margin-top: 12px; color: var(--muted); }
.artist-links a { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--faint); }
.artist-links a:hover { color: var(--ink); text-decoration-color: var(--ink); }

/* Release page */

.back { margin: 56px 0 32px; color: var(--muted); }
.back a:hover { color: var(--ink); }

.release {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr);
  column-gap: clamp(32px, 4vw, 72px);
  align-items: start;
}

.release-cover { max-width: 640px; }

.release-artist { color: var(--ink); font-size: 15px; font-weight: 600; }
.release h1 { color: var(--text); font-size: 15px; font-weight: 400; }

.facts { margin: 28px 0 0; border-top: 1px solid var(--rule); }
.facts div {
  display: grid;
  grid-template-columns: 9em 1fr;
  gap: 16px;
  padding: 7px 0;
  border-bottom: 1px solid var(--rule);
}
.facts dt { color: var(--muted); }
.facts dd { color: var(--ink); }
.facts a { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--faint); }
.facts a:hover { text-decoration-color: var(--ink); }

.release h2 {
  margin: 40px 0 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.side { margin: 16px 0 4px; color: var(--muted); font-size: 12px; font-weight: 500; }
.side:first-of-type { margin-top: 0; }

.tracks li {
  display: grid;
  grid-template-columns: 2.4em 1fr auto;
  gap: 8px;
  padding: 3px 0;
}
.tracks .num, .tracks .dur { color: var(--faint); font-variant-numeric: tabular-nums; }
.tracks .t { color: var(--ink); }

.tracks .video {
  margin-left: 8px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--faint);
}
.tracks .video:hover { color: var(--ink); text-decoration-color: var(--ink); }

/* Snippet buttons: the track number turns into a play sign on hover */
.tracks .play {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
}
.tracks .play::before { content: "▶"; display: inline-block; width: 1.3em; font-size: 9px; }
.tracks .play span { color: var(--faint); }
.tracks .play:hover span, .tracks .play[aria-pressed="true"] span { color: var(--ink); }
.tracks .play[aria-pressed="true"]::before { content: "❚❚"; letter-spacing: -2px; }
.tracks:has(.play) li { grid-template-columns: 3.4em 1fr auto; }
.tracks .play:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.tracks .tc { display: block; margin: 1px 0 4px; color: var(--muted); font-size: 12px; line-height: 1.4; }

.credits li { padding: 2px 0; }

/* About */

.about { max-width: 34em; margin: 56px 0 0; }
.about h1 { color: var(--ink); font-size: 17px; font-weight: 600; margin-bottom: 16px; }
.about h2 { margin: 32px 0 8px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.about p + p { margin-top: 10px; }
.placeholder { color: var(--faint); }
.about a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--faint); }
.about a:hover { text-decoration-color: var(--ink); }

/* Footer: the header's bands in reverse, dark then red */

.site-footer {
  display: flex;
  gap: 16px 64px;
  flex-wrap: wrap;
  margin-top: clamp(80px, 9vw, 140px);
  background: var(--ink);
  border-bottom: 30px solid #d4301f;
  padding: 28px max(var(--gutter), calc((100% - 1600px) / 2 + var(--gutter))) 32px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #9a9a9a;
}
.site-footer h2 { margin-bottom: 6px; font-size: inherit; font-weight: 400; color: #dddad3; }
.site-footer a { color: #dddad3; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.site-footer a:focus-visible { outline-color: #fff; }
.site-footer .star { margin-left: auto; align-self: center; width: 28px; height: auto; }

/* Tablet: two across */

@media (max-width: 1099px) {
  .catalogue { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Release page stacks below 900px */

@media (max-width: 899px) {
  .release { grid-template-columns: 1fr; }
  .release-info { margin-top: 28px; }
}

/* Mobile: two across */

@media (max-width: 639px) {
  .site-header { gap: 10px 24px; }
  .site-header nav { order: 3; width: 100%; }
  .site-header ul { justify-content: space-between; gap: 4px 12px; }
  .tagline { display: none; }
  /* The angular logo spans the header on phones */
  .wordmark.angular { flex-basis: 100%; height: auto; }
  .wordmark.angular img { width: 100%; }
  .catalogue { margin-top: 40px; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .back, .artist-head, .about { margin-top: 36px; }
}

/* Release cover carousel: the cover, then one photo per physical format */

.carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; aspect-ratio: 1; scroll-snap-align: start; display: flex; align-items: center; }
.slide img { max-height: 100%; object-fit: contain; }

.slides-nav { display: flex; gap: 4px; margin-top: 10px; }
.slides-nav[hidden] { display: none; }
.slides-nav button {
  padding: 4px 8px 4px 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}
.slides-nav button:hover { color: var(--ink); }
.slides-nav button:disabled { color: var(--rule); cursor: default; }
.facts .status { color: var(--muted); }

.artist-head + .catalogue { margin-top: 0; }

/* Keep the footer at the bottom of the window on short pages */
body { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1 0 auto; width: 100%; }
