//! Element defaults: the reset, the body type, links, headings and focus. Nothing here is a class; //! a page gets its look from elements it writes plainly, and from the component classes. *, *::before, *::after { box-sizing: border-box; } html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; } body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-sans); font-size: 1rem; line-height: 1.55; -webkit-font-smoothing: antialiased; } h1, h2, h3 { line-height: 1.25; margin: 0 0 var(--space-3); font-weight: 650; letter-spacing: -0.01em; } h1 { font-size: var(--text-xl); } h2 { font-size: var(--text-lg); } h3 { font-size: 1rem; } p { margin: 0 0 var(--space-3); } a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.2em; } a:hover { color: var(--accent-strong); } img, svg { display: block; max-width: 100%; } code, kbd, pre { font-family: var(--font-mono); font-size: 0.92em; } :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; } ::selection { background: var(--accent-soft); } // The `hidden` attribute must win over any display rule a component sets. [hidden] { display: none !important; } // Visible only to screen readers. .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; } // The first focusable element. It is off screen until a keyboard user tabs to it. .skip-link { position: absolute; top: var(--space-2); left: var(--space-2); z-index: 100; padding: var(--space-2) var(--space-3); background: var(--surface); color: var(--text); border-radius: var(--radius-sm); box-shadow: var(--shadow-lift); transform: translateY(-200%); } .skip-link:focus { transform: none; }