@layer base { :root { color: var(--color-content); background: var(--color-surface); font-family: var(--font-sans); /* 1105/15-05. The route loading surface fits a 720 px window and the home page does not, so the first render added a classic (non-overlay) scrollbar and pushed the header's right side 15 px left (CLS 0.0002 at 1280x720 and 1366x657). The gutter is reserved from the first frame; overlay scrollbars take no space either way. */ scrollbar-gutter: stable; } body { margin: 0; min-width: 20rem; min-height: 100vh; /* 1106/08-03. The same colour as the root background. The page covers the window except the scrollbar gutter, so the root background shows only there, where primitives.css darkens it under an open modal. */ background: var(--color-surface); } /* 08-06. Korean breaks between words, not between syllables. A word too long for its box still wraps. `break-word`, not `anywhere`: `anywhere` also shrinks min-content, so a squeezed flex item (a header button) would split its label again. */ :lang(ko) { word-break: keep-all; overflow-wrap: break-word; } button, input, textarea, select { font: inherit; } a { color: inherit; } h1, h2, p { margin-block-start: 0; } h1 { font-size: var(--font-size-heading-1); line-height: var(--line-height-heading-1); letter-spacing: -0.04em; } /* 08-04. Tailwind's preflight resets headings to body text; each level gets its own step so a section title does not read like a paragraph. */ h2, h3, h4 { font-weight: var(--font-weight-heading); line-height: var(--line-height-tight); } h2 { font-size: var(--font-size-heading-2); } h3 { font-size: var(--font-size-heading-3); } h4 { font-size: var(--font-size-heading-4); } :focus-visible { outline: 0.1875rem solid var(--color-focus); outline-offset: 0.1875rem; } }