:root {
  --ink: #333;
  --steel: #808080;
  --paper: #f6f6f4;
  --rule: #b8b8b6;
  --mono: 'Courier New', monospace;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
}

body {
  background: linear-gradient(135deg, #e6e6e6, #d9d9d9 46%, #aaa);
  background-attachment: fixed;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

.page-container {
  max-width: 1600px;
  margin: auto;
  border-inline: 1px solid #80808055;
}

header {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr);
  background: #ededeb;
  border-bottom: 1px solid #333;
  box-shadow: none;
  backdrop-filter: none;
  padding: 28px;
  gap: 30px;
  z-index: 1;
}

.header-banner-container {
  order: 2;
  padding: 0;
  position: relative;
  align-self: stretch;
  min-height: 180px;
  border: 1px solid #808080;
  background: #333;
  overflow: hidden;
}

.header-banner-container:after {
  content: 'AUDIO / VISUAL';
  position: absolute;
  left: 12px;
  bottom: 10px;
  color: #fff;
  background: #333d;
  padding: 3px 6px;
  font: 9px var(--mono);
  letter-spacing: 2px;
  pointer-events: none;
}

.header-banner-desktop {
  height: 100%;
  min-height: 180px;
  max-height: 230px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: grayscale(1);
  object-position: 50% 45%;
}

.header-banner-mobile {
  border-radius: 0;
}

.header-content {
  padding: 6px 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  min-width: 0;
}

.archive-kicker {
  font: 10px var(--mono);
  letter-spacing: 2px;
  text-transform: uppercase;
  display: flex;
  gap: 10px;
  align-items: center;
}

.archive-kicker:before {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  background: #333;
}

.header-content h1 {
  font: normal clamp(38px, 6vw, 78px) / 0.95 Arial, Helvetica, sans-serif;
  letter-spacing: -3px;
  justify-content: flex-start;
  margin: 25px 0 18px;
  gap: 0;
  display: block;
}

.header-content h1 img {
  display: none;
}

.header-content hr {
  display: none;
}

.archive-subtitle {
  font: 10px var(--mono);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 22px;
  color: #555;
}

.nav-bar {
  justify-content: flex-start;
  gap: 5px;
}

.nav-button {
  border: 1px solid #808080;
  border-radius: 0;
  background: transparent;
  color: #333;
  font: 10px var(--mono);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 9px 15px;
}

.nav-button:hover {
  background: #333;
  color: #fff;
  transform: none;
}

.main-content {
  padding: 28px;
  min-height: 0;
}

section {
  border: 1px solid #aaa;
  border-radius: 0;
  background: #f6f6f4e8;
  box-shadow: none;
  backdrop-filter: none;
  padding: 24px;
  margin-bottom: 28px;
  position: relative;
}

section:before {
  content: '';
  position: absolute;
  left: -1px;
  top: -1px;
  width: 16px;
  height: 16px;
  border-left: 2px solid #333;
  border-top: 2px solid #333;
  pointer-events: none;
}

h2 {
  font: normal clamp(18px, 2.5vw, 28px) / 1.2 Arial, sans-serif;
  letter-spacing: -0.6px;
  text-transform: none;
  margin: 0 0 18px;
}

.section-id {
  display: block;
  font: 9px var(--mono);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 9px;
  color: #666;
}

section > hr {
  display: none;
}

.archive-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #aaa;
  border-bottom: 1px solid #aaa;
  padding: 12px 0;
  margin: 0 0 10px;
}

.year-filter {
  margin: 0;
  gap: 4px;
  justify-content: flex-start;
}

.year-btn {
  border: 1px solid #999;
  border-radius: 0;
  padding: 9px 18px;
  font: 11px var(--mono);
  background: transparent;
  transition: background 0.15s;
}

.year-btn:hover,
.year-btn.active {
  background: #333;
  color: #fff;
  border-color: #333;
}

