/* snkr-wall.golddubs.com — clean, near-wordless map of the Sneaker Wall.
   White ground, cut-out shoe photos, small mono spot codes (B-04) under each:
   the grid is the real wall. Gold is kept for the brand mark only. */

:root {
  --ground: #ffffff;
  --ink: #111111;
  --soft: #8a8a8a;      /* inactive tabs, sold labels — 3.5:1, large mono caps */
  --faint: #c8c8c8;
  --line: #ececec;
  --gold: #b8922a;
  --mono: ui-monospace, 'SF Mono', 'IBM Plex Mono', Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; }
body {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--ground); color: var(--ink); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* --- top: logo, tabs, store pin ---------------------------------------------------- */

.top {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; flex: none;
  padding: calc(18px + env(safe-area-inset-top)) max(22px, env(safe-area-inset-right)) 14px max(22px, env(safe-area-inset-left));
}
.logo img { display: block; }
.tabs { display: flex; gap: clamp(18px, 4vw, 34px); }
.tabs button { font-family: var(--mono); font-size: clamp(15px, 2.2vw, 22px); letter-spacing: 1.5px; color: var(--faint); transition: color 0.2s; }
.tabs button:hover { color: var(--soft); }
.tabs button[aria-pressed="true"] { color: var(--ink); }
.tabs button:disabled { opacity: 0.35; cursor: default; }
.pin { justify-self: end; width: 30px; height: 30px; display: grid; place-items: center; }
.pin svg, .zoom svg, .close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* --- the wall ------------------------------------------------------------------------ */

.viewport { position: relative; flex: 1; min-height: 0; overflow: hidden; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.viewport.dragging { cursor: grabbing; }
.stage { position: absolute; top: 0; left: 0; transform-origin: 0 0; will-change: transform; }
.wall { display: grid; grid-template-columns: repeat(var(--cols), 190px); grid-auto-rows: 230px; column-gap: 34px; row-gap: 26px; padding: 20px 40px 40px; }

.spot { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 14px; width: 190px; height: 230px; }
.spot img { width: 180px; height: 170px; object-fit: contain; display: block; pointer-events: none; mix-blend-mode: multiply; transition: transform 0.25s cubic-bezier(.16,1,.3,1); }
.spot .code { font-family: var(--mono); font-size: 17px; letter-spacing: 1px; }
.spot:hover img, .spot:focus-visible img { transform: translateY(-4px) scale(1.04); }
.spot:focus-visible { outline: none; }
.spot:focus-visible .code { text-decoration: underline; text-underline-offset: 4px; }
.spot.sold img { opacity: 0.35; filter: grayscale(1); }
.spot.sold .code { color: var(--soft); }
.spot .shape { width: 120px; height: 170px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 30px; }
.spot .shape svg { width: 120px; fill: none; stroke: var(--faint); stroke-width: 1.2; }

.status { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--mono); font-size: 14px; letter-spacing: 1px; color: var(--soft); }

/* --- zoom ---------------------------------------------------------------------------- */

.zoom {
  position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: calc(58px + env(safe-area-inset-bottom)); z-index: 5;
  display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.92);
}
.zoom button { width: 40px; height: 40px; display: grid; place-items: center; font-size: 20px; color: var(--ink); }
.zoom button + button { border-top: 1px solid var(--line); }
.zoom svg { width: 18px; height: 18px; }

/* --- footer -------------------------------------------------------------------------- */

.foot {
  display: flex; justify-content: center; gap: clamp(18px, 5vw, 56px); flex: none;
  padding: 12px max(16px, env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  font-family: var(--mono); font-size: 14px; letter-spacing: 1px; color: var(--soft);
}
.foot a:hover { color: var(--ink); }

/* --- one pair ------------------------------------------------------------------------ */

.detail { position: fixed; inset: 0; z-index: 20; background: var(--ground); opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0.25s; }
.detail.open { opacity: 1; visibility: visible; }
.detail-inner { height: 100%; overflow-y: auto; overscroll-behavior: contain; outline: none;
  padding: calc(18px + env(safe-area-inset-top)) max(22px, env(safe-area-inset-right)) calc(28px + env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-left)); }
.close { position: fixed; top: calc(16px + env(safe-area-inset-top)); right: max(18px, env(safe-area-inset-right)); z-index: 2; width: 40px; height: 40px; display: grid; place-items: center; }

.d-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); gap: clamp(20px, 5vw, 70px); max-width: 1180px; margin: 30px auto 0; align-items: start; }
.d-media { display: flex; flex-direction: column; gap: 14px; }
.d-main { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; }
.d-main img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; pointer-events: none; user-select: none; }
.d-main.spin { cursor: ew-resize; touch-action: pan-y; }
.d-main .turn { position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 13px; letter-spacing: 2px; color: var(--soft); }
.d-thumbs { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.d-thumbs button { width: 64px; height: 56px; display: grid; place-items: center; border-bottom: 2px solid transparent; opacity: 0.55; transition: opacity 0.15s; }
.d-thumbs button[aria-current="true"], .d-thumbs button:hover { opacity: 1; border-color: var(--ink); }
.d-thumbs img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.d-thumbs .t360 { font-family: var(--mono); font-size: 14px; letter-spacing: 1px; }

.d-info { font-family: var(--mono); letter-spacing: 0.5px; }
.d-code { font-size: 14px; color: var(--soft); letter-spacing: 1.5px; }
.d-title { font-family: var(--mono); font-weight: 500; font-size: clamp(20px, 2.4vw, 28px); line-height: 1.2; letter-spacing: 0.5px; margin: 6px 0 4px; text-transform: uppercase; }
.d-colour { color: var(--soft); text-transform: uppercase; font-size: 14px; }
.d-price { font-size: 26px; margin: 18px 0; }
.d-price .sold { color: var(--soft); }
.d-sizes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.d-sizes span { min-width: 52px; padding: 8px 10px; border: 1px solid var(--ink); text-align: center; font-size: 14px; }
.d-facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 22px; font-size: 14px; }
.d-facts dt { color: var(--soft); }
.d-facts dd { margin: 0; text-transform: uppercase; }
.d-notes { margin-top: 18px; font-family: var(--sans); font-size: 14.5px; color: #444; letter-spacing: 0; white-space: pre-wrap; }
.d-store { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; padding-bottom: 2px; border-bottom: 1px solid var(--ink); font-size: 14px; letter-spacing: 1.5px; }
.d-store svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }

@media (max-width: 760px) {
  .d-grid { grid-template-columns: 1fr; margin-top: 40px; }
  .foot { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .detail, .spot img, .tabs button { transition: none; }
}
.d-main > svg { width: 55%; fill: none; stroke: var(--faint); stroke-width: 1.2; }
