/* ASSORTMENT — gallery-white ground, one working cobalt.
   The repeated unit is a small filled cobalt square: it is the brand mark,
   it sits inside every SKU chip, and five of them make a rating. */

[hidden] { display: none !important; }

:root {
  --paper: #FFFFFF;
  --ink: #171A21;
  --dim: #5A6170;
  --cobalt: #1B3FD6;
  --cobalt-press: #142FA8;
  --cobalt-wash: #EDF1FC;
  --haze: #F4F6FA;
  --rule: #E4E7EE;
  --err: #B3261E;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "Spline Sans Mono", "SFMono-Regular", Menlo, monospace;
  --maxw: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; border-radius: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 60;
  background: var(--cobalt); color: #fff; padding: 8px 14px;
  border-radius: 6px; text-decoration: none; font-weight: 600;
  transition: top .15s ease;
}
.skip:focus { top: 12px; }

/* ───────────────── the cobalt unit ───────────────── */
.unit {
  display: inline-block; width: 7px; height: 7px;
  background: var(--cobalt); flex: none;
}
.unit-brand { width: 13px; height: 13px; }

/* ───────────────── masthead ───────────────── */
.mast {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px 28px 20px;
  display: flex; align-items: center; gap: 22px;
  border-bottom: 1px solid var(--rule);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.brand-word {
  font-family: var(--display);
  font-weight: 800; font-size: 20px;
  letter-spacing: .16em; text-transform: uppercase;
}
.mast-line {
  font-family: var(--mono); font-size: 11.5px; color: var(--dim);
  letter-spacing: .02em;
  border-left: 1px solid var(--rule); padding-left: 22px;
}
.who { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.who-name { font-weight: 600; font-size: 14px; max-width: 34vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ───────────────── buttons ───────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 600; font-size: 14.5px;
  border-radius: 6px; padding: 10px 18px;
  text-decoration: none; transition: background .14s ease, color .14s ease, border-color .14s ease;
}
.btn-solid { background: var(--cobalt); color: #fff; }
.btn-solid:hover { background: var(--cobalt-press); }
.btn-ghost { border: 1px solid var(--rule); background: var(--paper); }
.btn-ghost:hover { border-color: var(--cobalt); color: var(--cobalt); }
.btn-bare { color: var(--dim); text-decoration: underline; text-underline-offset: 3px; padding: 10px 6px; }
.btn-bare:hover { color: var(--cobalt); }
.btn-sm { padding: 7px 13px; font-size: 13.5px; }
.btn-wide { width: 100%; }
.btn[disabled] { opacity: .55; cursor: default; }
.linklike { color: var(--cobalt); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ───────────────── layout shell ───────────────── */
.view { max-width: var(--maxw); margin: 0 auto; padding: 30px 28px 72px; }
.backlink {
  display: inline-block; margin-bottom: 22px;
  font-family: var(--mono); font-size: 12px; color: var(--dim);
  text-decoration: none;
}
.backlink::before { content: "← "; }
.backlink:hover { color: var(--cobalt); }

/* ───────────────── shop cap ───────────────── */
.shopcap { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-bottom: 20px; }
.shopcap-h {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -0.015em;
}
.shopcap-sub { font-family: var(--mono); font-size: 12px; color: var(--dim); }

/* ───────────────── shelves rail ───────────────── */
.shelves { display: flex; flex-wrap: wrap; gap: 8px; }
.shelf {
  display: inline-block; padding: 7px 13px;
  border: 1px solid var(--rule); border-radius: 4px;
  font-family: var(--display); font-weight: 600; font-size: 13.5px;
  text-decoration: none; transition: border-color .14s ease, color .14s ease;
}
.shelf:hover { border-color: var(--cobalt); color: var(--cobalt); }
.shelf[aria-current="true"] { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.shelf-note { margin-top: 12px; color: var(--dim); font-size: 14.5px; max-width: 62ch; }

/* ───────────────── toolbar ───────────────── */
.toolbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 22px 0 30px; padding-top: 18px;
  border-top: 1px solid var(--rule);
}
.toolbar input, .toolbar select {
  font-family: var(--body); font-size: 14px; color: var(--ink);
  background: var(--haze); border: 1px solid var(--rule); border-radius: 6px;
  padding: 9px 12px;
}
.toolbar input:focus, .toolbar select:focus { outline: 2px solid var(--cobalt); outline-offset: 0; }
.tb-find { flex: 1 1 240px; }
.tb-find input { width: 100%; }
.tb-band { display: inline-flex; align-items: center; gap: 6px; border: 0; }
.tb-band-mark { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.tb-band input { width: 74px; font-family: var(--mono); font-size: 13px; }
.tb-dash { color: var(--dim); }
.tb-sort select { min-width: 170px; }

/* ───────────────── merch grid ───────────────── */
.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 34px 24px;
}
.grid--busy { opacity: .45; pointer-events: none; transition: opacity .12s ease; }

.card { display: block; text-decoration: none; }
.card-ph {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  background: var(--haze); border-radius: 8px;
}
.card-ph img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.01);
  transition: opacity .35s ease, transform .45s ease;
}
.card-ph img.is-in { opacity: 1; }
.card:hover .card-ph img.is-in { transform: scale(1.035); }
.card:hover .card-ph { box-shadow: inset 0 0 0 1px var(--cobalt); }
.card-cap { padding-top: 12px; }
.card-name {
  font-family: var(--body); font-weight: 600; font-size: 15px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card:hover .card-name { color: var(--cobalt); }
.card-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-top: 8px;
}

/* the SKU chip — inventory truth in mono */
.sku {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .05em; color: var(--ink);
  background: var(--haze); border: 1px solid var(--rule); border-radius: 4px;
  padding: 3px 8px; white-space: nowrap;
}

/* price typography that means it */
.price {
  font-family: var(--display); font-weight: 700; font-size: 19px;
  letter-spacing: -0.01em; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.price em { font-style: normal; font-weight: 500; font-size: .74em; color: var(--dim); margin-right: 1px; }
.price small { font-weight: 600; font-size: .68em; }

/* designed no-photo card */
.noshot {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 18px; text-align: center;
}
.noshot-unit {
  width: 26px; height: 26px;
  border: 2px solid var(--cobalt); background: transparent;
}
.noshot-txt { font-family: var(--mono); font-size: 11px; color: var(--dim); letter-spacing: .04em; }

/* wait cards (cleared the moment the shelf answers) */
.wait-card .card-ph { animation: breathe 1.2s ease-in-out infinite alternate; }
.wait-card .wait-line { height: 13px; border-radius: 4px; background: var(--haze); margin-top: 12px; width: 72%; }
.wait-card .wait-line + .wait-line { width: 46%; margin-top: 8px; }
@keyframes breathe { from { opacity: 1; } to { opacity: .55; } }

/* ───────────────── states ───────────────── */
.state { padding: 56px 20px; text-align: center; }
.state strong { display: block; font-family: var(--display); font-weight: 700; font-size: 19px; margin-bottom: 8px; }
.state p { color: var(--dim); max-width: 46ch; margin: 0 auto 16px; }
.state .btn { margin-top: 2px; }
.state--load { color: var(--dim); font-family: var(--mono); font-size: 13px; }

/* ───────────────── pager ───────────────── */
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 36px; }
.pager-note { font-family: var(--mono); font-size: 12px; color: var(--dim); }

/* ───────────────── one object ───────────────── */
.item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.item-ph {
  position: sticky; top: 24px;
  aspect-ratio: 4 / 5; overflow: hidden;
  background: var(--haze); border-radius: 10px;
}
.item-ph img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .4s ease;
}
.item-ph img.is-in { opacity: 1; }

.item-eyebrow {
  font-family: var(--mono); font-size: 11.5px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--cobalt);
}
.item-eyebrow a { color: inherit; text-decoration: none; }
.item-eyebrow a:hover { text-decoration: underline; text-underline-offset: 3px; }
.item-name {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.08;
  letter-spacing: -0.02em; margin: 10px 0 14px;
}
.item-tags { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tag-retired {
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em;
  color: var(--dim); border: 1px dashed var(--rule); border-radius: 4px; padding: 3px 8px;
}
.item-price { font-size: 34px; margin: 18px 0 4px; }
.item-price em { font-size: .6em; }
.item-desc { margin-top: 14px; font-size: 16px; line-height: 1.65; max-width: 56ch; }

/* variants */
.vars-wrap { margin-top: 30px; overflow-x: auto; }
.vars { border-collapse: collapse; width: 100%; }
.vars caption {
  text-align: left; font-family: var(--display); font-weight: 700; font-size: 16px;
  padding-bottom: 10px;
}
.vars th {
  text-align: left; font-family: var(--mono); font-weight: 600; font-size: 10.5px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--dim);
  border-bottom: 1px solid var(--ink); padding: 0 10px 7px 0;
}
.vars td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--rule); font-size: 14px; vertical-align: middle; }
.vars td.v-sku { font-family: var(--mono); font-size: 12px; white-space: nowrap; }
.vars td.v-stock { font-family: var(--mono); font-size: 12.5px; }
.v-out { color: var(--dim); }
.vars td.v-price, .vars th.v-price { text-align: right; padding-right: 0; }
.vars .price { font-size: 16px; }

