:root{color-scheme:light dark}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font:16px/1.65 ui-serif,Georgia,"Times New Roman",serif;
  background:#fbfbfa;color:#22201d;
  display:flex;flex-direction:column;
}
@media (prefers-color-scheme:dark){
  body{background:#141412;color:#d9d6cf}
}
#doc{flex:1;max-width:60ch;margin:0 auto;padding:9vh 24px 0;width:100%}
#doc h1{font-size:1.05rem;font-weight:600;letter-spacing:.01em;margin:0 0 1.4em;opacity:.55}
#doc p{margin:0 0 .9em;opacity:.28;min-height:1.65em}

/* A file listed on a notes page. Discoverable by clicking, unremarkable to
   read: no game word appears anywhere in the markup or the visible text. */
#files{list-style:none;margin:0;padding:0}
#files li{margin:0 0 .5em}
#file-row[hidden]{display:none}
#files a{
  color:inherit;text-decoration:none;opacity:.42;
  border-bottom:1px solid transparent;transition:opacity .15s ease;
}
#files a:hover,#files a:focus-visible{opacity:.8;border-bottom-color:currentColor;outline:none}

/* Diagnostic readout only. Hidden unless ?diag is in the URL, so an ordinary
   visit renders as nothing but a blank notepad. */
#state{
  position:fixed;left:10px;bottom:8px;
  font:11px/1 ui-monospace,SFMono-Regular,Menlo,monospace;
  opacity:.35;pointer-events:none;user-select:none;
}
#state[hidden]{display:none}
