/*
 * The website's pages: the app's palette, its Dark theme unless the reader's
 * system asks for light. System fonts only, so a page makes no request to
 * another host (the privacy policy says so).
 */

:root {
  color-scheme: dark light;
  --bg: #202020;
  --text: #f9f6f0;
  --muted: #9c9c9c;
  --rule: #3a3a3a;
  --link: #e8e04d;
  --panel: #2a2a2a;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f9f6f0;
    --text: #1a1a1a;
    --muted: #6b6b6b;
    --rule: #d9d4c8;
    --link: #3f47c1;
    --panel: #efebe2;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

.page {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

header.site {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  color: var(--text);
  font-size: 1.375rem;
  font-weight: 700;
  text-decoration: none;
}

h1 {
  margin: 2rem 0 0.25rem;
  font-size: 2rem;
  line-height: 1.2;
}

h2 {
  margin: 2.25rem 0 0.5rem;
  font-size: 1.25rem;
  line-height: 1.3;
}

p,
ul {
  margin: 0 0 1rem;
}

h1 + p:not(.updated) {
  margin-top: 1rem;
}

ul {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.375rem;
}

a {
  color: var(--link);
  text-underline-offset: 0.15em;
}

.updated {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.summary {
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  background: var(--panel);
}

.summary ul {
  margin: 0;
}

footer.site {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9375rem;
}

footer.site a {
  color: inherit;
}