/* ───────────────── reviews ───────────────── */
.revs { margin-top: 40px; border-top: 1px solid var(--rule); padding-top: 26px; }
.revs-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.revs-h { font-family: var(--display); font-weight: 700; font-size: 20px; }
.revs-sum { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--dim); }

/* five squares make a rating */
.rate { display: inline-flex; gap: 3px; }
.rate i {
  width: 10px; height: 10px; display: inline-block;
  background: transparent; border: 1px solid var(--rule);
}
.rate i.on { background: var(--cobalt); border-color: var(--cobalt); }

.review { padding: 18px 0; border-bottom: 1px solid var(--rule); }
.review:last-of-type { border-bottom: 0; }
.rev-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rev-title { font-weight: 600; font-size: 15px; }
.rev-body { margin-top: 6px; color: var(--ink); font-size: 14.5px; max-width: 58ch; }
.rev-tags { display: inline-flex; gap: 6px; }
.tag-ver, .tag-you {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .05em;
  border-radius: 4px; padding: 2px 7px;
}
.tag-ver { color: var(--dim); border: 1px solid var(--rule); }
.tag-you { color: var(--cobalt); background: var(--cobalt-wash); }

.revs-empty { padding: 20px 0 6px; color: var(--dim); }

/* composer */
.composer {
  margin-top: 22px; background: var(--haze); border-radius: 10px; padding: 20px;
}
.composer-h { font-family: var(--display); font-weight: 700; font-size: 15.5px; margin-bottom: 12px; }
.rate-pick { display: flex; align-items: center; gap: 6px; }
.rate-pick button {
  width: 24px; height: 24px; border: 1px solid var(--rule); background: var(--paper);
  border-radius: 3px; transition: border-color .12s ease, background .12s ease;
}
.rate-pick button:hover { border-color: var(--cobalt); }
.rate-pick button[aria-checked="true"] { background: var(--cobalt); border-color: var(--cobalt); }
.rate-pick-note { font-family: var(--mono); font-size: 11.5px; color: var(--dim); margin-left: 6px; }
.composer .field { margin-top: 14px; }
.rev-signin { margin-top: 22px; padding: 16px 18px; background: var(--haze); border-radius: 10px; color: var(--dim); font-size: 14.5px; }
.rev-signin a { color: var(--cobalt); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ───────────────── forms ───────────────── */
.field { margin-bottom: 14px; }
.field label {
  display: block; font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px;
}
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--body); font-size: 15px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--rule); border-radius: 6px;
  padding: 10px 12px;
}
.composer .field input, .composer .field textarea { background: var(--paper); }
.field input:focus, .field textarea:focus { outline: 2px solid var(--cobalt); outline-offset: 0; }
.field textarea { resize: vertical; min-height: 88px; }
.form-err { color: var(--err); font-size: 13.5px; margin: 4px 0 12px; }

