:root {
  color-scheme: light dark;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --link: #2e7d32;
  --rule: #d2d2d7;
  --ground: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --link: #7fd17f;
    --rule: #3a3a3c;
    --ground: #000000;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

main {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2.5rem 1rem 4rem;
}

nav.lang {
  display: flex;
  justify-content: flex-end;
  font-size: 0.9rem;
}

h1 { font-size: 2rem; line-height: 1.2; margin: 1.5rem 0 0.25rem; }
h2 { font-size: 1.2rem; margin: 2.25rem 0 0.5rem; }
p, ul { margin: 0 0 1rem; }
ul { padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }

.tagline { color: var(--muted); font-size: 1.15rem; margin-bottom: 2rem; }
.muted { color: var(--muted); font-size: 0.9rem; }

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

footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9rem;
  color: var(--muted);
}

footer a { margin-right: 1rem; }
