:root {
  color-scheme: light dark;
  --background: #f1f6fb;
  --surface: #ffffff;
  --text: #192f43;
  --secondary: #586b80;
  --accent: #2164ab;
  --border: #dbe4ed;
}
@media (prefers-color-scheme: dark) {
  :root {
    --background: #101a25;
    --surface: #192633;
    --text: #edf3f9;
    --secondary: #bcc9d7;
    --accent: #8ec2ff;
    --border: #334558;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.page { max-width: 52rem; margin: 0 auto; padding: 24px 20px 40px; }
nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 28px; }
a { color: var(--accent); text-underline-offset: 4px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
nav a { padding: 8px 0; }
nav [aria-current="page"] { font-weight: 700; }
main { padding: clamp(20px, 4vw, 40px); background: var(--surface); border-radius: 21px; }
h1 { margin: 0 0 12px; font-size: 2rem; line-height: 1.4; }
h2 { margin: 0 0 12px; font-size: 1.25rem; line-height: 1.55; }
section { margin-top: 32px; }
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }
.updated, footer { color: var(--secondary); }
footer { padding: 24px 0 0; font-size: 0.9rem; }
@media (min-width: 700px) { .page { padding-top: 40px; } }
@media (max-width: 480px) { h1 { font-size: 1.5rem; } }
