:root {
  --face: #c0c0c0;
  --light: #ffffff;
  --shade: #808080;
  --ink: #000000;
  --title: #000080;
  --link: #0000ee;
  --visited: #551a8b;
  --hot: #ff0000;
  --mark: #ffff00;
  --chrome: "MS Sans Serif", Tahoma, Geneva, Verdana, sans-serif;
}

html {
  background: #ffffff;
  color: var(--ink);
}

body {
  max-width: 800px;
  margin: 0 auto;
  padding: 16px 12px 40px;
  font: 17px/1.45 "Times New Roman", Times, serif;
}

a {
  color: var(--link);
}

a:visited {
  color: var(--visited);
}

a:hover {
  color: var(--hot);
}

img {
  image-rendering: pixelated;
}

h1 {
  margin: 0;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin: 34px 0 6px;
  font-size: 26px;
}

p {
  margin: 0 0 12px;
}

code,
textarea {
  font: 14px/1.4 "Courier New", Courier, monospace;
}

.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px 18px;
  padding-bottom: 10px;
  border-bottom: 3px double var(--ink);
}

.masthead p {
  margin: 0;
  font-style: italic;
}

.nav {
  margin: 10px 0 0;
  font-family: var(--chrome);
  font-size: 14px;
}

.nav a {
  margin-right: 10px;
}

.counter {
  margin: 22px 0 8px;
}

.odometer {
  display: inline-block;
  padding: 2px 4px;
  font: bold 22px/1 "Courier New", Courier, monospace;
  letter-spacing: 0.4ch;
  color: #ffffff;
  background:
    repeating-linear-gradient(90deg, #000000 0 1.3ch, #3a3a3a 1.3ch 1.4ch),
    #000000;
  border: 2px inset var(--face);
  vertical-align: -3px;
}

.odometer.hot {
  color: var(--hot);
}

main {
  margin-top: 16px;
}

h1 a {
  color: inherit;
  text-decoration: none;
}

.find {
  margin: 0 0 8px;
  font-family: var(--chrome);
  font-size: 14px;
}

.find input {
  width: min(320px, 70%);
  padding: 3px 4px;
  background: #ffffff;
  border: 2px inset var(--face);
  border-radius: 0;
  font: 14px var(--chrome);
}

.drawers {
  columns: 150px;
  margin: 0;
  padding: 8px 8px 8px 26px;
  border: 3px ridge var(--face);
  font-size: 16px;
}

.drawers small {
  color: var(--shade);
}

.pile a[hidden] {
  display: none;
}

.pile {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 6px;
  border: 3px ridge var(--face);
}

.pile a {
  display: block;
  position: relative;
  width: 64px;
  height: 64px;
}

.pile a img {
  position: absolute;
  inset: 0;
  margin: auto;
}

.pile a:hover {
  outline: 2px solid var(--hot);
}

.sheet {
  display: contents;
}

.sheet a:nth-child(16n + 2) {
  background-position-x: -64px;
}

.sheet a:nth-child(16n + 3) {
  background-position-x: -128px;
}

.sheet a:nth-child(16n + 4) {
  background-position-x: -192px;
}

.sheet a:nth-child(16n + 5) {
  background-position-x: -256px;
}

.sheet a:nth-child(16n + 6) {
  background-position-x: -320px;
}

.sheet a:nth-child(16n + 7) {
  background-position-x: -384px;
}

.sheet a:nth-child(16n + 8) {
  background-position-x: -448px;
}

.sheet a:nth-child(16n + 9) {
  background-position-x: -512px;
}

.sheet a:nth-child(16n + 10) {
  background-position-x: -576px;
}

.sheet a:nth-child(16n + 11) {
  background-position-x: -640px;
}

.sheet a:nth-child(16n + 12) {
  background-position-x: -704px;
}

.sheet a:nth-child(16n + 13) {
  background-position-x: -768px;
}

.sheet a:nth-child(16n + 14) {
  background-position-x: -832px;
}

.sheet a:nth-child(16n + 15) {
  background-position-x: -896px;
}

.sheet a:nth-child(16n + 16) {
  background-position-x: -960px;
}

.sheet a:nth-child(n + 17) {
  background-position-y: -64px;
}

.sheet a:nth-child(n + 33) {
  background-position-y: -128px;
}

.sheet a:nth-child(n + 49) {
  background-position-y: -192px;
}

.sheet a:nth-child(n + 65) {
  background-position-y: -256px;
}

.sheet a:nth-child(n + 81) {
  background-position-y: -320px;
}

.sheet a:nth-child(n + 97) {
  background-position-y: -384px;
}

.sheet a:nth-child(n + 113) {
  background-position-y: -448px;
}

.sheet a:nth-child(n + 129) {
  background-position-y: -512px;
}

.sheet a:nth-child(n + 145) {
  background-position-y: -576px;
}

.sheet a:nth-child(n + 161) {
  background-position-y: -640px;
}

.sheet a:nth-child(n + 177) {
  background-position-y: -704px;
}

.sheet a:nth-child(n + 193) {
  background-position-y: -768px;
}

.sheet a:nth-child(n + 209) {
  background-position-y: -832px;
}

.sheet a:nth-child(n + 225) {
  background-position-y: -896px;
}

.sheet a:nth-child(n + 241) {
  background-position-y: -960px;
}

footer {
  margin-top: 40px;
  padding-top: 8px;
  border-top: 3px double var(--ink);
  font-size: 15px;
}

