:root {
  color-scheme: light dark;
  --fg: #1d1d1f;
  --muted: #5c5c63;
  --bg: #fbfbfd;
  --rule: #d9d9de;
  --link: #0a5bd3;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fg: #ececf0;
    --muted: #a5a5ad;
    --bg: #141416;
    --rule: #34343a;
    --link: #6aa8ff;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 1rem/1.75 -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Segoe UI", sans-serif;
}
main, header, footer { max-width: 42rem; margin: 0 auto; padding: 0 1.25rem; }
header { padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
header .brand { font-weight: 600; color: var(--fg); text-decoration: none; }
footer { padding-bottom: 2.5rem; margin-top: 3rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: .875rem; }
h1 { font-size: 1.75rem; line-height: 1.3; margin: 2rem 0 .25rem; }
h2 { font-size: 1.2rem; line-height: 1.4; margin: 2.25rem 0 .5rem; }
h3 { font-size: 1rem; margin: 1.5rem 0 .25rem; }
p, ul { margin: .5rem 0 1rem; }
ul { padding-left: 1.25rem; }
li + li { margin-top: .25rem; }
a { color: var(--link); text-underline-offset: .15em; }
a:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 2px; }
.meta { color: var(--muted); font-size: .9rem; margin-top: 0; }
.links { list-style: none; padding: 0; }
.links li { margin: .5rem 0; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
