@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@800&family=IBM+Plex+Mono:wght@400;600&display=swap");

:root {
  color-scheme: light;
  --ink: #201b18;
  --paper: #f3ead6;
  --cream: #faf2e2;
  --red: #ae2a26;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font: 400 1rem/1.5 "IBM Plex Mono", "Courier New", monospace;
}

*, *::before { box-sizing: border-box; }
body { margin: 0; }
.masthead {
  border-bottom: 1px solid #ede0c53c;
  background: var(--ink);
  color: var(--cream);
}
.masthead-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  max-width: 96rem;
  min-height: 4.6rem;
  margin-inline: auto;
  padding: .65rem clamp(.9rem, 3.5vw, 2.5rem);
}
.wordmark { display: block; justify-self: start; }
.wordmark img {
  display: block;
  inline-size: clamp(10rem, 29vw, 16rem);
  block-size: auto;
}
.login {
  display: inline-grid;
  justify-self: end;
  place-items: center;
  min-width: 5.5rem;
  min-height: 2.75rem;
  padding: .5rem .8rem;
  color: var(--cream);
  background: var(--red);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transform: rotate(-2deg);
}
.login:hover { background: #852123; }
.masthead a:focus-visible { outline: 2px solid var(--cream); outline-offset: 4px; }
.page-nav { display: flex; gap: .45rem; align-items: center; }
.page-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .4rem .65rem;
  border-bottom: 2px solid transparent;
  color: var(--cream);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.page-nav a[aria-current="page"] { border-color: #ffc2a3; color: #ffc2a3; }
.wall-banner {
  position: relative;
  display: grid;
  align-items: center;
  isolation: isolate;
  min-block-size: clamp(23rem, 39vw, 37rem);
  overflow: clip;
  border-block-end: 5px solid var(--red);
  background: #30201b;
  color: var(--cream);
}
.poster-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: 62% 53%;
}
.wall-banner::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(90deg, #181514ed, #1815148c 35%, transparent 68%);
}
.wall-banner-inner {
  inline-size: 100%;
  max-width: 96rem;
  margin: 0 auto;
  padding: clamp(1.6rem, 5vw, 4.1rem) clamp(1.15rem, 5.4vw, 4.75rem);
}
.wall-banner h1 {
  inline-size: fit-content;
  margin: 0;
  font: 800 clamp(4rem, 9vw, 8.5rem)/.79 var(--display);
  letter-spacing: -.045em;
  text-transform: uppercase;
  transform: rotate(-4deg);
  text-shadow: .04em .04em #1a1715;
}
.wall-banner h1 span { display: block; }
.wall-banner h1 span:last-child { color: #ffc2a3; }
.wall-content {
  max-width: 96rem;
  margin: auto;
  padding: clamp(1rem, 3.5vw, 2.5rem) clamp(.9rem, 3.5vw, 2.5rem);
}
#wall-status {
  display: flex;
  align-items: center;
  gap: clamp(.8rem, 2vw, 1.3rem);
  margin: 0;
  padding: clamp(.9rem, 2.5vw, 1.35rem);
  border: 1px solid #aa9c82;
  background: var(--cream);
}
#wall-status[hidden] { display: none; }
#wall-status::before {
  content: "";
  display: block;
  flex: none;
  width: clamp(3rem, 9vw, 4.8rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--paper) 0 3%, var(--red) 4% 19%, transparent 20%),
    repeating-radial-gradient(circle, #242019 0 1px, #393126 1.5px 2px);
}
.wall-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .3rem .75rem;
  margin-block-end: .85rem;
  border-block-end: 1px solid #aa9c82;
  padding-block-end: .45rem;
  font-size: .82rem;
  font-weight: 600;
}
.wall-controls[hidden] { display: none; }
.wall-name-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .48rem;
  min-height: 2.75rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.wall-name-toggle input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.wall-switch {
  display: flex;
  align-items: center;
  width: 2.15rem;
  height: 1.2rem;
  padding: .17rem;
  border: 1px solid var(--ink);
  border-radius: 1rem;
  background: var(--cream);
}
.wall-switch::before {
  content: "";
  width: .72rem;
  height: .72rem;
  border-radius: 50%;
  background: var(--ink);
}
.wall-name-toggle input:checked + .wall-switch { justify-content: flex-end; background: var(--red); }
.wall-name-toggle input:checked + .wall-switch::before { background: var(--cream); }
.wall-name-toggle input:focus-visible + .wall-switch, #wall-sort:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
#wall-sort {
  min-height: 2.75rem;
  padding: .2rem .4rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  background: var(--cream);
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
}
#album-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(8rem, 20vw, 14rem), 1fr));
  gap: clamp(.55rem, 1.6vw, 1.3rem);
  padding: 0;
  margin: 0;
  list-style: none;
}
.wall-artist-name {
  display: none;
  margin-block-start: .55rem;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.show-artist-names .wall-artist-name { display: block; }
.album-tile {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--ink);
  background: #dfcfad;
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 140ms ease, box-shadow 140ms ease;
}
.album-tile img, .album-dialog-cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}
.album-tile:focus-visible, .album-dialog-close:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
}
@media (hover: hover) {
  .album-tile:hover {
    transform: translateY(-3px);
    box-shadow: 3px 6px 0 var(--ink);
  }
}

