/* Thriftin' Mick
   Navy is the classic Snap-T body color, yellow is a thrift-store price sticker,
   blue is the contrast nylon on the chest pocket. Grey is the fleece behind photos. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(fonts/archivo.woff2) format("woff2-variations"), url(fonts/archivo.woff2) format("woff2");
}
:root {
  --ink: #1c2740;
  --paper: #ffffff;
  --fleece: #e7e8e3;
  --pocket: #2747c9;
  --tag: #f4d03f;
  --mute: #5b6377;
  --line: #d5d7d0;
  --gut: clamp(16px, 4vw, 48px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--pocket); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--pocket); outline-offset: 2px; }
[hidden] { display: none !important; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--tag); color: var(--ink); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* header */
.top {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 8px 24px; padding: 20px var(--gut) 18px;
}
.mark {
  color: var(--ink); text-decoration: none;
  font-size: clamp(28px, 4.4vw, 46px); line-height: 1;
  font-weight: 900; font-stretch: 125%; font-variation-settings: "wdth" 125;
  letter-spacing: -0.015em;
}
.top nav { display: flex; gap: 6px 22px; flex-wrap: wrap; }
.top nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 2px 0; border-bottom: 2px solid transparent; }
.top nav a:hover { border-bottom-color: var(--ink); }
.top nav a[aria-current="page"] { border-bottom-color: var(--tag); border-bottom-width: 4px; }

main { padding: 0 0 64px; }

/* swatch wall: one square of fabric per print, oldest top left */
.wall {
  display: grid;
  grid-template-columns: repeat(18, 1fr);
  background: var(--fleece);
}
@media (max-width: 1100px) { .wall { grid-template-columns: repeat(12, 1fr); } .wall a:nth-child(n+61) { display: none; } }
@media (max-width: 760px) { .wall { grid-template-columns: repeat(9, 1fr); } .wall a:nth-child(n+37) { display: none; } }
@media (max-width: 480px) { .wall { grid-template-columns: repeat(6, 1fr); } .wall a:nth-child(n+25) { display: none; } }
.wall a { display: block; aspect-ratio: 1; overflow: hidden; }
.wall img { width: 100%; height: 100%; object-fit: cover; }
.wall a:focus-visible { outline-offset: -3px; position: relative; z-index: 1; }

/* intro */
.intro { padding: 40px var(--gut) 8px; max-width: calc(40rem + 2 * var(--gut)); }
.intro h1, .prose h1, .facts h1 {
  font-weight: 850; font-variation-settings: "wdth" 118;
  line-height: 1.04; letter-spacing: -0.02em; margin: 0 0 18px;
}
.intro h1 { font-size: clamp(32px, 5vw, 54px); }
.intro p { margin: 0 0 12px; }
.count { color: var(--mute); }

/* filters */
.filters {
  margin: 28px var(--gut) 8px; padding: 20px 0 22px;
  border-top: 2px solid var(--ink);
  display: grid; grid-template-columns: minmax(220px, 26rem) auto auto; gap: 14px 32px; align-items: end;
}
.filters label, .filters legend { display: block; font-weight: 650; font-size: 15px; margin-bottom: 6px; padding: 0; }
.filters input {
  width: 100%; font: inherit; color: var(--ink);
  padding: 10px 12px; border: 2px solid var(--ink); border-radius: 4px; background: var(--paper);
}
.filters fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.filters legend { width: 100%; }
.filters button {
  font: inherit; font-size: 15px; color: var(--ink); cursor: pointer;
  padding: 7px 11px; border: 1.5px solid var(--ink); border-radius: 4px; background: var(--paper);
}
.filters button[aria-pressed="true"] { background: var(--tag); border-color: var(--ink); font-weight: 650; }
#shown { grid-column: 1 / -1; margin: 0; min-height: 1.5em; color: var(--mute); }
#none { margin: 24px var(--gut); }
@media (max-width: 860px) { .filters { grid-template-columns: 1fr; } }

