:root {
  color-scheme: light dark;
  --background: #fbfaff;
  --text: #1a1730;
  --muted: #5b5873;
  --link: #6d28d9;
  --border: #ddd8ef;
  --notice: #f1ecff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --background: #0b0a14;
    --text: #ece9f7;
    --muted: #aaa5c2;
    --link: #c4b5fd;
    --border: #2e2a44;
    --notice: #1c1733;
  }
}
* { box-sizing: border-box; }
html { background: var(--background); }
body {
  font: 16px/1.75 ui-rounded, system-ui, sans-serif;
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 24px;
  color: var(--text);
  overflow-wrap: anywhere;
}
header { border-bottom: 1px solid var(--border); padding-bottom: 20px; }
header > a { display: inline-flex; align-items: center; gap: 10px; font-size: 1.2rem; font-weight: 800; color: var(--text); text-decoration: none; }
header > a img { width: 32px; height: 32px; border-radius: 8px; }
nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 12px; }
nav a { display: inline-flex; align-items: center; min-height: 44px; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--link); outline-offset: 4px; border-radius: 2px; }
a[aria-current="page"] { font-weight: 700; }
main { padding: 20px 0; }
h1 { font-size: clamp(1.8rem, 5vw, 2.3rem); line-height: 1.25; }
h2 { font-size: 1.2rem; line-height: 1.4; margin-top: 2rem; }
h3 { font-size: 1.05rem; margin: 1.5rem 0 0.25rem; }
.date { color: var(--muted); }
.notice { padding: 16px; border-left: 4px solid var(--link); background: var(--notice); }
code { font-size: .95em; }
footer { margin-top: 24px; border-top: 1px solid var(--border); padding-top: 16px; }
footer p { color: var(--muted); }
.skip-link { position: absolute; top: 8px; left: 24px; transform: translateY(-200%); background: var(--background); padding: 8px 12px; }
.skip-link:focus { transform: translateY(0); }