:root:has(.album-dialog[open]) { overflow: hidden; }
.album-dialog {
  width: min(44rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  max-height: calc(100dvh - 2rem);
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 2px solid var(--ink);
  color: var(--ink);
  background: var(--cream);
  box-shadow: .4rem .4rem 0 var(--red);
}
.album-dialog[open] { animation: album-arrive 260ms cubic-bezier(.2,.75,.25,1) both; }
.album-dialog::backdrop {
  background: #181412cc;
  animation: backdrop-arrive 200ms ease-out both;
}
.album-dialog-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.15rem, 3.5vw, 2rem);
  padding: 3.7rem clamp(1rem, 3vw, 1.8rem) clamp(1.15rem, 3vw, 1.8rem);
}
.album-dialog-layout form {
  position: absolute;
  top: .55rem;
  right: .55rem;
  margin: 0;
}
.album-dialog-close {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  padding: 0;
  border: 0;
  color: var(--cream);
  background: var(--ink);
  font-family: inherit;
  font-weight: 600;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
}
.album-dialog-close:hover { background: #51423a; }
.album-dialog-cover {
  border: 1px solid var(--ink);
  background: #dfcfad;
  box-shadow: 3px 3px 0 var(--ink);
}
.album-dialog-details { overflow-wrap: anywhere; }
.sleeve-media { min-width: 0; }
.sleeve-controls { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; margin-top: .75rem; }
.sleeve-controls[hidden] { display: none; }
.sleeve-controls button {
  min-height: 2.75rem;
  padding: .35rem .6rem;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: var(--cream);
  font: inherit;
  cursor: pointer;
}
.sleeve-controls button[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.sleeve-controls a, .sleeve-credit, .wanted-published { color: #8a2925; font-size: .8rem; }
.sleeve-credit { display: inline-block; margin-top: .45rem; }
.sleeve-credit[hidden] { display: none; }
.sleeve-tracks h3 { margin: .9rem 0 .25rem; font: 800 1.6rem/1 var(--display); }
.sleeve-tracks ol { margin: 0; padding-inline-start: 1.3rem; font-size: .82rem; }
.album-dialog-details p { margin: 0; }
#album-artist { font-weight: 600; }
#album-title {
  margin: .3rem 0 .7rem;
  font: 800 clamp(2.2rem, 5.5vw, 4rem)/.95 var(--display);
  text-transform: uppercase;
}
#album-year { color: #8a2925; }
@keyframes album-arrive {
  from { opacity: 0; transform: translateY(1.15rem) scale(.88) rotate(-2deg); }
  74% { opacity: 1; transform: translateY(-.1rem) scale(1.02) rotate(.35deg); }
  to { opacity: 1; transform: none; }
}
@keyframes backdrop-arrive {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (max-width: 540px) {
  .album-dialog-layout { grid-template-columns: minmax(0, 1fr); }
  .album-dialog-cover {
    justify-self: center;
    margin-inline: auto;
    max-width: min(100%, 48dvh);
  }
}
@media (prefers-reduced-motion: reduce) {
  .album-tile { transition: none; }
  .album-tile:hover { transform: none; }
  .album-dialog[open], .album-dialog::backdrop { animation: none; }
}

@media (max-width: 420px) {
  #album-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .masthead-inner { grid-template-columns: 1fr auto; gap: .12rem .6rem; padding-bottom: .32rem; }
  .page-nav { grid-row: 2; grid-column: 1 / -1; gap: .28rem; }
  .page-nav a { padding-inline: .24rem; font-size: clamp(.73rem, 3.25vw, .88rem); }
  .wall-banner {
    align-items: end;
    min-block-size: clamp(22rem, 95vw, 29rem);
  }
  .poster-art { object-position: 65% 50%; }
  .wall-banner::after {
    background: linear-gradient(0deg, #181514f2, #18151478 29%, transparent 66%);
  }
  .wall-banner-inner { padding-bottom: 1.5rem; }
  .wall-banner h1 { font-size: clamp(3.45rem, 13vw, 5.25rem); }
}


.wanted-page { width: min(100% - 2rem, 69rem); margin: clamp(1.1rem, 4vw, 3.45rem) auto 3.5rem; }
.wanted-hero {
  position: relative;
  display: grid;
  grid-template-columns: 58% 42%;
  align-items: center;
  isolation: isolate;
  min-height: clamp(16rem, 30vw, 23rem);
  overflow: hidden;
  border: 2px solid var(--ink);
  border-bottom: 5px solid var(--red);
  background: repeating-linear-gradient(-16deg, #4b352607 0 1px, transparent 1px 6px), #eadbbf;
  box-shadow: 4px 4px 0 var(--ink);
}
.wanted-heading { padding: clamp(.9rem, 4.4vw, 3.5rem); }
.wanted-heading h1 {
  margin: 0;
  font: 800 clamp(3.6rem, 10vw, 8.7rem)/.79 var(--display);
  letter-spacing: -.045em;
  text-transform: uppercase;
  transform: rotate(-3deg);
}
.wanted-heading h1 span { display: block; }
.wanted-heading h1 span:last-child { color: var(--red); }
.wanted-heading p {
  max-width: 24rem;
  margin: 1.25rem 0 0;
  font-size: clamp(.8rem, 2vw, 1rem);
  font-weight: 600;
  line-height: 1.4;
}
.wanted-art {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: -1;
  width: 46%;
  height: 100%;
  object-fit: cover;
  object-position: 86% 53%;
  clip-path: polygon(13% 0, 100% 0, 100% 100%, 0 100%);
}
.wanted-status, .wanted-list { margin: clamp(1.35rem, 3vw, 2rem) 0 0; }
.wanted-status {
  border: 1px solid var(--ink);
  padding: .8rem 1rem;
  background: var(--cream);
}
.wanted-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem 1rem;
  list-style: none;
  padding: 0;
}
.wanted-list li {
  display: grid;
  align-content: center;
  min-height: 4.1rem;
  padding: .65rem 1rem;
  border: 1px solid var(--ink);
  border-inline-start: 4px solid var(--red);
  background: var(--cream);
  box-shadow: 2px 2px 0 var(--ink);
  font: 800 clamp(1.45rem, 2.8vw, 2.35rem)/1.08 var(--display);
  overflow-wrap: anywhere;
}
@media (max-width: 620px) {
  .wanted-hero { grid-template-columns: 61% 39%; }
  .wanted-heading h1 { font-size: clamp(2.25rem, 12.5vw, 4.25rem); }
  .wanted-art { width: 40%; object-position: 84% 52%; }
  .wanted-list { grid-template-columns: minmax(0, 1fr); }
  .wanted-list li { min-height: 3.35rem; }
}
