/* VLPremier Pro · base: reset, type, layout, reveal system, motion rules. DESIGN PROTOTYPE ONLY. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
html:has(dialog[open]) { overflow: hidden; }   /* scroll lock while a menu, modal, drawer or lightbox is open */
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--text);
  font: 400 var(--fs-body)/var(--lh-body) var(--font-display);
  overflow-x: clip; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p, figure, blockquote, dl, dd { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: var(--lh-tight); text-wrap: balance; }
h1 { font-size: var(--fs-h1); letter-spacing: -0.03em; line-height: 1; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.12; letter-spacing: -0.01em; }
h4 { font-size: 18px; letter-spacing: 0; line-height: 1.25; }
p { text-wrap: pretty; }
::selection { background: rgb(45 140 235 / .45); color: var(--text); }

/* focus: one ring everywhere (accent, 5.61 on bg / 5.02 on surface) */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
:focus:not(:focus-visible) { outline: none; }

/* utilities */
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -100px; z-index: var(--z-skip); padding: 10px 14px; border-radius: var(--r-ctl); background: var(--primary); color: var(--primary-ink); font-weight: 650; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--font-mono); }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.lede { color: var(--muted); font-size: var(--fs-lede); max-width: 58ch; }
.measure { max-width: 68ch; }
section { position: relative; }
.section { padding-block: var(--section-y); }
.section.flush-top { padding-top: 0; }
.section-head { max-width: 760px; margin-bottom: var(--s-14); }
.section-head > * + * { margin-top: var(--s-5); }
.stack > * + * { margin-top: var(--s-4); }

/* eyebrow (2026-10-29, owner: the dot + mono capitals + dash looked AI-made): a plain line of real information in sentence
   case, e.g. "Version 0.11.53, released October 28, 2026". As a link (a.rec) it leads to the details. */
.rec { display: inline-flex; align-items: center; gap: 8px; font: 500 var(--fs-sm)/1.4 var(--font-display); color: var(--muted); text-decoration: none; }
a.rec:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.rec + h1, .rec + h2 { margin-top: 18px; }

/* text links */
.link { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line-strong); transition: color var(--t-tap), border-color var(--t-tap); }
.link:hover { color: var(--accent-bright); border-color: var(--accent-bright); }
.link-arrow { color: var(--text); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 2px; transition: color var(--t-tap); }
.link-arrow:hover { color: var(--accent-bright); }
.prose a:not([class]) { color: var(--accent-bright); text-underline-offset: 3px; }

/* nav sentinel: created by site.js; the nav turns solid once it leaves view */
.nav-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 40px; pointer-events: none; }

/* ---------- reveal system ----------
   [data-reveal] rises 24px + fades in once when it enters view (site.js adds .in).
   Hidden only when scripting is on and motion is allowed, so no-JS and reduced-motion always show content.
   Never put data-reveal on above-the-fold content (it would flash). Stagger with style="--d:60ms". */
[data-reveal] { transition: opacity var(--t-reveal) var(--ease) var(--d, 0ms), transform var(--t-reveal) var(--ease) var(--d, 0ms); }
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  [data-reveal]:not(.in) { opacity: 0; transform: translateY(24px); }
}
/* 2026-10-26 (owner: "the page jiggles on reload"): a block still lowered by 24px must not be the element the browser
   restores the scroll position against (that put a reloaded page 24px off). */
[data-reveal] { overflow-anchor: none; }
/* Reload / Back: the page comes back as it was. site.js sets html.is-return; reveals are shown at once and the load-time
   animations (nav fade, hero rise) do not play again. Removed shortly after load so later transitions work normally. */
html.is-return :is([data-reveal], .nav, .nav *, .hero *, .cap .w) { transition: none !important; animation-delay: 0s !important; animation-duration: 0s !important; }

/* ---------- keyframes (transform / opacity only) ---------- */
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } }
@keyframes win { from { opacity: 0; transform: scale(.97); } }
@keyframes snap { from { opacity: 0; transform: translateX(-28px); } }
@keyframes scrub { from { transform: translateX(0); } to { transform: translateX(100%); } }
@keyframes hl { 0%, 11% { opacity: 1; } 12%, 100% { opacity: 0; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }

/* ---------- reduced motion: nothing loops, nothing travels ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
