/* The dress of the text pages: how to play, about and privacy. They are
   plain documents next to the game, kept apart from `src/style.css` so a
   reader without the game's fonts or scripts still gets a page. The two
   page colors match `index.html`.

   Every color is a variable, set once for light and once for dark. Dark
   is worn where the game's own Theme setting says so, which each page's
   head reads into `data-theme` as `index.html` does, and otherwise where
   the device asks for it. Written as plain rules after a dark block, the
   light link and table colors won over the dark ones: links stood at 2.1
   to 1 on the dark page. */
html {
  --page: #dcd8ec;
  --ink: #2a2640;
  --muted: #524c6e;
  --link: #4b3fa0;
  --rule: #c6c0dd;
  --button: #5a4bb0;
  --button-ink: #fff;
  color-scheme: light;
  background: var(--page);
  color: var(--ink);
  font:
    16px/1.6 system-ui,
    sans-serif;
}
html[data-theme='dark'] {
  --page: #17142b;
  --ink: #e6e2f2;
  --muted: #b3adcb;
  --link: #b9aef5;
  --rule: #3a3458;
  --button: #6a5bc4;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) {
    --page: #17142b;
    --ink: #e6e2f2;
    --muted: #b3adcb;
    --link: #b9aef5;
    --rule: #3a3458;
    --button: #6a5bc4;
    color-scheme: dark;
  }
}
body {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1rem 1.25rem 4rem;
}
a {
  color: var(--link);
}
/* The way round the pages: the game's name and mark first, as the way
   home, then the three pages. Each link is a thumb tall, 44px. Where the
   four do not fit one row, under 480 wide, the way home takes a row of
   its own and the three pages the next: left to wrap, Privacy fell alone
   to a second row at 390. They were bare words 26px tall. */
nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 1.25rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}
nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
nav .home {
  gap: 0.4rem;
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
}
nav .home img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}
/* The page a reader is on: in the page's ink and not a link's, with no
   underline. Dimmed to three fifths it stood at 2.7 to 1. */
nav a[aria-current='page'] {
  color: var(--ink);
  text-decoration: none;
}
@media (max-width: 479px) {
  nav {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: start;
  }
  /* A row of its own, and a box no wider than its mark and name. */
  nav .home {
    grid-column: 1 / -1;
    justify-self: start;
    margin-right: 0;
  }
}
/* A heading on two lines keeps them close: at the body's 1.6 they stood
   51px apart. */
h1,
h2,
h3 {
  line-height: 1.2;
}
h1 {
  margin-top: 0;
}
/* A reference kept on one line, as "Article 6(1)(b)". */
.whole {
  white-space: nowrap;
}
table {
  border-collapse: collapse;
  margin: 1rem 0;
}
th,
td {
  text-align: left;
  padding: 0.3rem 0.9rem 0.3rem 0;
  border-bottom: 1px solid var(--rule);
}
th {
  font-weight: 600;
}
/* A column of numbers, set to line up. */
td.points,
th.points {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
/* An orb's color ahead of its name, so "Blue" and "Indigo" are told
   apart as they are on the board. */
.orb {
  display: inline-block;
  width: 0.8em;
  height: 0.8em;
  margin-right: 0.5em;
  border-radius: 50%;
  border: 1px solid var(--muted);
  vertical-align: -0.05em;
}
/* The way into the game, the page's one button. */
.play {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 1.5rem;
  padding: 0 1.5rem;
  font-weight: 600;
  color: var(--button-ink);
  text-decoration: none;
  border-radius: 999px;
  background: var(--button);
}
footer {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.orb-sky-blue {
  background: #56b4e9;
}
.orb-yellow {
  background: #f0e442;
}
.orb-orange {
  background: #e69f00;
}
.orb-green {
  background: #007f5c;
}
.orb-pink {
  background: #cc79a7;
}
.orb-blue {
  background: #0072b2;
}
.orb-red {
  background: #b8262f;
}
.orb-indigo {
  background: #3a3360;
}
.orb-white {
  background: #ffffff;
}

/* The sections of a long page, to jump to, each a thumb tall. */
.contents {
  padding: 0;
  list-style: none;
  columns: 2 14rem;
}
.contents a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
