/* Pisk Cabinet. The same paper as Pisk Console: one flat cream, a faint grain, the odd oxblood fleck, and thin
   hand-drawn oxblood lines. Set like a printed list, not an app: big names, a sentence each, a sketch beside.
   paper/ comes from the console's tools/paper.js; art/ from tools/art.js here. */
@font-face { font-family: "Clash Grotesk"; src: url(fonts/clash-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Clash Grotesk"; src: url(fonts/clash-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Clash Grotesk"; src: url(fonts/clash-600.woff2) format("woff2"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Magilio"; src: url(fonts/magilio.woff2) format("woff2"); font-display: swap; }

:root {
  --paper: #fef4e2;
  --ink: #240403;
  --ink-soft: rgba(36, 4, 3, 0.72);
  --ink-faint: rgba(36, 4, 3, 0.5);
  --rust: #b6361e;
  --text: "Clash Grotesk", system-ui, sans-serif;
  --display: "Magilio", Georgia, serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --rule: url(paper/line-ink-h.svg);
  --rule-rust: url(paper/line-rust-h.svg);
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); font: 500 16px/1.5 var(--text); -webkit-font-smoothing: antialiased; }
body { margin: 0; min-height: 100vh; background: url(paper/flecks.svg) 0 0 / 620px 620px repeat; }
a { color: inherit; }
::selection { background: var(--ink); color: var(--paper); }

.grain { position: fixed; inset: 0; z-index: 100; pointer-events: none; mix-blend-mode: multiply; opacity: 0.32;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .3 0 0 0 0 .2 0 0 0 .13 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* Header: just the name over a pen rule, as in the console */
.top { padding: 16px 28px 15px; background: var(--rule) repeat-x 0 100% / 240px 3px; }
.top .brand { font: 400 27px/1 var(--display); text-decoration: none; letter-spacing: 0.005em; }

main { max-width: 1040px; margin: 0 auto; padding: 20px 28px 120px; }

/* The list: each game is a band ruled off below, name and words on the left, its sketch on the right */
.games { list-style: none; margin: 0; padding: 0; }
.game { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 12px 48px; align-items: center; padding: 44px 0 40px;
  background: var(--rule) repeat-x 37px 100% / 240px 3px; }
.game .name { display: inline-block; font: 400 clamp(56px, 8vw, 96px)/0.95 var(--display); letter-spacing: -0.01em; text-decoration: none; padding-bottom: 8px;
  background: var(--rule-rust) repeat-x 0 100% / 240px 3px; background-size: 0 3px; transition: background-size 0.25s ease-out; }
.game .name:hover, .game .name:focus-visible { color: var(--rust); background-size: 240px 3px; outline: none; }
.game p { margin: 18px 0 0; max-width: 44ch; color: var(--ink-soft); font-size: 17px; }
.game .addr { display: inline-block; margin-top: 16px; font: 13px/1.3 var(--mono); color: var(--ink-faint); text-decoration: none; }
.game .addr:hover { color: var(--ink); }
.game .down { margin-left: 12px; font-size: 13px; color: var(--rust); }
.game .sketch { display: block; width: 300px; height: auto; }

@media (max-width: 720px) {
  .top { padding: 14px 18px 13px; }
  main { padding: 8px 18px 80px; }
  .game { grid-template-columns: 1fr; padding: 32px 0 30px; }
  .game .sketch { width: 220px; margin-left: -8px; }
}
