:root {
  color-scheme: light dark;
  --ink: #1d1b26;
  --paper: #f4efe3;
  --accent: #d0473a;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color: var(--ink);
  background: var(--paper);
}

@media (prefers-color-scheme: dark) {
  :root { --ink: #f4efe3; --paper: #1d1b26; }
}

body { margin: 0; }
main { max-width: 40rem; margin: 0 auto; padding: 2rem 1rem; }
h1 { letter-spacing: 0.05em; }
.lede { line-height: 1.5; }
.pressing { font-weight: bold; }
form { display: grid; gap: 1rem; margin: 1.5rem 0; }
label { display: grid; gap: 0.25rem; }
input { font: inherit; padding: 0.5rem; border: 2px solid var(--ink); background: transparent; color: inherit; }
button { font: inherit; padding: 0.6rem 1rem; border: 2px solid var(--ink); background: var(--accent); color: #fff; cursor: pointer; justify-self: start; }
button:disabled { opacity: 0.5; cursor: progress; }
.error { color: var(--accent); }
img.card { image-rendering: pixelated; max-width: 100%; height: auto; border: 2px solid var(--ink); }
ul.cards, ul.downloads { padding-left: 1.2rem; line-height: 1.8; }
.print-area { display: grid; gap: 1rem; margin: 1.5rem 0; }
@media (min-width: 52rem) { main:has(.print-area) { max-width: 60rem; } .print-area { grid-template-columns: 14rem 1fr; align-items: start; } }
a.button { display: inline-block; font: inherit; padding: 0.6rem 1rem; border: 2px solid var(--ink); background: var(--accent); color: #fff; text-decoration: none; }
.guide ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.guide li { display: grid; grid-template-columns: 64px 1fr; gap: 0.75rem; align-items: center; }
.guide p { margin: 0; line-height: 1.4; }
.guide h2 { margin-top: 0; }
footer { text-align: center; padding: 2rem 1rem; opacity: 0.7; }
nav { margin-bottom: 1rem; }
label.check { display: flex; gap: 0.5rem; align-items: center; }
/* The wall shows each card's front only: the 120 × 109 master at three times its size, cropped to the top 76 rows. */
ul.wall { list-style: none; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); }
ul.wall li { display: grid; gap: 0.4rem; }
ul.wall a { display: grid; gap: 0.4rem; color: inherit; text-decoration: none; }
ul.wall img { width: 100%; max-width: 360px; height: auto; aspect-ratio: 120 / 76; object-fit: cover; object-position: top; image-rendering: pixelated; border: 2px solid var(--ink); }
ul.wall button.report { padding: 0.2rem 0.6rem; background: transparent; color: inherit; font-size: 0.85em; }
.report-panel { display: grid; gap: 0.75rem; padding: 1rem; border: 2px solid var(--ink); margin: 1rem 0; }
.wall-state { margin: 1rem 0; }
