* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Yu Gothic', 'Hiragino Kaku Gothic ProN', Meiryo, system-ui, sans-serif; line-height: 1.8; overflow-wrap: anywhere; }
a { color: var(--accent); text-underline-offset: .22em; }
a:hover { color: var(--text); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.4; }
h1 { font-size: clamp(1.9rem, 5vw, 3.3rem); letter-spacing: .015em; }
h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); }
h3 { font-size: 1.12rem; }
p:last-child, ul:last-child { margin-bottom: 0; }
[id] { scroll-margin-top: 7rem; }
.container { width: min(var(--max-width), calc(100% - 40px)); margin-inline: auto; }
.muted { color: var(--muted); }
@media (max-width: 600px) { .container { width: calc(100% - 32px); } [id] { scroll-margin-top: 11rem; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
