/* One stylesheet, no dependencies. GitHub Pages serves these files as-is, so anything
   fetched from a CDN would be a third party watching visitors read a privacy policy. */

:root {
  color-scheme: light dark;
  --bg: #fbfbfd;
  --panel: #ffffff;
  --ink: #1a1a1f;
  --muted: #5b5b66;
  --line: #e3e3ea;
  --accent: #0b6bcb;
  --ok: #1a7f4b;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131317;
    --panel: #1b1b21;
    --ink: #ececf1;
    --muted: #a0a0ad;
    --line: #2c2c35;
    --accent: #6aa9f0;
    --ok: #5dc98d;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 20px 80px;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 720px; margin: 0 auto; }

header.site {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 34px 0 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}

header.site .mark {
  width: 40px; height: 40px; flex: none;
  border-radius: 9px;
  background: linear-gradient(160deg, var(--accent), #7b4fd0);
  display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 19px;
}

header.site h1 { font-size: 19px; margin: 0; letter-spacing: -0.01em; }
header.site p { margin: 2px 0 0; font-size: 14px; color: var(--muted); }

nav { margin-left: auto; display: flex; gap: 20px; flex-wrap: wrap; }
nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
nav a:hover, nav a[aria-current] { color: var(--ink); }

h2 { font-size: 27px; letter-spacing: -0.02em; margin: 44px 0 14px; line-height: 1.25; }
h3 { font-size: 19px; margin: 34px 0 10px; }
h2:first-of-type { margin-top: 0; }

p, li { color: var(--ink); }
.lead { font-size: 20px; line-height: 1.55; color: var(--muted); }
.muted { color: var(--muted); }
small { color: var(--muted); font-size: 14px; }

a { color: var(--accent); }

ul { padding-left: 22px; }
li { margin: 8px 0; }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 22px 24px;
  margin: 22px 0;
}

.card h3 { margin-top: 0; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

.stamp {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ok);
  border: 1px solid currentColor;
  border-radius: 100px;
  padding: 3px 11px;
  margin-bottom: 12px;
}

table { border-collapse: collapse; width: 100%; margin: 20px 0; font-size: 16px; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; width: 38%; }

code {
  font: 0.88em ui-monospace, SFMono-Regular, Menlo, monospace;
  background: color-mix(in srgb, var(--ink) 7%, transparent);
  padding: 1.5px 5px;
  border-radius: 5px;
}

footer {
  margin-top: 64px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

@media (max-width: 620px) {
  header.site { flex-wrap: wrap; }
  nav { margin-left: 0; width: 100%; }
  th, td { display: block; width: auto; }
  th { border-bottom: none; padding-bottom: 0; }
}