/* ───────────────── the counter (sign in) ───────────────── */
.gate { display: flex; justify-content: center; padding: 26px 0 10px; }
.counter {
  width: 100%; max-width: 420px;
  border: 1px solid var(--rule); border-radius: 10px;
  padding: 30px 28px; position: relative; overflow: hidden;
}
.counter::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--cobalt);
}
.ct-eyebrow {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--cobalt);
}
.ct-h { font-family: var(--display); font-weight: 700; font-size: 26px; margin: 8px 0 6px; }
.ct-lede { color: var(--dim); font-size: 14.5px; margin-bottom: 20px; }
.demo-slot { margin-top: 18px; background: var(--haze); border-radius: 8px; padding: 14px 16px; }
.ds-tag {
  font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: 8px;
}
.ds-rows { margin-bottom: 12px; }
.ds-rows div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.ds-rows dt { color: var(--dim); font-size: 13px; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.ct-alt { margin-top: 18px; font-size: 14px; color: var(--dim); }
#signupForm { margin-top: 16px; border-top: 1px solid var(--rule); padding-top: 18px; }

/* ───────────────── toast ───────────────── */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 50; max-width: min(92vw, 460px);
  background: var(--ink); color: #fff;
  font-size: 14px; padding: 11px 18px; border-radius: 8px;
  box-shadow: 0 8px 28px rgba(23, 26, 33, .18);
}
.toast--err { box-shadow: inset 3px 0 0 var(--err), 0 8px 28px rgba(23, 26, 33, .18); }

/* ───────────────── footer ───────────────── */
.foot {
  max-width: var(--maxw); margin: 0 auto; padding: 26px 28px 40px;
  border-top: 1px solid var(--rule);
}
.foot p { font-size: 13.5px; }
.foot-dim { font-family: var(--mono); font-size: 11.5px; color: var(--dim); margin-top: 4px; }

/* ───────────────── responsive ───────────────── */
@media (max-width: 960px) {
  .item { grid-template-columns: 1fr; gap: 26px; }
  .item-ph { position: static; max-width: 560px; }
}
@media (max-width: 760px) {
  .mast { padding: 16px 18px 14px; gap: 12px; flex-wrap: wrap; }
  .mast-line { display: none; }
  .brand-word { font-size: 17px; letter-spacing: .12em; }
  .who { gap: 8px; }
  .who-name { max-width: 26vw; font-size: 13px; }
  .who .btn-sm { padding: 6px 10px; font-size: 12.5px; }
  .view { padding: 22px 18px 56px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 24px 14px; }
  .card-name { font-size: 13.5px; }
  .price { font-size: 16.5px; }
  .sku { font-size: 9.5px; padding: 2px 6px; }
  .toolbar { gap: 8px; }
  .tb-sort select { min-width: 0; }
  .foot { padding: 20px 18px 34px; }
}

/* ───────────────── motion discipline ───────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .card-ph img, .card:hover .card-ph img.is-in { transform: none; }
}
