*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scrollbar-color: var(--muted) var(--paper); scroll-padding-top: 96px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: var(--text-md); line-height: 1.55; -webkit-font-smoothing: antialiased; caret-color: var(--accent); }
::selection { background: color-mix(in srgb, var(--accent) 24%, transparent); color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-synthesis: none; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
p, ul, ol, dl, figure, table { margin: 0; }
p { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
img, video { max-width: 100%; height: auto; display: block; }
svg { display: block; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.num { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Slots for REAL screenshots. A slot has a fixed ratio (--r, and --r-m on phones). Put <img> (or <picture>) as the FIRST child
   and the built sample disappears; nothing else needs to change. The "Example" tag (data-keep) stays on top. */
[data-slot] { position: relative; overflow: hidden; aspect-ratio: var(--r, 16 / 10); }
[data-slot] > img, [data-slot] > picture { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
[data-slot] > picture > img, [data-slot] > img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
[data-slot]:has(> img, > picture) > :not(img):not(picture):not([data-keep]) { display: none !important; }
[data-slot] > [data-keep] { z-index: 2; }
@media (max-width: 43.75rem) { [data-slot] { aspect-ratio: var(--r-m, var(--r, 16 / 10)); } }

@media (max-width: 68.75rem) { :root { --gutter: 28px; } }
@media (max-width: 40rem) { :root { --gutter: 16px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }
