@font-face {
  font-family: "Michroma";
  src: url("fonts/michroma.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
}
:root {
  --bg: #E2DBC8;     /* Sio cream */
  --ink: #1E1A17;
  --accent: #D69448; /* sparkle orange: active filter underline only */
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: "Michroma", "Helvetica Neue", Arial, sans-serif;
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  overflow: hidden;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; display: block; }
img { -webkit-user-drag: none; }

.screen { position: fixed; top: 0; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; background: var(--bg); }
.top { height: 96px; flex-shrink: 0; display: flex; align-items: center; padding: 0 24px 0 32px; }

/* ---------- the wall ---------- */
.logo { display: block; height: 40px; width: auto; margin-right: 32px; }
.filters { flex: 1; min-width: 0; display: flex; white-space: nowrap; overflow: hidden; font-size: 17px; }
.filter { position: relative; height: 64px; padding: 0 16px; font-size: inherit; }
.filter.on::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 12px; height: 4px; background: var(--accent); }

.wall {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; background: var(--bg);
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px 20px; padding: 8px 32px 40px;
  align-content: start;
}
.tile img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; mix-blend-mode: multiply; }
.tile:active { transform: scale(.96); }

/* ---------- big view (over the wall) ---------- */
.view { display: none; z-index: 1; }
.view.open { display: flex; }
.name { flex: 1; min-width: 0; font-size: 22px; white-space: nowrap; overflow: hidden; }
.icon { width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; }
.icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.75; }
.close { margin-left: 32px; }
.icon:active { background: var(--ink); color: var(--bg); }

.faces { flex: 1; min-height: 0; overflow: hidden; background: var(--bg); }
.track { display: flex; width: 300%; height: 100%; }
/* each pane has its own cream so multiply still works while the strip moves */
.pane { width: 33.3333%; flex-shrink: 0; display: flex; justify-content: center; gap: 24px; padding: 0 24px 12px; background: var(--bg); }
.face { flex: 1; min-width: 0; text-align: center; }
.face img { display: block; width: 100%; height: calc(100vh - 96px - 12px - 36px); object-fit: contain; mix-blend-mode: multiply; }
.face img { cursor: pointer; }

/* ---------- zoom: one garment alone ---------- */
#zoom { z-index: 2; align-items: center; justify-content: center; overflow: hidden; }
#zoomImg { display: block; max-width: 100%; max-height: 100%; mix-blend-mode: multiply; }
.zoom-close { position: absolute; top: 12px; right: 24px; z-index: 1; }

figcaption { height: 36px; line-height: 36px; font-size: 13px; }
