/* web/css/base.css: reset, type and the small utilities every screen uses.
   Tokens live in tokens.css; components in components.css; the app frame
   (rail, tabs, version bar) in shell.css. */

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;min-height:100dvh;background:var(--ground);color:var(--ink);font:400 13px/1.45 var(--body);-webkit-font-smoothing:antialiased}
h1,h2,h3,p,ol,ul,figure,blockquote,dl,dd{margin:0}
ol,ul{padding:0;list-style:none}
ol.steps-list{padding-left:18px;list-style:decimal}
img,svg{display:block;max-width:100%}
svg.ico{display:inline-block;flex:0 0 auto;vertical-align:-.15em}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
[hidden]{display:none!important}

/* type */
h1{font:800 26px/1.1 var(--display);letter-spacing:-.03em}
h2{font:800 17px/1.2 var(--display);letter-spacing:-.02em}
h3{font:800 15px/1.25 var(--display);letter-spacing:-.01em}
h1:focus{outline:none}
.lede{font-size:15px;color:var(--muted);line-height:1.5}
.meta{font-size:12.5px;color:var(--muted)}
.lbl{font-size:11px;font-weight:700;color:var(--faint)}
.fine{font-size:11.5px;color:var(--faint);line-height:1.5}
.num{font-family:var(--mono);font-variant-numeric:tabular-nums}
.big{font:800 26px/1 var(--display);letter-spacing:-.02em}
.ago{font-family:var(--mono);font-size:11px;color:var(--faint);white-space:nowrap}
.muted{color:var(--muted)}
.neg{color:var(--neg)}
.link{background:none;border:0;padding:0;font:inherit;color:var(--ink);font-weight:700;text-decoration:underline;text-underline-offset:3px;cursor:pointer}

/* focus: the gold ring, on light and dark alike */
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* small layout helpers */
.stack{display:flex;flex-direction:column;gap:var(--gap,12px)}
.cluster{display:flex;flex-wrap:wrap;align-items:center;gap:var(--gap,8px)}
.spread{display:flex;align-items:center;justify-content:space-between;gap:12px}
.grow{flex:1;min-width:0}
.vh{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
.grid-auto{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px;align-items:start}
