:root {
  color: #161616;
  background: #f4f4f4;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }

header {
  position: relative;
  min-height: 4.6rem;
  padding: 1.45rem 1.5rem 1rem;
}
.wordmark {
  display: block;
  width: max-content;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1;
  text-transform: uppercase;
}
.selection-button {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  border: 0;
  border-radius: 2px;
  background: #e5e5e5;
  padding: .62rem .8rem;
  font-size: .68rem;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.shell {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  gap: 1rem 2.4rem;
  padding: .15rem 1.7rem 1rem;
  align-items: start;
}
.search { position: relative; display: block; }
.search input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #222;
  border-radius: 0;
  background: transparent;
  padding: .15rem 1.4rem .45rem 0;
  outline: none;
  font-size: .92rem;
}
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search input::placeholder { color: #a3a3a3; }
.search-icon {
  position: absolute;
  right: 0;
  top: .15rem;
  width: 15px;
  height: 15px;
  color: #222;
}
.active-filters { display: flex; flex-wrap: wrap; gap: .35rem; min-height: 0; margin-top: .7rem; }
.crumb {
  border: 0;
  background: #fff;
  padding: .32rem .5rem;
  font-size: .68rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.fold { margin: .15rem 0 0; }
.fold summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .38rem 0;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.fold summary::-webkit-details-marker { display: none; }
.fold summary::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid #161616;
}
.fold[open] > summary::before {
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #161616;
  border-bottom: 0;
}
.nav { display: flex; flex-direction: column; align-items: flex-start; gap: .05rem; padding: .15rem 0 .35rem 1rem; }
.nav button {
  border: 0;
  background: transparent;
  padding: .16rem 0;
  text-align: left;
  font-size: .84rem;
}
.nav button[aria-pressed="true"] { font-weight: 700; }
.nav .empty { margin: .15rem 0 .3rem; color: #777; font-size: .8rem; }
.aside-note {
  margin-top: 1.6rem;
  padding-top: 1.1rem;
  border-top: 1px solid #ddd;
  color: #222;
  font-size: .82rem;
  line-height: 1.45;
}
.aside-label {
  margin: 0 0 .45rem;
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.aside-note p { margin: .2rem 0; }
.content-bar { min-height: 2.4rem; margin: .15rem 0 .85rem; }
#add-all {
  border: 0;
  border-radius: 0;
  background: #111;
  color: #fff;
  padding: .72rem .9rem;
  font-size: .68rem;
  font-weight: 650;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.file-grid { display: grid; align-items: start; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2.15rem .85rem; }
.file-card { background: transparent; border: 0; padding: 0; text-align: center; }
.preview {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 148px;
  border: 0;
  background: transparent;
  padding: 0;
}
.preview img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 148px;
  object-fit: contain;
}
.filename {
  margin: .75rem 0 0;
  text-align: center;
  color: #161616;
  font-size: .75rem;
  font-weight: 400;
  line-height: 1.35;
  word-break: break-word;
}
.sizes { display: flex; flex-direction: column; align-items: center; gap: .38rem; margin-top: .6rem; }
.sizes a {
  display: inline-block;
  min-width: 5.8rem;
  text-align: center;
  text-decoration: none;
  color: #161616;
  background: #fff;
  border: 1px solid #d0d0d0;
  border-radius: 0;
  padding: .3rem .55rem;
  font-size: .75rem;
}
.text-action {
  display: block;
  margin: .72rem auto 0;
  border: 0;
  background: transparent;
  padding: 0;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.text-action[aria-pressed="true"] { font-weight: 750; }
.muted { color: #666; font-size: .9rem; }
.site-foot {
  margin-top: 3.5rem;
  padding: 2.4rem 1rem 2rem;
  background: #ececec;
  text-align: center;
}
.site-foot p {
  margin: 0;
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
dialog {
  width: min(760px, calc(100vw - 2rem));
  border: 0;
  border-radius: 0;
  background: #f4f4f4;
  padding: 1.1rem 1.2rem 1.4rem;
}
dialog::backdrop { background: rgba(17, 17, 17, .45); }
dialog h2 { margin: .2rem 0 1rem; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
#detail-image { width: 100%; max-height: 62vh; object-fit: contain; }
.detail-close { display: flex; justify-content: flex-end; }
.detail-close button { border: 0; background: transparent; letter-spacing: .08em; text-transform: uppercase; font-size: .68rem; }
.basket-row { display: grid; grid-template-columns: 72px 1fr auto; gap: .75rem; align-items: center; padding: .7rem 0; border-top: 1px solid #ddd; }
.basket-row img { width: 72px; height: 72px; object-fit: contain; }
.basket-row .sizes { margin-top: 0; flex-direction: row; flex-wrap: wrap; justify-content: flex-start; }
.basket-actions { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-top: .8rem; }
.basket-actions button { border: 1px solid #111; background: #fff; padding: .45rem .65rem; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; }
.primary-action { border: 0; background: #111; color: #fff; }
.basket-actions .primary-action { border: 0; background: #111; color: #fff; }
.primary-action:disabled { background: #c8c8c8; color: #fff; }
dialog.picker { width: min(440px, calc(100vw - 2rem)); }
.size-choices { display: flex; flex-direction: column; gap: .5rem; margin: .2rem 0 1rem; }
.size-choices label {
  display: flex;
  align-items: baseline;
  gap: .55rem;
  background: #fff;
  border: 1px solid #d0d0d0;
  padding: .6rem .7rem;
  font-size: .85rem;
}
.size-choices span { color: #666; font-size: .75rem; }
#download-status { margin: 0 0 .55rem; }

@media (max-width: 1280px) {
  .file-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; gap: 1rem; }
  .file-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wordmark { font-size: 1.25rem; }
}
@media (max-width: 720px) {
  header { padding-bottom: .35rem; text-align: center; }
  .selection-button { position: static; display: block; margin: .8rem auto 0; }
}
@media (max-width: 560px) {
  .file-grid { grid-template-columns: 1fr 1fr; }
  .basket-row { grid-template-columns: 56px 1fr; }
}
