.head { display: grid; grid-template-columns: auto 1fr; gap: 10px 34px; align-items: end; padding: 26px 28px 18px; }
.head h1 { font-size: 168px; color: var(--yel); text-shadow: 2.5px -2px 0 var(--plate), .04em .045em 0 var(--red), .065em .07em 0 var(--ink); transform: rotate(-2deg); transform-origin: left bottom; }
.head .cap { max-width: 46ch; justify-self: start; align-self: end; margin-bottom: 18px; font-size: 14px; box-shadow: 4px 4px 0 var(--ink); }

.shelfbar { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px 28px; padding: 0 28px 10px; border-bottom: 14px solid var(--ink); position: relative; }
.shelfbar::after { content: ''; position: absolute; left: 0; right: 0; bottom: -14px; height: 4px; background: var(--red); }
.tags { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 8px; margin: 0; padding: 0; border: 0; }
.tags legend { float: left; font-family: var(--disp); font-weight: 900; font-size: 22px; text-transform: uppercase; margin-right: 6px; padding: 0; line-height: 40px; }
.tag { position: relative; font-family: var(--body); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); background: var(--cream); border: var(--kl) solid var(--ink); padding: 9px 13px 9px 26px; cursor: pointer; transform-origin: 50% -12px; transition: transform .16s var(--ease), background-color .16s var(--ease), box-shadow .16s var(--ease); box-shadow: 3px 3px 0 var(--ink); }
.tag::before { content: ''; position: absolute; left: 9px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); }
.tag:nth-child(3n) { transform: rotate(-1.5deg); }
.tag:nth-child(3n+1) { transform: rotate(1deg); }
.tag:hover { background: var(--yel); transform: rotate(0) translateY(-2px); }
.tag:active { transform: translateY(1px); box-shadow: 1px 1px 0 var(--ink); }
.tag[aria-pressed="true"] { background: var(--red); transform: rotate(0); }
.tag[aria-pressed="true"]::before { background: var(--ink); }
.tag b { display: inline-block; min-width: 20px; margin-left: 8px; padding: 2px 4px 1px; background: var(--ink); color: var(--paper); font-family: var(--disp); font-weight: 900; font-size: 14px; line-height: 1; text-align: center; vertical-align: 1px; }

.sorter { display: flex; align-items: center; gap: 10px; background: var(--ink); color: var(--paper); padding: 8px 10px 8px 14px; transform: rotate(1.5deg); box-shadow: 4px 4px 0 rgba(11,10,8,.3); }
.sorter label { font-family: var(--disp); font-weight: 900; font-size: 22px; text-transform: uppercase; }
.sorter select { font: 800 13px/1 var(--body); text-transform: uppercase; letter-spacing: .04em; color: var(--ink); background: var(--yel); border: 0; padding: 9px 30px 9px 10px; appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: right 14px center, right 9px center; background-size: 5px 5px; background-repeat: no-repeat; }
.sorter select:hover { background-color: var(--cream); }
.sorter select:focus-visible { outline: 3px dashed var(--yel); outline-offset: 3px; }
.rackhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 16px 28px 0; }
.count { margin: 0; font-family: var(--disp); font-weight: 900; font-size: 22px; text-transform: uppercase; }
.count i { font-style: normal; color: var(--red-d); }

.rack { display: grid; grid-template-columns: repeat(auto-fill, minmax(214px, 1fr)); padding: 22px 16px 10px; row-gap: 30px; }
.slot { position: relative; padding: 0 12px 30px; display: flex; align-items: flex-end; }
.slot::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 18px; background: var(--ink); box-shadow: inset 0 4px 0 #3a352c; }
.slot.blank::before { content: ''; position: absolute; left: 22px; right: 22px; bottom: 18px; height: 70%; background: repeating-linear-gradient(90deg, transparent 0 18px, rgba(11,10,8,.12) 18px 20px); }

