:root {
  --ink: #17130f;
  --cream: #f4ecdc;
  --paper: #fffaf0;
  --red: #8b221c;
  --gold: #c89542;
  --muted: #72685a;
  --line: #d8c9b2;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--cream); font: 15px/1.5 Arial, sans-serif; }
button, input, select { font: inherit; }
header { display: flex; justify-content: space-between; align-items: center; padding: 18px clamp(22px,6vw,90px); border-bottom: 1px solid var(--line); background: rgba(255,250,240,.92); }
header a { color: var(--red); font-weight: 700; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand strong, .brand small { display: block; }
.brand strong { font: 700 23px Georgia, serif; }
.brand small { color: var(--muted); }
.brand-disc { width: 43px; height: 43px; border: 10px solid var(--ink); border-radius: 50%; background: var(--gold); box-shadow: inset 0 0 0 2px var(--cream); }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .72fr);
  align-items: center;
  gap: clamp(34px, 6vw, 90px);
  padding: 58px clamp(24px,8vw,130px);
  background: var(--paper);
}
.hero-copy { min-width: 0; }
.eyebrow { color: var(--red); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1 { margin: 8px 0 20px; font: 700 clamp(55px,9vw,118px)/.86 Georgia, serif; letter-spacing: -.055em; }
h1 em { color: var(--red); font-weight: 400; }
.hero-copy > p:not(.eyebrow) { max-width: 690px; color: var(--muted); font-size: 18px; }
.hero-photo {
  position: relative;
  width: min(100%, 410px);
  margin: 0;
  justify-self: end;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #241810;
  box-shadow: 18px 22px 0 #e7dac6, 0 24px 60px rgba(52,37,21,.25);
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 10px rgba(255,250,240,.14);
}
.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
}
#search-form { max-width: 740px; margin-top: 30px; }
.search-row { display: flex; }
.search-row input { flex: 1; min-width: 0; padding: 17px; border: 1px solid var(--line); background: white; }
#search-form button, .primary { padding: 0 23px; border: 0; color: white; background: var(--red); font-weight: 750; cursor: pointer; }
.artist-only-option {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.artist-only-option input { width: 18px; height: 18px; margin: 0; accent-color: var(--red); }
.stats { display: grid; grid-template-columns: repeat(3,1fr); padding: 27px clamp(24px,8vw,130px); color: white; background: var(--ink); }
.stats div { text-align: center; border-right: 1px solid #51493e; }
.stats div:last-child { border: 0; }
.stats strong, .stats span { display: block; }
.stats strong { color: var(--gold); font: 700 30px Georgia, serif; }
.catalogue { display: grid; grid-template-columns: 235px 1fr; gap: 38px; padding: 65px clamp(22px,6vw,90px) 90px; }
.filters { align-self: start; position: sticky; top: 20px; padding: 22px; border: 1px solid var(--line); background: var(--paper); }
.filters > div { display: flex; justify-content: space-between; align-items: center; }
.filters h2 { margin: 0; font: 700 25px Georgia, serif; }
.filters > div button { border: 0; color: var(--red); background: none; cursor: pointer; }
.filters label { display: block; margin: 20px 0 7px; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.filters select { width: 100%; padding: 11px; border: 1px solid var(--line); background: white; }
.filters .primary { width: 100%; margin-top: 24px; padding: 13px; }
.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.toolbar p { margin-right: auto; color: var(--muted); }
.toolbar select { padding: 10px; border: 1px solid var(--line); background: var(--paper); }
#mobile-filters { display: none; }
.grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 28px 18px; }
article { min-width: 0; }
.cover-button { width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.cover { aspect-ratio: 1; overflow: hidden; border: 1px solid var(--line); background: #d9c8aa; box-shadow: 0 8px 22px rgba(52,37,21,.13); }
.cover img, .detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-fallback { display: grid; place-items: center; width: 100%; height: 100%; padding: 15px; color: white; background: var(--red); text-align: center; }
.card-copy p { margin: 11px 0 4px; color: var(--red); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.card-copy h3, .card-copy h4 { overflow: hidden; margin: 0; white-space: nowrap; text-overflow: ellipsis; }
.card-copy h3 { font: 700 18px Georgia, serif; }
.card-copy h4 { margin-top: 3px; font-size: 13px; }
.card-copy span { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; }
#pagination { display: flex; justify-content: center; gap: 7px; margin-top: 45px; }
#pagination button { width: 42px; height: 42px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; }
#pagination button.active { color: white; background: var(--red); }
.empty { grid-column: 1/-1; padding: 70px; border: 1px dashed var(--line); text-align: center; }
footer { display: flex; justify-content: space-between; padding: 35px clamp(22px,6vw,90px); color: #eee3d4; background: var(--ink); }
dialog { width: min(900px,calc(100vw - 30px)); padding: 0; border: 0; box-shadow: 0 25px 90px rgba(0,0,0,.45); }
dialog::backdrop { background: rgba(23,19,15,.78); }
.close { position: absolute; z-index: 2; right: 10px; top: 10px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: white; font-size: 27px; cursor: pointer; }
.detail-layout { display: grid; grid-template-columns: minmax(280px,48%) 1fr; }
.detail-cover { aspect-ratio: 1; background: #d9c8aa; }
.detail-layout > div:last-child { padding: 45px; }
.detail-layout h2 { margin: 5px 0; font: 700 38px Georgia, serif; }
.detail-layout h3 { margin: 0; color: var(--muted); }
dl { margin: 25px 0; border-top: 1px solid var(--line); }
dl div { display: grid; grid-template-columns: 105px 1fr; padding: 8px 0; border-bottom: 1px solid var(--line); }
dt { color: var(--muted); }
dd { margin: 0; font-weight: 700; }
.notes { padding: 12px; background: var(--cream); }
.discogs-link { color: var(--red); font-weight: 750; }
@media (max-width: 1050px) {
  .grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(260px, .58fr); gap: 38px; }
  .hero h1 { font-size: clamp(54px, 8vw, 82px); }
}
@media (max-width: 760px) {
  header { align-items: flex-start; } header > a:last-child { font-size: 12px; }
  .hero { display: block; padding: 45px 20px 58px; }
  .hero-photo {
    width: 100%;
    max-height: 430px;
    margin: 38px 0 0;
    box-shadow: 10px 12px 0 #e7dac6, 0 20px 45px rgba(52,37,21,.22);
  }
  .hero-photo img { height: 430px; object-fit: cover; object-position: 50% 56%; }
  .search-row { display: block; } .search-row input, #search-form button { width: 100%; padding: 15px; }
  .stats { padding-inline: 12px; } .stats strong { font-size: 22px; } .stats span { font-size: 11px; }
  .catalogue { display: block; padding: 35px 18px 65px; } .filters { display: none; position: static; margin-bottom: 20px; } .filters.open { display: block; }
  #mobile-filters { display: block; padding: 9px 12px; border: 1px solid var(--line); background: var(--paper); }
  .toolbar { flex-wrap: wrap; } .toolbar p { order: 3; width: 100%; margin: 0; }
  .grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 13px; }
  .detail-layout { display: block; } .detail-cover { max-width: 100%; } .detail-layout > div:last-child { padding: 28px; }
  footer { display: block; } footer span { display: block; margin-top: 8px; }
}
