/* The shops page: each shirt hangs in front of the Haeckel plate it came from, on a plaster wall.
   Under the pointer the shirt lights up in the dark, or the plate comes forward. */
@font-face { font-family: "DeltaBlock"; src: url("/assets/front/DeltaBlock-Regular-b7ce987722.woff") format("woff"); font-display: swap }

:root { --ink: #16120c; --orange: #ff8a28; --mono: ui-monospace, Consolas, "Courier New", monospace; --edge: clamp(20px, 3vw, 80px) }
html, body { margin: 0; color: var(--ink); font-family: var(--mono) }
body { background: #c9c5bc url("/assets/shops/wall-plaster-85831028bc.webp") 0 0 / 700px }
*, *::before, *::after { box-sizing: border-box }
a { color: inherit; text-decoration: none }
img { display: block }

h1 { display: inline-block; margin: 0 24px 0 0; font: 400 clamp(38px, 4vw, 104px)/1 "DeltaBlock", sans-serif; vertical-align: middle }
h2 { margin: 0 0 18px; font: 400 clamp(32px, 2.6vw, 66px)/1 "DeltaBlock", sans-serif }
.go { display: inline-block; padding: 13px 24px; border: 2px solid var(--orange); background: var(--orange); color: #0b0b0b; font: 700 clamp(15px, .9vw, 20px)/1.2 var(--mono); vertical-align: middle }
.go:hover, .go:focus-visible { border-color: var(--ink); background: var(--ink); color: #fff }
.go--line { border-color: var(--ink); background: none; color: var(--ink) }

/* the switch between the two shop pages, flush under the site menu */
.doors { display: flex; padding: 0 var(--edge); background: #1c1510; border-bottom: 4px solid var(--orange) }
.doors a { padding: 14px 26px 12px; color: #fff; font: 400 clamp(20px, 1.3vw, 32px)/1 "DeltaBlock", sans-serif; white-space: nowrap }
.doors a:hover, .doors a:focus-visible { color: var(--orange) }
.doors a[aria-current] { background: var(--orange); color: #0b0b0b }

.hero { padding: 22px var(--edge) 34px }
.row { padding: 22px var(--edge) 30px }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(240px, 18vw, 440px), 1fr)); gap: clamp(16px, 1.6vw, 36px) }
.cards--big { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 18px }
.cards--big .card:nth-child(3) { display: none }
@media (min-width: 2200px) { .cards--big { grid-template-columns: repeat(3, minmax(0, 1fr)) } .cards--big .card:nth-child(3) { display: flex } }

.card { --rx: 0deg; --ry: 0deg; --px: 0px; --py: 0px; display: flex; flex-direction: column; min-width: 0; outline: 0 }
.stage { position: relative; display: block; height: clamp(260px, 21vw, 500px); perspective: 1100px; transition: opacity .25s ease }
.card--big .stage { height: min(72vh, 900px) }
.is-changing .stage, .is-changing .cap b { opacity: 0 }
.art { position: absolute; left: 2%; top: 2%; height: 96%; width: auto; max-width: 62%; border: clamp(6px, .6vw, 12px) solid #1c1510; object-fit: cover; object-position: left top; box-shadow: 8px 10px 22px rgba(0, 0, 0, .55); transform: translate(var(--px), var(--py)); transition: filter .35s ease, transform .3s ease, box-shadow .3s ease }
.shirt { position: absolute; right: 0; bottom: 0; height: 88%; width: auto; max-width: 92%; object-fit: contain; object-position: right bottom; filter: drop-shadow(-10px 12px 14px rgba(0, 0, 0, .55)); transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: filter .35s ease, transform .18s ease-out }
.bloom { opacity: 0; filter: contrast(2.4) brightness(1.15) blur(10px) saturate(2.2); mix-blend-mode: screen; pointer-events: none; transition: opacity .35s ease }

.cap { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 14px; padding: 10px 14px; background: var(--ink); color: #fff; transition: background .3s ease, box-shadow .3s ease }
.cap b { flex: 1 1 auto; min-width: 0; font: 400 clamp(21px, 1.5vw, 38px)/1.05 "DeltaBlock", sans-serif; transition: opacity .25s ease }
.card--big .cap b { font-size: clamp(26px, 2vw, 50px) }
.cap i { font: 700 clamp(16px, 1vw, 24px)/1 var(--mono); font-style: normal }
.cap em { padding: 9px 20px; background: var(--orange); color: #0b0b0b; font: 700 clamp(14px, .9vw, 20px)/1.2 var(--mono); font-style: normal }
.by { flex: 1 1 100%; order: 3; font: 400 clamp(12px, .72vw, 16px)/1.3 var(--mono); color: #d8d2c6 }

/* the lights go down and the shirt glows */
.card.is-lit .art { filter: brightness(.22) saturate(.5) }
.card.is-lit .shirt:not(.bloom) { filter: brightness(1.2) saturate(1.4) drop-shadow(0 0 22px var(--glow)) drop-shadow(0 0 64px var(--glow)) }
.card.is-lit .bloom { opacity: .95; animation: breathe 2.6s ease-in-out infinite }
.card.is-lit .cap { background: #000; box-shadow: 0 0 26px var(--glow) }
.card.is-lit .cap i { color: var(--glow) }
@keyframes breathe { 50% { opacity: .55 } }

/* the plate comes forward */
.card.is-plate .art { z-index: 2; max-width: 80%; filter: brightness(1.06); transform: translate(var(--px), var(--py)) scale(1.03) rotate(-1deg); box-shadow: 16px 20px 44px rgba(0, 0, 0, .7) }
.card.is-plate .shirt:not(.bloom) { filter: brightness(.6) drop-shadow(-6px 8px 10px rgba(0, 0, 0, .5)) }

.tip { position: fixed; z-index: 40; left: 0; top: 0; width: min(360px, 86vw); padding: 12px 14px; border: 2px solid var(--tip, var(--orange)); background: rgba(8, 8, 8, .95); color: #fff; font: 400 14px/1.45 var(--mono); box-shadow: 0 0 24px var(--tip, var(--orange)); pointer-events: none }
.tip b { display: block; margin-bottom: 3px; font: 400 24px/1.05 "DeltaBlock", sans-serif }

.row--store { display: grid; grid-template-columns: minmax(260px, 24%) minmax(0, 1fr); align-items: center; gap: clamp(16px, 2vw, 44px) }
.say p { margin: 0 0 16px; font: 700 clamp(15px, .9vw, 20px)/1.4 var(--mono) }
.frames { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.2vw, 26px) }
.frame { display: block; border: clamp(6px, .5vw, 10px) solid #1c1510; box-shadow: 8px 10px 22px rgba(0, 0, 0, .5); transition: transform .25s ease, box-shadow .25s ease }
.frame img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover }
.frame:hover, .frame:focus-visible { transform: scale(1.04) rotate(-.6deg); box-shadow: 14px 18px 36px rgba(0, 0, 0, .6) }

.also { margin: 0; padding: 4px var(--edge) 20px; font: 400 15px/1.45 var(--mono) }
.also a, .lower a:not(.go), footer a { color: #8a3d00; text-decoration: underline }
.lower { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 64px); padding: 30px var(--edge) 40px; background: var(--ink); color: #fff }
.lower h2 { margin-bottom: 10px; font-size: clamp(24px, 1.5vw, 36px) }
.lower p { margin: 0 0 12px; font: 400 clamp(14px, .82vw, 18px)/1.5 var(--mono); color: #d8d2c6 }
.lower b { color: #fff }
.lower .go--line { border-color: #fff; color: #fff }
.lower a:not(.go), footer a { color: var(--orange) }
footer { padding: 16px var(--edge); background: #0d0a06; font: 400 14px/1.5 var(--mono); color: #a8a296 }
footer p { margin: 0 }

@media (max-width: 899px) {
  .doors { padding: 0 }
  .doors a { flex: 1 1 0; padding: 13px 6px 11px; font-size: 19px; text-align: center }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px }
  .cards--big { grid-template-columns: minmax(0, 1fr) }
  .stage { height: 56vw }
  .card--big .stage { height: 96vw }
  .cards:not(.cards--big) .by { display: none }
  .cards:not(.cards--big) .cap { padding: 7px 9px }
  .row--store, .lower { grid-template-columns: minmax(0, 1fr) }
  .frames { grid-template-columns: repeat(2, minmax(0, 1fr)) }
}
@media (hover: none) { .tip { display: none } }
@media (prefers-reduced-motion: reduce) {
  .card.is-lit .bloom { animation: none }
  .shirt, .art, .frame { transition: none }
}
