/* The site's pages outside the game (the first page, the extractor, the online lobbies, the
   level list), a little like the game's main menu: a warm paper page, the title in a framed
   box, choices as plain serif words that turn orange when pointed at, and pale when they
   cannot be chosen. */
:root {
  --wall: #2b201b; --paper: #f7e9dc; --paper-edge: #efc9a9; --frame: #b59a87;
  --ink: #1b1512; --muted: #5b4a40; --off: #c8b3a5; --lit: #e2601a; --line: #dcc0aa;
  --link: #a8460f; --ok: #2f6b3a; --err: #a12a2a;
  --serif: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}
* { box-sizing: border-box; }
html { background: var(--wall); }
body { margin: 0; color: var(--ink); font: 17px/1.5 var(--serif); }
main { max-width: 600px; margin: 40px auto; padding: 0 16px; }
main.wide { max-width: 1100px; }
.sheet { padding: 16px 24px 22px; border-radius: 6px; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
         background: linear-gradient(100deg, var(--paper) 40%, var(--paper-edge)); }

h1, h2, summary, button, .way strong { font-family: var(--serif); font-weight: bold; }
h1 { margin: 0 0 20px; padding: 6px 12px; border: 4px double var(--frame); border-radius: 6px;
     text-align: center; text-transform: uppercase; letter-spacing: 0.04em; font-size: 34px; line-height: 1.2; }
h2 { margin: 22px 0 6px; font-size: 21px; }
p { margin: 0 0 12px; color: var(--muted); }
a { color: var(--link); }
small { font-size: 0.85em; }

/* A choice, as in the game's menus: a word that turns orange when pointed at. */
.way { display: block; margin: 4px 0; padding: 8px 0; color: inherit; text-align: center; text-decoration: none; }
.way strong { display: block; font-size: 26px; line-height: 1.2; }
.way span { color: var(--muted); font-size: 14px; }
button { padding: 4px 0; border: 0; background: none; color: var(--ink); font-size: 22px; cursor: pointer; }
.way:hover strong, .way:focus-visible strong, button:not(:disabled):hover, button:focus-visible,
summary:hover, summary:focus-visible { color: var(--lit); outline: none; }
button:disabled { color: var(--off); cursor: default; }

input[type=text], input:not([type]) { padding: 7px 10px; border: 1px solid var(--frame); border-radius: 4px;
                                      background: #fffaf4; color: var(--ink); font: inherit; }
input:focus-visible { border-color: var(--lit); outline: none; }
input[type=file], input::file-selector-button { color: var(--muted); font: inherit; }
summary { margin: 14px 0 10px; font-size: 19px; cursor: pointer; }
progress { width: 100%; accent-color: var(--lit); }
.ok { color: var(--ok); }
.err { color: var(--err); }

/* The notices below the page, on the wall. */
footer { margin-top: 20px; color: #b9aea4; font-size: 0.8rem; }
footer p { color: inherit; margin: 0 0 8px; }
