* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; text-size-adjust: 100%; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); font-family: var(--font-ui); line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--primary-2); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
img, svg { max-width: 100%; }
button { cursor: pointer; }
h1,h2,h3,p { overflow-wrap: anywhere; }
h1,h2,h3 { color: var(--text-strong); }
code,pre { font-family: var(--font-mono); }

:focus-visible { outline: 3px solid color-mix(in srgb, var(--focus) 38%, transparent); outline-offset: 3px; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 9999; background: var(--surface); color: var(--text); padding: .75rem 1rem; border-radius: var(--r-sm); box-shadow: var(--shadow-md); }
.skip-link:focus { top: 1rem; }
.sr-only { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }

::selection { background: color-mix(in srgb, var(--primary-2) 22%, white); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation-duration: .001ms!important; animation-iteration-count: 1!important; transition-duration: .001ms!important; scroll-behavior:auto!important; }
}
@media (prefers-contrast: more) {
  :root { --line:#98a2b3; --muted:#344054; }
  .card,.btn,.field input,.field select,.field textarea { border-width:2px; }
}
