/* The ALPHACTORY wiki: the palette of the game's page on the site
   (alphactory/css/style.css), the game's own font for every glyph. */
@font-face { font-family: "Fixedsys"; src: url("FixedsysExcelsior.ttf") format("truetype"); font-display: block; }

:root {
  color-scheme: dark;
  --bg: #08090b;
  --panel: #101216;
  --line: #23272f;
  --text: #e6e2d6;
  --muted: #8b8879;
  --accent: #ff7a2f;
  --glyph: "Fixedsys", ui-monospace, Consolas, monospace;
  --sans: system-ui, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.6; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.brand { font-family: var(--glyph); font-size: 20px; color: var(--text); letter-spacing: .04em; }
main { max-width: 960px; margin: 0 auto; padding: 16px; }
footer { max-width: 960px; margin: 32px auto; padding: 16px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }
.crumbs { color: var(--muted); font-size: 14px; margin: 0 0 8px; }
h1 { margin: 0 0 12px; font-size: 32px; line-height: 1.2; }
h1.word { font-family: var(--glyph); font-weight: normal; letter-spacing: .06em; }
.lede, .hint { color: var(--muted); }

.drawings { display: flex; flex-wrap: wrap; gap: 24px; margin: 16px 0; }
pre.drawing { font-family: var(--glyph); font-size: 16px; line-height: 1; margin: 0; padding: 16px; background: #000; border: 1px solid var(--line); overflow-x: auto; }

dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 16px 0; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; }
.cost { font-family: var(--glyph); font-size: 20px; letter-spacing: .08em; }
.editorial { border-top: 1px solid var(--line); padding-top: 12px; }

#search { width: 100%; max-width: 480px; padding: 8px 12px; font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 3px; }
#results { list-style: none; padding: 0; }
#results li { padding: 2px 0; }
#results .cat, .count { color: var(--muted); font-size: 13px; }
.shelves { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.shelves li { padding: 10px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 3px; }

.table-wrap { overflow-x: auto; }
table.sortable { border-collapse: collapse; width: 100%; font-size: 14px; }
table.sortable th, table.sortable td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.sortable th { cursor: pointer; color: var(--muted); font-weight: normal; user-select: none; }
table.sortable th[aria-sort] { color: var(--text); }
