: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: 980px;
  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: auto;
}

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;
  background-repeat: no-repeat;
}

.pile a img {
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: 100%;
  max-height: 100%;
}

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

.sheet {
  display: contents;
}

.pile + .pile {
  margin-top: 10px;
}

.pile.wide {
  justify-content: center;
}

.slot {
  margin: 14px 0 6px;
  text-align: center;
}

.slot img {
  border: 2px outset var(--face);
}

.years {
  font-family: var(--chrome);
  font-size: 14px;
}

.years a {
  margin-right: 6px;
}

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

.pager a,
.pager b,
.pager span {
  margin-right: 4px;
}

.code {
  width: 100%;
  box-sizing: border-box;
  padding: 6px;
  border: 2px inset var(--face);
}

button {
  padding: 3px 10px;
  font: 14px var(--chrome);
  background: var(--face);
  border: 2px outset var(--light);
  cursor: pointer;
}

button:active {
  border-style: inset;
}

.loose {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 10px;
  border: 3px ridge var(--face);
}

.loose img {
  max-width: 100%;
  height: auto;
}

.about dt {
  font-weight: bold;
  margin-top: 10px;
}

@media (max-width: 520px) {
  .pile.wide {
    zoom: 0.68;
  }
  h1 {
    font-size: 32px;
  }
}

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

.gated {
  display: none;
}

.gated.open {
  display: block;
}

.gate {
  max-width: 420px;
  padding: 16px 18px;
  border: 3px outset var(--face);
  background: var(--face);
  font-family: var(--chrome);
  font-size: 15px;
}

.gate::backdrop {
  background: rgba(0, 0, 0, 0.75);
}
