/* Clip Depot. Stock sheet. */
@font-face {
  font-family: "Archivo Black";
  src: url("/_cdn/fonts/archivo-black-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/_cdn/fonts/ibm-plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/_cdn/fonts/ibm-plex-mono-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

html {
  --hazard: #f4d21f;
  --pitch: #141414;
  --chalk: #fffbe6;
  --rust: #c23d12;
  --steel: #5f5a3c;
  --gutter: clamp(14px, 3.6vw, 44px);
  --display: "Archivo Black", "Arial Black", Impact, sans-serif;
  --label: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  background: var(--hazard);
  color: var(--pitch);
  font: 400 15px/1.55 var(--label);
  -webkit-text-size-adjust: 100%;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--rust); outline-offset: 2px; }
h1, h2, h3, p, ul, ol, dl, dd, figure, table { margin: 0; padding: 0; }
ul, ol { list-style: none; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: var(--gutter); top: 8px; background: var(--pitch); color: var(--hazard); padding: 8px 12px; z-index: 5; }

/* ---------- dock (header) ---------- */
.dock {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 26px;
  padding: 16px var(--gutter) 13px;
  border-bottom: 4px solid var(--pitch);
}
.dock__sign {
  font: 400 23px/1 var(--display);
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: -0.01em;
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.dock__sign svg { width: 26px; height: 26px; flex: none; }
.dock__aisles { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 14px; }
.dock__aisles a { text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.dock__aisles a:hover, .dock__aisles a[aria-current] { border-bottom-color: var(--pitch); }
.dock__count { font-size: 13px; white-space: nowrap; }
.dock__count b { font-weight: 600; }

.stripe {
  height: 12px;
  background: repeating-linear-gradient(-45deg, var(--pitch) 0 14px, transparent 14px 28px);
}

/* ---------- intake (home hero) ---------- */
.intake {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 28px clamp(24px, 5vw, 70px);
  align-items: end;
  padding: clamp(30px, 6vw, 76px) var(--gutter) clamp(28px, 4vw, 52px);
}
.intake h1 {
  font: 400 clamp(40px, 7.4vw, 104px)/0.92 var(--display);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.intake__note { max-width: 46ch; }
.intake__note p + p { margin-top: 12px; }
.manifest {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 0;
  border: 2px solid var(--pitch);
  width: fit-content;
  max-width: 100%;
}
.manifest div { padding: 9px 16px 8px; border-right: 2px solid var(--pitch); }
.manifest div:last-child { border-right: 0; }
.manifest dt { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
.manifest dd { font: 400 24px/1.1 var(--display); }

.go {
  display: inline-block;
  background: var(--pitch);
  color: var(--hazard);
  font-weight: 600;
  text-decoration: none;
  padding: 12px 18px 11px;
  margin-top: 22px;
}
.go:hover { background: var(--rust); color: var(--chalk); }
.go--line { background: none; color: var(--pitch); box-shadow: inset 0 0 0 2px var(--pitch); }
.go--line:hover { background: var(--pitch); color: var(--hazard); }

/* ---------- bays and crates ---------- */
.bay { padding: 0 var(--gutter); margin-top: clamp(26px, 4vw, 48px); }
.bay__plate {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.bay__plate h2 { font: 400 clamp(20px, 2.6vw, 30px)/1 var(--display); text-transform: uppercase; }
.bay__plate .bay__id {
  background: var(--pitch);
  color: var(--hazard);
  font-weight: 600;
  font-size: 13px;
  padding: 3px 8px 2px;
}
.bay__plate a { margin-left: auto; font-size: 13px; }
.bay__rack {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 8px solid var(--pitch);
}

.crate {
  background: var(--pitch);
  color: var(--hazard);
  padding: 9px 9px 11px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.crate[hidden] { display: none; }
.crate__window { position: relative; aspect-ratio: 16 / 9; background: #2a2a2a; overflow: hidden; }
.crate__window img, .crate__window video { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.crate__window video { opacity: 0; transition: opacity 0.18s; }
.crate.is-rolling .crate__window video { opacity: 1; }
.crate__code {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-weight: 600;
  font-size: 12.5px;
  margin-top: 9px;
  font-variant-numeric: tabular-nums;
}
.crate__name {
  color: var(--chalk);
  font-size: 14px;
  line-height: 1.3;
  margin-top: 3px;
  text-decoration: none;
}
.crate__name::after { content: ""; position: absolute; inset: 0; }
.crate__name:hover { text-decoration: underline; }
.crate__meta { color: #b9ae6b; font-size: 11.5px; margin-top: 6px; letter-spacing: 0.02em; }
.crate:hover { outline: 3px solid var(--rust); outline-offset: -3px; }

/* ---------- rules strip ---------- */
.rules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: clamp(40px, 6vw, 80px) var(--gutter) 0;
  border: 3px solid var(--pitch);
  background: var(--chalk);
}
.rules > div { padding: 20px 22px 22px; border-right: 3px solid var(--pitch); }
.rules > div:last-child { border-right: 0; }
.rules h3 { font: 400 17px/1.15 var(--display); text-transform: uppercase; margin-bottom: 8px; }
.rules p { font-size: 14px; }
.rules .no { font-weight: 600; color: var(--rust); font-size: 12px; display: block; margin-bottom: 10px; }

/* ---------- sheet pages (catalogue, text) ---------- */
.sheet { padding: clamp(26px, 5vw, 60px) var(--gutter) 0; }
.sheet__head { display: flex; flex-wrap: wrap; gap: 10px 30px; align-items: end; justify-content: space-between; }
.sheet h1 { font: 400 clamp(34px, 5.6vw, 72px)/0.95 var(--display); text-transform: uppercase; letter-spacing: -0.015em; }
.sheet__lede { max-width: 58ch; margin-top: 16px; }
.crumb { font-size: 12.5px; margin-bottom: 14px; }
.crumb a { text-decoration-thickness: 1px; }

.sorter { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 16px; }
.sorter button {
  font: 600 13px var(--label);
  background: none;
  color: var(--pitch);
  border: 2px solid var(--pitch);
  padding: 7px 12px 6px;
  cursor: pointer;
}
.sorter button:hover { background: var(--chalk); }
.sorter button[aria-pressed="true"] { background: var(--pitch); color: var(--hazard); }
.sorter__tally { margin-left: auto; align-self: center; font-size: 13px; }

.prose { max-width: 68ch; margin-top: 28px; }
.prose h2 { font: 400 20px/1.15 var(--display); text-transform: uppercase; margin: 34px 0 10px; }
.prose p + p { margin-top: 12px; }
.prose ul { margin: 10px 0 0; }
.prose li { padding-left: 22px; position: relative; margin-top: 7px; }
.prose li::before { content: "■"; position: absolute; left: 0; top: -1px; font-size: 11px; line-height: 2.1; }
.prose code, .spec code { background: var(--chalk); padding: 1px 5px; font-size: 0.93em; }

.verdicts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 28px; max-width: 900px; }
.verdicts section { background: var(--chalk); border: 3px solid var(--pitch); padding: 16px 18px 18px; }
.verdicts h2 { font: 400 17px var(--display); text-transform: uppercase; margin-bottom: 6px; }
.verdicts section.is-no { background: var(--pitch); color: var(--chalk); }
.verdicts section.is-no h2 { color: var(--hazard); }
.verdicts li { margin-top: 7px; font-size: 14px; }

.qa { max-width: 74ch; margin-top: 30px; border-top: 3px solid var(--pitch); }
.qa details { border-bottom: 3px solid var(--pitch); }
.qa summary {
  cursor: pointer;
  font-weight: 600;
  padding: 14px 34px 13px 0;
  list-style: none;
  position: relative;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 4px; top: 9px; font: 400 22px var(--display); }
.qa details[open] summary::after { content: "–"; }
.qa details p { padding: 0 0 16px; max-width: 64ch; }
.qa details p + p { margin-top: -6px; }

/* ---------- clip page ---------- */
.unit { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); gap: 22px clamp(20px, 3vw, 40px); margin-top: 22px; align-items: start; }
.unit__screen { background: var(--pitch); padding: 10px; }
.unit__screen video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.unit__caption { color: var(--hazard); font-size: 12.5px; display: flex; justify-content: space-between; gap: 12px; padding: 9px 2px 1px; flex-wrap: wrap; }
.spec { width: 100%; border-collapse: collapse; background: var(--chalk); border: 3px solid var(--pitch); font-size: 13.5px; }
.spec caption { text-align: left; font: 400 15px var(--display); text-transform: uppercase; padding-bottom: 8px; }
.spec th, .spec td { text-align: left; padding: 7px 12px 6px; border-bottom: 1px solid #cfc79c; vertical-align: top; }
.spec th { font-weight: 600; width: 42%; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.pulls { margin-top: 16px; display: grid; gap: 8px; }
.pulls a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  background: var(--pitch);
  color: var(--hazard);
  text-decoration: none;
  padding: 11px 14px 10px;
  font-weight: 600;
  font-size: 13.5px;
}
.pulls a span:last-child { color: var(--chalk); font-weight: 400; white-space: nowrap; }
.pulls a:hover { background: var(--rust); color: var(--chalk); }
.unit__notes { margin-top: 26px; max-width: 66ch; }
.unit__notes h2 { font: 400 18px var(--display); text-transform: uppercase; margin: 26px 0 8px; }
.unit__notes p + p { margin-top: 10px; }

/* ---------- contact ---------- */
.desk { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin-top: 30px; max-width: 980px; }
.desk section { border: 3px solid var(--pitch); background: var(--chalk); padding: 16px 18px 18px; }
.desk h2 { font: 400 16px var(--display); text-transform: uppercase; margin-bottom: 8px; }
.desk a { font-weight: 600; word-break: break-all; }
.desk p + p { margin-top: 8px; font-size: 13.5px; }

/* ---------- 404 ---------- */
.void { padding: clamp(40px, 9vw, 120px) var(--gutter) 20px; }
.void__slot {
  border: 4px dashed var(--pitch);
  max-width: 760px;
  padding: clamp(24px, 5vw, 56px);
}
.void__slot .tagline { font-weight: 600; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.void h1 { font: 400 clamp(48px, 10vw, 128px)/0.9 var(--display); text-transform: uppercase; margin: 10px 0 16px; }
.void p { max-width: 50ch; }

/* ---------- yard (footer) ---------- */
.yard { margin-top: clamp(48px, 8vw, 100px); background: var(--pitch); color: var(--chalk); }
.yard__in {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 24px 36px;
  padding: 30px var(--gutter) 34px;
  font-size: 13.5px;
}
.yard__sign { font: 400 19px var(--display); text-transform: uppercase; color: var(--hazard); margin-bottom: 8px; }
.yard h2 { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.09em; color: var(--hazard); margin-bottom: 8px; }
.yard li { margin-top: 5px; }
.yard a { text-decoration-color: #6d6742; }
.yard a:hover { text-decoration-color: var(--hazard); color: var(--hazard); }
.yard__fine { grid-column: 1 / -1; color: #a8a07a; font-size: 12px; border-top: 1px solid #3a3a3a; padding-top: 14px; }

@media (max-width: 900px) {
  .intake, .unit { grid-template-columns: 1fr; }
  .rules { grid-template-columns: 1fr; }
  .rules > div { border-right: 0; border-bottom: 3px solid var(--pitch); }
  .rules > div:last-child { border-bottom: 0; }
  .yard__in { grid-template-columns: 1fr 1fr; }
  .yard__in > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .dock__sign { width: 100%; }
  .dock__count { display: none; }
  .bay__rack { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .crate { padding: 6px 6px 9px; }
  .crate__meta { display: none; }
  .verdicts { grid-template-columns: 1fr; }
  .manifest div { padding: 8px 11px 7px; }
  .manifest dd { font-size: 19px; }
  .sorter__tally { width: 100%; margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .crate__window video { display: none; }
}

/* late additions */
.crate__h { font: inherit; margin: 0; }
.bay--flush { padding-left: 0; padding-right: 0; }
.void .go + .go { margin-left: 8px; }