/* year sections */
.year {
  display: grid; grid-template-columns: 11.5rem 1fr; gap: 0 24px;
  padding: 28px var(--gut) 20px; border-top: 1px solid var(--line);
}
.year h2 {
  margin: 0; align-self: start; position: sticky; top: 12px;
  font-size: clamp(40px, 5vw, 60px); line-height: 0.9;
  font-weight: 850; font-variation-settings: "wdth" 125; letter-spacing: -0.03em;
}
.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 30px 20px;
}
.card a { color: var(--ink); text-decoration: none; display: block; }
.card .pic {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 4 / 5; background: var(--fleece); border-radius: 3px; overflow: hidden; margin-bottom: 9px;
}
.card .pic img { width: 100%; height: 100%; object-fit: cover; }
.nopic { color: var(--mute); font-size: 14px; }
.card .name { display: block; font-weight: 680; line-height: 1.25; }
.card a:hover .name { text-decoration: underline; text-underline-offset: 0.18em; }
.card .when { display: block; color: var(--mute); font-size: 14.5px; }
.dots { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 6px; font-size: 13.5px; color: var(--mute); }
.dots span:last-child { margin-left: 4px; }
.dot { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line); }
.dot.nophoto { display: inline-block; background: repeating-linear-gradient(45deg, var(--fleece) 0 3px, var(--paper) 3px 6px); }
@media (max-width: 640px) {
  .year { grid-template-columns: 1fr; }
  .year h2 { position: static; margin-bottom: 14px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 24px 14px; }
}

/* print page */
.entry { padding: 12px var(--gut) 0; }
.crumbs { margin: 0 0 18px; color: var(--mute); font-size: 15px; }
.crumbs a { color: var(--mute); }
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.hero { margin: 0; background: var(--fleece); border-radius: 3px; padding: clamp(12px, 3vw, 36px); position: sticky; top: 16px; }
.hero img { margin: 0 auto; max-height: 76vh; width: auto; }
.hero figcaption { margin-top: 12px; font-size: 15px; color: var(--mute); text-align: center; }
.hero.empty { aspect-ratio: 4 / 5; display: flex; align-items: center; justify-content: center; color: var(--mute); position: static; }
.facts { max-width: 36rem; }
.facts h1 { font-size: clamp(34px, 5vw, 58px); margin-bottom: 10px; }
.facts .when { font-size: 18px; margin: 0 0 6px; }
.aka { color: var(--mute); margin: 0 0 6px; }
.notes { margin: 20px 0 0; }
.facts h2, .prose h2 { font-size: 21px; font-weight: 750; font-variation-settings: "wdth" 110; margin: 36px 0 12px; }

/* price-gun label */
.sticker {
  display: inline-block; margin: 18px 0 4px; padding: 9px 14px 10px;
  background: var(--tag); color: var(--ink); border-radius: 5px;
  font-weight: 700; font-size: 16px; line-height: 1.3; max-width: 26rem;
  transform: rotate(-1.5deg); transform-origin: left center;
  box-shadow: inset 0 0 0 1.5px rgba(28, 39, 64, 0.18);
}
.sticker span { display: block; font-weight: 500; font-size: 13px; }

.cws { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.cw {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left;
  font: inherit; color: var(--ink); background: none; border: 0; padding: 6px; border-radius: 6px; cursor: pointer;
}
.cw img, .cw .ph { width: 44px; height: 44px; border-radius: 50%; flex: none; object-fit: cover; box-shadow: 0 0 0 1px var(--line); }
.cw .ph { background: repeating-linear-gradient(45deg, var(--fleece) 0 4px, var(--paper) 4px 8px); }
.cw small { display: block; color: var(--mute); font-size: 13.5px; line-height: 1.3; }
.cw:hover { background: #f3f4f0; }
.cw[aria-pressed="true"] img { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }
.cw[aria-pressed="true"] > span { font-weight: 650; }
.cw.off { cursor: default; }
.srcs { margin: 0; padding-left: 1.1em; }
.fine { color: var(--mute); font-size: 14.5px; }
.pn { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 18px; border-top: 2px solid var(--ink); }
.pn a[rel="next"] { text-align: right; }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; gap: 24px; }
  .hero { position: static; }
  .pn { flex-direction: column; }
  .pn a[rel="next"] { text-align: left; }
}

/* prose pages */
.prose { padding: 32px var(--gut) 0; max-width: calc(38rem + 2 * var(--gut)); }
.prose h1 { font-size: clamp(32px, 5vw, 50px); }
.prose p { margin: 0 0 14px; }
.prose table { border-collapse: collapse; width: 100%; margin: 4px 0 8px; font-size: 16px; }
.prose th, .prose td { text-align: left; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 650; border-bottom: 2px solid var(--ink); }
.prose td:first-child { font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* footer */
.foot { padding: 28px var(--gut) 40px; border-top: 1px solid var(--line); color: var(--mute); font-size: 14.5px; }
.foot p { max-width: 46rem; margin: 0 0 8px; }
.foot a { color: var(--mute); }
