/* Gizmo: text only. System fonts, no images, no scripts. */

:root {
  color-scheme: light dark;
  --blue: #2f6fdb;
  --text: #14171f;
  --muted: #596273;
  --line: #e1e4ea;
  --bg: #fff;
  --width: min(40rem, 100% - 2rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --blue: #7aa7f7;
    --text: #e8eaee;
    --muted: #9ea6b4;
    --line: #2a2f3a;
    --bg: #12141a;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.top, main, footer { width: var(--width); margin-inline: auto; }

a { color: var(--blue); text-underline-offset: .15em; }
a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 2px; }

/* The header: the name, and where you are */
.top { padding: 1.5rem 0 0; }
.top nav { display: flex; flex-wrap: wrap; gap: .5rem; align-items: baseline; color: var(--muted); }
.top a { color: var(--muted); text-decoration: none; }
.top a:hover { color: var(--blue); }
.top .brand { color: var(--text); font-weight: 800; font-size: 1.125rem; letter-spacing: -.01em; }

h1 { font-size: clamp(1.75rem, 6vw, 2.25rem); line-height: 1.2; letter-spacing: -.02em; margin: 2.5rem 0 .75rem; }
h2 { font-size: 1.25rem; line-height: 1.3; margin: 0; }
main > h2 { margin-top: 3rem; }
.lede { font-size: 1.125rem; color: var(--muted); margin: 0 0 2.5rem; }

/* Titles that open a page: the text's colour, blue on hover */
.title { color: var(--text); font-weight: 600; text-decoration: none; }
a.title:hover { color: var(--blue); text-decoration: underline; }
a.title::after { content: " →"; color: var(--muted); font-weight: 400; }
a.title:hover::after { color: var(--blue); }
.soon { color: var(--muted); }

/* Lists of things, one between rules: categories, tools, more of the same */
.list, .parts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.list > li, .part { border-bottom: 1px solid var(--line); padding: 1.25rem 0; }
.list > li > p, .part > p { margin: .25rem 0 0; color: var(--muted); }
main > h2 + .list { margin-top: 1rem; }

/* Facts: a term, then its value and a plain-words note */
dl { display: grid; grid-template-columns: 5.5rem 1fr; gap: .375rem 1rem; margin: 1rem 0 0; }
dt { color: var(--muted); }
dd { margin: 0; }
dd small { display: block; color: var(--muted); font-size: .875rem; line-height: 1.5; }
.part dl { font-size: .9375rem; }

.pill {
  display: inline-block;
  margin-left: .5rem;
  padding: 0 .5rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: normal;
  color: var(--muted);
  vertical-align: .2em;
}

footer { margin-top: 4rem; padding: 0 0 3rem; color: var(--muted); font-size: .875rem; }
footer p { margin: 0 0 .5rem; }
