/* The lair's pages: black like the logo's own background, the logo's cream for text. */
:root { color-scheme: dark; --bg: #000; --text: #ebd2a9; --muted: #9a9a9a; --line: #3e3e3e; --button: #ebd2a9; --button-text: #000; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
/* Everything in the middle of the window, both ways (Will, 15 Nov 2026); a long page still scrolls from the top. */
body { min-height: 100vh; min-height: 100dvh; display: flex; }
main { width: 100%; max-width: 35rem; margin: auto; padding: 24px 16px; text-align: center; }
h1 { margin: 0 0 32px; }
/* Pixel art at its own size (1 image pixel = 1 screen pixel), hard edges. On a window too narrow for it (a phone),
   shrunk to fit, smoothly — shrinking pixel art with hard edges drops pixels unevenly. */
.logo, .sign-in img { image-rendering: pixelated; image-rendering: crisp-edges; display: block; margin: 0 auto; max-width: 100%; height: auto; }
.logo { width: 347px; }
/* The button as wide as the logo (Will, 15 Nov 2026): 496 → 347 px isn't a whole-number size, so shrunk smoothly. */
.sign-in img { width: 347px; image-rendering: auto; }
@media (max-width: 379px) { .logo { image-rendering: auto; } }
.sign-in { display: inline-block; max-width: 100%; border-radius: 10px; transition: filter 0.12s; }
.sign-in:hover { filter: brightness(1.12); }
.sign-in:active { filter: brightness(0.92); }
.lead { margin: 0 0 24px; }
.note { margin: 0 0 24px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); }
.button { display: inline-block; padding: 12px 22px; border-radius: 8px; background: var(--button); color: var(--button-text); font-weight: 600; text-decoration: none; }
.button:focus-visible, .tools a:focus-visible, .link:focus-visible, .sign-in:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.tools { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 12px; text-align: left; }
.tools a { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); text-decoration: none; }
.tools a:hover { border-color: var(--text); }
.tools .name { display: block; font-size: 1.15rem; font-weight: 600; }
.tools .about { display: block; color: var(--muted); }
/* A tool with Will's own button picture (the Proof Tool, 15 Nov 2026): half its own size, 203 px wide — exactly every
   other pixel, so crisper than the logo-wide and two-thirds tries (Will chose it over 231 px). Lighter on hover, as the
   sign-in button. */
.tools a.tool-button { display: block; width: 203px; max-width: 100%; margin: 0 auto; padding: 0; border: 0; border-radius: 10px; transition: filter 0.12s; }
.tools a.tool-button img { display: block; width: 100%; height: auto; }
.tools a.tool-button:hover { filter: brightness(1.12); }
.tools a.tool-button:active { filter: brightness(0.92); }
.tools a.tool-button:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.link { background: none; border: 0; padding: 4px; color: var(--muted); font: inherit; text-decoration: underline; cursor: pointer; }

/* ── The staff quick guide (/guide): a long reading page, left-aligned, printable ── */
main.guide { max-width: 52rem; text-align: left; }
main.guide h1 { text-align: center; }
.guide a { color: var(--text); }
.guide .crumbs { margin: 0 0 16px; font-size: 0.95rem; }
.guide .crumbs a { color: var(--muted); }
.guide .page-title { margin: 0 0 8px; font-size: 1.9rem; line-height: 1.2; }
.guide .lead { margin-bottom: 20px; }
.guide h3 { margin: 40px 0 12px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 1.35rem; line-height: 1.3; }
.guide p, .guide ul, .guide ol { margin: 0 0 14px; }
.guide li { margin: 0 0 6px; }
.guide li::marker { color: var(--muted); }
.guide strong { color: #fff3dc; }
.guide .contents { columns: 2; column-gap: 32px; padding-left: 1.4em; margin-bottom: 8px; }
.guide .contents li { break-inside: avoid; }
.guide figure { margin: 8px 0 18px; }
.guide figure img { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.guide figcaption { margin-top: 6px; color: var(--muted); font-size: 0.9rem; }
.guide kbd { display: inline-block; min-width: 1.6em; padding: 0 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; font: 600 0.85rem/1.5 ui-monospace, "SF Mono", Menlo, monospace; text-align: center; color: var(--text); background: #141414; }
.guide .table-wrap { overflow-x: auto; }
.guide table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.guide th, .guide td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.guide thead th { color: var(--muted); font-weight: 600; }
.guide tr.group th { padding-top: 18px; font-size: 1.05rem; color: var(--text); border-bottom-color: var(--text); }
.guide td.says { font-weight: 600; color: #fff3dc; width: 36%; }
.guide table.keys th { width: 11rem; font-weight: 400; white-space: nowrap; }
.guide .footnote { margin-top: 40px; color: var(--muted); }
.guide a:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
@media (max-width: 640px) {
  .guide .contents { columns: 1; }
  .guide table.messages, .guide table.messages tbody, .guide table.messages tr, .guide table.messages td, .guide table.messages tr.group th { display: block; width: auto; }
  .guide table.messages thead { display: none; }
  .guide table.messages tr { padding: 8px 0; border-bottom: 1px solid var(--line); }
  .guide table.messages td { border: 0; padding: 2px 0; }
  .guide table.messages tr.group th { padding-left: 0; }
  .guide table.keys th { white-space: normal; width: 8rem; }
}

/* Printed: black on white paper, no logo or links back, nothing split across a page. */
@media print {
  :root { color-scheme: light; --bg: #fff; --text: #000; --muted: #444; --line: #bbb; }
  html, body { background: #fff; color: #000; font-size: 11pt; }
  body { display: block; min-height: 0; }
  main.guide { max-width: none; padding: 0; }
  .guide h1, .guide .crumbs { display: none; }
  .guide strong, .guide td.says { color: #000; }
  .guide a { color: #000; text-decoration: none; }
  .guide kbd { background: #fff; color: #000; }
  .guide h3 { break-after: avoid; margin-top: 24px; }
  .guide figure, .guide tr, .guide li { break-inside: avoid; }
  .guide figure img { max-height: 7.5cm; width: auto; }
  .guide .contents { columns: 3; }
  .guide h3 { padding-top: 10px; }
}
