/* The legal pages (mentions, CGU, confidentialite) and the credits: text to read, on the game's night. The game's
   own pixel font (Pixelify Sans) for its name and the titles (served beside the page), the system's for the text. */
@font-face { font-family: "Pixelify Sans"; src: url(fonts/PixelifySans.ttf) format("truetype"); font-weight: 400 700; }
:root {
  color-scheme: dark;
  --night: #0b0b0a;   /* the game's black, a hair lifted so the text does not glare */
  --ink: #dcd9d2;     /* 14.0 to 1 on --night */
  --muted: #a8a49c;   /* the welcome's "ash": what is read but not chosen, 7.9 to 1 */
  --rule: #34322e;
  --link: #ffd858;    /* the welcome's "chosen": the one accent, 14.3 to 1 */
  --todo-bg: #2a2416; /* a field still to fill: dashed, labelled, never colour alone */
  --todo-line: #a8946a;
  --title: "Pixelify Sans", ui-monospace, monospace;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: light) {
  :root { color-scheme: light; --night: #f7f7f5; --ink: #1d1c1a; --muted: #5c5952; --rule: #d6d3cc;
          --link: #6b4f00; --todo-bg: #f3ead2; --todo-line: #8a6d2a; }
}
html { background: var(--night); color: var(--ink); -webkit-text-size-adjust: 100%; font-variant-ligatures: none; } /* Pixelify's « fi » is broken (index.css) */
body { margin: 0; font: 17px/1.6 var(--text); }
::selection { background: var(--link); color: var(--night); }
a { color: var(--link); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 2px; }
header, main { max-width: 68ch; margin: 0 auto; padding: 0 16px; }
header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; padding-top: 24px; padding-bottom: 16px;
         border-bottom: 1px solid var(--rule); }
header > a { font: 700 20px/1 var(--title); color: var(--ink); text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 15px; }
nav a[aria-current] { color: var(--ink); text-decoration: none; font-weight: 600; }
main { padding-bottom: 64px; overflow-wrap: break-word; } /* the credits' bare links are one word of 100 letters, wider than a phone */
h1 { font: 700 30px/1.25 var(--title); margin: 40px 0 4px; text-wrap: balance; }
h2 { font: 600 22px/1.3 var(--title); margin: 40px 0 8px; }
code { font-family: ui-monospace, Menlo, monospace; font-size: 0.9em; } /* the drawings' layer names, as their sources spell them */
.maj { color: var(--muted); font-size: 15px; margin: 0 0 24px; }
p, ul, dl { margin: 0 0 16px; }
ul { padding-left: 1.25em; }
li + li { margin-top: 6px; }
dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; }
dt { color: var(--muted); }
dd { margin: 0; }
@media (max-width: 560px) { dl { grid-template-columns: 1fr; gap: 0; } dd { margin-bottom: 12px; } }
.vide { background: var(--todo-bg); border: 1px dashed var(--todo-line); border-radius: 3px; padding: 1px 6px;
        font-style: italic; }
/* The beta's form (web/beta.html, lot regles beta): the fields one under the other, as wide as the text at most,
   the one button in the accent; the server's answer above it (accounts.go betaPage). */
form { display: grid; gap: 6px; max-width: 28rem; margin: 0 0 24px; }
label { font-weight: 600; }
input[type=email], input[type=text] { font: inherit; color: var(--ink); background: var(--night); border: 1px solid var(--muted);
  border-radius: 3px; padding: 8px 10px; margin-bottom: 10px; min-width: 0; }
input:focus-visible, button:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
fieldset { border: 0; padding: 0; margin: 0 0 14px; display: grid; gap: 4px; }
legend { font-weight: 600; padding: 0; margin-bottom: 4px; }
fieldset label { font-weight: 400; }
input[type=radio] { accent-color: var(--link); width: 1.1em; height: 1.1em; vertical-align: -0.15em; margin: 0 8px 0 0; }
button { justify-self: start; font: 600 17px/1 var(--text); color: var(--night); background: var(--link); border: 0;
  border-radius: 3px; padding: 12px 18px; cursor: pointer; }
button:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.aide { color: var(--muted); font-size: 15px; margin-top: -6px; }
.etat { border: 1px solid var(--link); border-radius: 3px; padding: 10px 14px; font-weight: 600; }
.titre { white-space: nowrap; } /* « Bêta-testeur » is one word: never cut at its hyphen */