.archive-search {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 10px var(--mono);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.archive-search input {
  width: min(260px, 45vw);
  border: 1px solid #aaa;
  background: white;
  color: #333;
  padding: 9px 10px;
  border-radius: 0;
  font: 12px Arial, sans-serif;
}

.archive-count {
  font: 10px var(--mono);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #666;
  margin: 12px 0 22px;
}

.archive-empty {
  font: 14px var(--mono);
  padding: 28px 0;
}

.grid-container {
  grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
  gap: 28px 20px;
  align-items: start;
}

.album-card {
  padding: 10px 0 0;
  background: transparent;
  border: 0;
  border-top: 1px solid #999;
  border-radius: 0;
  box-shadow: none;
  height: auto;
  min-width: 0;
  transition: none;
  counter-increment: album;
  gap: 0;
}

.album-card:before {
  content: attr(data-catalog) ' / AUDIO';
  font: 9px var(--mono);
  letter-spacing: 1.5px;
  color: #666;
  margin-bottom: 12px;
}

.album-card:hover {
  transform: none;
  z-index: 1;
  box-shadow: none;
  border-color: #333;
}

.album-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 1.1;
  border-radius: 2px;
  overflow: visible;
  margin: 0 0 18px;
  border: 1px solid #777;
  background: linear-gradient(135deg, #fafafae6, #bcbcbc, #ededed 70%);
  box-shadow: inset 0 0 0 2px #ffffffa0, 3px 3px 0 #9d9d9d, 5px 6px 9px #0002;
  isolation: isolate;
  transform: perspective(850px) rotateY(-3deg);
  transition: transform 0.25s, box-shadow 0.25s;
  touch-action: manipulation;
}

.album-cover img {
  position: absolute;
  left: 8.2%;
  top: 2%;
  width: 90%;
  height: 96%;
  object-fit: cover;
  border: 1px solid #555;
  z-index: 1;
  border-radius: 0;
  transition: opacity 0.25s;
}

.album-cover:before {
  content: '';
  position: absolute;
  inset: 1px auto 1px 1px;
  width: 6.2%;
  z-index: 3;
  background: repeating-linear-gradient(90deg, #222 0 1px, #565656 1px 2px, #2b2b2b 2px 3px);
  border-right: 1px solid #bbb;
  box-shadow: 1px 0 1px #0008;
}

.album-cover:after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 4;
  background: linear-gradient(118deg, transparent 0 33%, #ffffff1c 33.5% 46%, transparent 46.5% 68%, #ffffff16 69%, transparent 71%);
  box-shadow: inset 0 0 0 1px #fffc, inset -3px 0 0 #ffffff70, inset 0 -3px 0 #ffffff60;
  pointer-events: none;
  border-radius: 2px;
}

.case-latch {
  position: absolute;
  right: -1px;
  top: 42%;
  width: 4px;
  height: 16%;
  border: 1px solid #888;
  background: #ddd9;
  z-index: 5;
  pointer-events: none;
}

.album-cover:hover,
.album-cover:focus-visible {
  transform: perspective(850px) rotateY(0);
  box-shadow: inset 0 0 0 2px #ffffffa0, 3px 3px 0 #9d9d9d, 7px 9px 12px #0002;
  outline: 2px solid #333;
  outline-offset: 4px;
}

.album-card h3 {
  font: 600 17px / 1.25 Arial, sans-serif;
  letter-spacing: -0.4px;
  margin-bottom: 5px;
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.album-card p {
  font: 12px / 1.5 Arial, sans-serif;
  color: #555;
  margin: 0 0 3px;
}

.album-card .rating {
  font: 10px var(--mono);
  font-weight: normal;
  letter-spacing: 0.5px;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  padding: 7px 0;
  margin: 10px 0;
  color: #333;
}

.album-card .faves {
  font: 11px / 1.6 Arial, sans-serif;
  max-height: 6.4em;
  overflow: auto;
  margin: 0;
  padding-right: 7px;
  color: #555;
  scrollbar-width: thin;
}

.album-card .faves b {
  font-weight: 700;
  color: #333;
}

.album-card .album-cover.show-alt img.main-img {
  opacity: 0;
}

.album-card .album-cover.show-alt img.hover-img {
  opacity: 1;
}

.album-card .album-cover:not(.show-alt) img.main-img {
  opacity: 1;
}

.album-card .album-cover:not(.show-alt) img.hover-img {
  opacity: 0;
}

@media (hover: hover) {
  .album-card .album-cover:hover img.main-img {
    opacity: 0;
  }

  .album-card .album-cover:hover img.hover-img {
    opacity: 1;
  }
}

.music-sections-container {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 24px;
}

.music-sections-container section {
  min-width: 0;
}

.wishlist-grid {
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
  padding: 0;
}

.wishlist-item {
  border-radius: 0;
  background: #ddd;
  outline-offset: 3px;
}

.wishlist-item img {
  display: block;
}

.wishlist-overlay {
  background: #333e;
}

.wishlist-item:focus .wishlist-overlay,
.wishlist-item:focus-within .wishlist-overlay {
  opacity: 1;
}

.playlist-container {
  max-height: 520px;
  scrollbar-width: thin;
}

.currently-listening h2 {
  margin-bottom: 18px;
}

.archive-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid #808080;
  padding: 16px 0;
  font: 9px var(--mono);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.archive-footer a {
  color: inherit;
}

.archive-tip {
  font: 10px var(--mono);
  color: #666;
  margin-bottom: 18px;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid #333;
  outline-offset: 3px;
}

@media (max-width: 900px) {
  header {
    gap: 20px;
    padding: 20px;
  }

  .main-content {
    padding: 20px;
  }

  .music-sections-container {
    grid-template-columns: 1fr;
  }

  .grid-container {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 16px;
  }

  .album-card h3 {
    font-size: 15px;
  }
}

@media (max-width: 650px) {
  header {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 16px;
  }

  .header-content h1 {
    font-size: 54px;
    letter-spacing: -2px;
    margin: 20px 0 12px;
  }

  .header-banner-container {
    min-height: 90px;
    height: 100px;
    padding: 0;
  }

  .header-banner-desktop {
    display: block;
    min-height: 100px;
    height: 100%;
    max-height: none;
  }

  .header-banner-mobile {
    display: none;
  }

  .main-content {
    padding: 12px;
  }

  section {
    padding: 16px;
    margin-bottom: 16px;
  }

  .grid-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 16px;
  }

  .album-card {
    margin-bottom: 0;
  }

  .archive-tools {
    align-items: flex-start;
  }

  .archive-search {
    width: 100%;
    justify-content: space-between;
  }

  .archive-search input {
    flex: 1;
    min-width: 0;
    width: auto;
    font-size: 16px;
  }

  .album-card h3 {
    font-size: 15px;
  }

  .album-card .faves {
    max-height: 8em;
  }

  .album-card:before {
    font-size: 8px;
    letter-spacing: 0.8px;
  }

  .album-cover {
    margin-bottom: 14px;
  }

  .nav-button {
    padding: 8px 12px;
  }

  .archive-count {
    font-size: 9px;
  }
}

@media (max-width: 350px) {
  .grid-container {
    grid-template-columns: 1fr;
  }

  .album-cover {
    max-width: 260px;
    align-self: center;
  }
}

@media (hover: none) {
  .wishlist-overlay {
    opacity: 1;
    position: relative;
    background: #333;
    color: #fff;
    padding: 7px;
    min-height: 58px;
  }

  .wishlist-item {
    aspect-ratio: auto;
  }

  .wishlist-item img {
    aspect-ratio: 1;
    object-fit: cover;
  }

  .wishlist-item:hover img {
    transform: none;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }

  .album-cover,
  .album-cover:hover {
    transform: none;
  }
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 28px 24px 24px;
}

.header-content {
  order: 0;
  align-items: center;
  text-align: center;
  padding: 0;
  display: block;
}

.archive-kicker {
  justify-content: center;
}

.header-content h1 {
  font-size: clamp(30px, 5vw, 46px);
  letter-spacing: -1.5px;
  margin: 12px 0 7px;
}

.archive-subtitle {
  margin: 0;
  font-size: 9px;
}

.hero-cd-case {
  order: 1;
  display: block;
  position: relative;
  width: min(540px, 90%);
  height: auto;
  min-height: 0;
  aspect-ratio: 1.1;
  align-self: center;
  padding: 0;
  margin: 0 0 6px;
  overflow: visible;
  isolation: isolate;
  border: 1px solid #777;
  border-radius: 3px;
  background: linear-gradient(135deg, #fafafa, #bcbcbc, #ededed 70%);
  box-shadow: inset 0 0 0 2px #ffffffa0, 4px 4px 0 #9d9d9d, 10px 14px 20px #0002;
}

.hero-cd-case .header-banner-desktop {
  display: block;
  position: absolute;
  left: 8.2%;
  top: 2%;
  width: 90%;
  height: 96%;
  min-height: 0;
  max-height: none;
  object-fit: cover;
  object-position: center;
  filter: none;
  border: 1px solid #555;
  border-radius: 0;
  z-index: 1;
}

.hero-cd-case .header-banner-mobile {
  display: none;
}

.hero-cd-case:before {
  content: '';
  position: absolute;
  inset: 1px auto 1px 1px;
  width: 6.2%;
  z-index: 3;
  background: repeating-linear-gradient(90deg, #222 0 1px, #565656 1px 2px, #2b2b2b 2px 3px);
  border-right: 1px solid #bbb;
  box-shadow: 1px 0 1px #0008;
}

.hero-cd-case:after {
  content: '';
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  padding: 0;
  z-index: 4;
  border-radius: 3px;
  background: linear-gradient(118deg, transparent 0 33%, #ffffff20 33.5% 46%, transparent 46.5% 68%, #ffffff16 69%, transparent 71%);
  box-shadow: inset 0 0 0 1px #fffc, inset -4px 0 0 #ffffff70, inset 0 -4px 0 #ffffff60;
  pointer-events: none;
}

.hero-nav {
  order: 2;
  justify-content: center;
  align-self: center;
  gap: 6px;
}

.hero-nav .nav-button {
  font-size: 9px;
  letter-spacing: 1px;
  padding: 6px 12px;
  line-height: 1.4;
}

.wishlist-grid {
  grid-template-columns: repeat(auto-fill, minmax(125px, 1fr));
  gap: 25px 18px;
  align-items: start;
}

.wishlist-item {
  aspect-ratio: auto;
  position: relative;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: default !important;
  min-width: 0;
}

/* Square printed cardboard record sleeves, with full artwork. */
.vinyl-sleeve {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 1;
  background: #e6e3dd;
  border: 1px solid #666;
  box-shadow: 2px 1px 0 #d0cdc7, 3px 2px 0 #8e8b86, 5px 6px 9px #0002;
}

.wishlist-item .vinyl-sleeve img {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transform: none !important;
}

.vinyl-sleeve:after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(118deg, transparent 0 26%, #ffffff08 30%, #ffffff30 35%, #ffffff0d 40%, transparent 44% 76%, #ffffff12 79%, transparent 82%), linear-gradient(90deg, #00000024, transparent 3%, transparent 98%, #ffffff38);
  box-shadow: inset 0 1px #ffffff90, inset 1px 0 #ffffff48, inset -1px 0 #ffffff60, inset 0 -1px #00000018;
}

.wishlist-item .wishlist-overlay {
  position: static;
  inset: auto;
  width: 100%;
  height: auto;
  min-height: 0;
  display: block;
  opacity: 1;
  background: transparent;
  color: #333;
  padding: 12px 0 0;
  text-align: left;
  transition: none;
  overflow-wrap: anywhere;
}

.wishlist-item .wishlist-overlay strong {
  display: block;
  font: 600 12px / 1.35 Arial, sans-serif;
  margin: 0 0 4px;
}

.wishlist-item .wishlist-overlay span {
  display: block;
  color: #666;
  font: 11px / 1.4 Arial, sans-serif;
}

@media (max-width: 650px) {
  header {
    padding: 22px 18px;
    gap: 18px;
  }

  .hero-cd-case {
    width: min(440px, 94%);
    height: auto;
    min-height: 0;
  }

  .hero-cd-case .header-banner-desktop {
    height: 96%;
    min-height: 0;
    max-height: none;
  }

  .hero-nav .nav-button {
    font-size: 9px;
    padding: 6px 11px;
  }

  .wishlist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 18px;
  }

  .header-content h1 {
    font-size: 36px;
  }

  .archive-kicker {
    font-size: 9px;
    letter-spacing: 1.5px;
  }
}

@font-face {
  font-family: MusicOriginal;
  src: url('/GloridaRegular-pgOKa.ttf') format('truetype');
  font-display: swap;
}

body,
.header-content h1,
 h2,
 .album-card h3,
 .album-card p,
 .album-card .rating,
 .album-card .faves,
 .archive-kicker,
 .archive-subtitle,
 .section-id,
 .nav-button,
 .year-btn,
 .archive-search,
 .archive-search input,
 .archive-count,
 .archive-empty,
 .archive-tip,
 .album-card::before,
 .wishlist-item .wishlist-overlay strong,
 .wishlist-item .wishlist-overlay span,
 .archive-footer {
  font-family: MusicOriginal, sans-serif !important;
}

.header-content h1,
 h2,
 .album-card h3 {
  letter-spacing: normal;
}
