*{box-sizing:border-box}html{font-family:var(--font-ui);background:var(--page-bg);color:var(--ink);-webkit-text-size-adjust:100%}body{margin:0;min-height:100vh;background:var(--page-bg);color:var(--ink);overscroll-behavior-y:none;font-variant-numeric:tabular-nums}button,input,textarea,select{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}img{display:block;max-width:100%}h1,h2,h3,p{margin-top:0}h1,h2,h3,.display{font-family:var(--font-display);font-variation-settings:'SOFT' 50}:focus-visible{outline:3px solid var(--focus-ring);outline-offset:2px}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0)}


/* ============================================================
   v0.2.4 — cross-browser viewport containment
   Prevent route content from ever widening the mobile viewport.
   ============================================================ */
html,body{
  width:100%;
  max-width:100%;
  overflow-x:hidden;
}
@supports (overflow:clip){
  html,body{overflow-x:clip}
}
body{
  position:relative;
}
button{
  -webkit-appearance:none;
  appearance:none;
}


/* ============================================================
   v0.2.8 — Stable viewport / scrollbar geometry
   Route height must never change the horizontal center of the app.
   ============================================================ */

/* Modern browsers: reserve scrollbar space even on short routes.
   both-edges keeps the visual center mathematically stable. */
html{
  scrollbar-gutter:stable both-edges;
}

/* Fallback for desktop engines/configurations where the gutter
   is not honored consistently: always reserve vertical scrollbar. */
@media (min-width:768px) and (pointer:fine){
  html{
    overflow-y:scroll;
  }
}

/* Keep the document coordinate system deterministic. */
body{
  width:100%;
  min-width:0;
  max-width:100%;
}