.issue { position: relative; display: block; width: 100%; text-decoration: none; color: var(--ink); background: var(--cream); border: var(--kl) solid var(--ink); transform: rotate(var(--r, 0deg)); transform-origin: 50% 100%; transition: transform .2s var(--ease), box-shadow .2s var(--ease); box-shadow: -1.5px 1px 0 var(--plate), 5px 0 0 rgba(11,10,8,.16); }
.issue:hover { transform: rotate(0deg) translateY(-12px); box-shadow: -1.5px 1px 0 var(--plate), 10px 12px 0 rgba(11,10,8,.3); }
.issue:active { transform: translateY(-4px); transition-duration: .07s; }
.issue::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 9; background: linear-gradient(115deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.22) 42%, rgba(255,255,255,0) 52%); }
.issue { container-type: inline-size; }
.top { display: grid; grid-template-columns: 42% 1fr; background: var(--ink); }
.mh { display: grid; align-content: center; justify-items: end; gap: 6px; padding: 6px 8px 6px 4px; color: var(--red); font-family: var(--disp); font-weight: 900; text-transform: uppercase; text-align: right; text-shadow: 1.5px -1px 0 var(--plate); }
.mh b { font-size: 15.5cqw; line-height: .8; letter-spacing: .005em; }
.mh b span { display: block; }
.mh small { font-family: var(--body); font-size: 12px; font-weight: 800; letter-spacing: .05em; color: var(--yel); text-shadow: none; }
.art { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--c); border-top: var(--kl) solid var(--ink); }
.art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.cb { background: var(--cream); border-right: var(--kl) solid var(--ink); text-align: center; font-family: var(--disp); font-weight: 900; text-transform: uppercase; line-height: .95; }
.cb .bot { width: 100%; height: auto; padding: 6px 10px 3px; background: var(--paper); border-bottom: var(--kl) solid var(--ink); }
.cb span { display: block; padding: 3px 4px 4px; font-size: 19px; }
.cb span + span { border-top: var(--kl) solid var(--ink); background: var(--red); font-size: 16px; }
.cb small { display: block; font-family: var(--body); font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.ttl { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; background: var(--ink); color: var(--cream); padding: 6px 9px 7px; }
.ttl b { font-family: var(--disp); font-weight: 900; font-size: 22px; text-transform: uppercase; line-height: 1; }
.ttl span { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--yel); white-space: nowrap; }
.issue .bot .eye { animation-delay: var(--d, 0s); }
.issue .bot .g7, .issue .bot .gd { animation-delay: var(--d, 0s); }
.empty { grid-column: 1 / -1; display: grid; justify-items: start; gap: 14px; padding: 30px 12px; }
.empty b { font-family: var(--disp); font-weight: 900; font-size: 48px; text-transform: uppercase; }

@media (max-width: 760px) {
  .head { grid-template-columns: 1fr; padding: 18px 16px 12px; }
  .head h1 { font-size: 92px; }
  .head .cap { margin-bottom: 0; font-size: 12px; }
  .shelfbar { padding: 0 16px 10px; }
  .tag { padding: 7px 9px 7px 22px; font-size: 12px; }
  .tag::before { left: 7px; }
  .tags legend { float: none; width: 100%; line-height: 1; margin-bottom: 2px; }
  .sorter { width: 100%; justify-content: space-between; transform: none; }
  .rackhead { padding: 14px 16px 0; }
  .rack { grid-template-columns: 1fr 1fr; padding: 18px 4px 6px; row-gap: 22px; }
  .slot { padding: 0 8px 24px; }
  .slot::after { height: 14px; }
  .top { grid-template-columns: 46% 1fr; }
  .cb .bot { padding: 4px 6px 2px; }
  .cb span { font-size: 15px; padding: 2px 2px 3px; }
  .cb span + span { font-size: 13px; }
  .ttl { flex-direction: column; gap: 2px; padding: 5px 7px 6px; }
  .ttl b { font-size: 18px; }
}
@media (hover: none) { .issue:hover { transform: rotate(var(--r, 0deg)); } }

.mh small + small { color: var(--cream); }
.mh .demo-tab { background: var(--yel); color: var(--ink); border: 2px solid var(--ink); padding: 3px 6px 4px; font: 800 12px/1 var(--body); text-transform: uppercase; letter-spacing: .05em; transform: rotate(-3deg); text-shadow: none; }
.empty[hidden] { display: none; }
.ttl span { font-size: 12px; }
.find { display: flex; align-self: flex-end; }
.find input { font: 800 14px/1 var(--body); text-transform: uppercase; letter-spacing: .04em; color: var(--ink); background: var(--cream); border: var(--kl) solid var(--ink); padding: 11px 12px; width: 220px; box-shadow: 3px 3px 0 var(--ink); }
.find input::placeholder { color: rgba(11,10,8,.55); }
.find input:focus-visible { outline: 3px dashed var(--ink); outline-offset: 3px; background: var(--yel); }
.slot[hidden] { display: none; }
@media (max-width: 760px) { .find, .find input { width: 100%; } }

.rackhead .tools { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.find { align-self: center; }
@media (max-width: 760px) {
  .head { gap: 6px; }
  .head h1 { font-size: 72px; }
  .head .cap { display: none; }
  .tags { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding: 4px 2px 8px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; width: calc(100% + 32px); }
  .tags::-webkit-scrollbar { display: none; }
  .tags legend { position: static; float: none; margin-bottom: 2px; }
  .tag { flex: none; min-height: 44px; }
  .rackhead { flex-direction: column; align-items: stretch; }
  .rackhead .tools { flex-direction: column; align-items: stretch; gap: 10px; }
  .find input { min-height: 44px; }
}
