/* Plain CSS, no framework and no remote font: the pages must render fully with no
   JavaScript and no third-party request, which is what the OAuth review checks. */

:root {
  --text: #1f2328;
  --muted: #57606a;
  --accent: #4c3f9f;
  --rule: #d8dee4;
  --bg: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

main {
  max-width: 46rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 5rem;
}

h1 {
  font-size: 2.1rem;
  line-height: 1.2;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.2rem;
  margin: 2.5rem 0 0.6rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--rule);
}

p { margin: 0 0 1rem; }

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

ul {
  margin: 0 0 1rem;
  padding-left: 1.4rem;
}

li { margin-bottom: 0.5rem; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover { text-decoration-thickness: 2px; }

code {
  background: #f2f2f5;
  border-radius: 4px;
  padding: 0.1em 0.35em;
  font-size: 0.9em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.back {
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

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

/* Respect a reader's dark mode preference without any script. */
@media (prefers-color-scheme: dark) {
  :root {
    --text: #e6edf3;
    --muted: #9198a1;
    --accent: #b0a6ff;
    --rule: #30363d;
    --bg: #0d1117;
  }
  code { background: #21262d; }
}
