/* =========================================================================
   reset.css — minimal modern reset. No opinions beyond removing defaults.
   ========================================================================= */

*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Lenis drives scrolling; native smooth-scroll would fight it.
     Under reduced-motion we disable Lenis and re-enable this (animations.css). */
  scroll-behavior: auto;
}

body {
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* The UA rule for [hidden] is `display: none` at the lowest specificity, so
   ANY component rule that sets display beats it and the element stays laid
   out and clickable. That shipped once already: the closed assistant panel
   (display:flex, opacity:0) silently swallowed pointer events across a
   380x540 area of the page. Enforce the attribute's meaning globally. */
[hidden] { display: none !important; }

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

a { color: inherit; text-decoration: none; }

p,
h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }

h1, h2, h3, h4, h5, h6 { font-weight: inherit; font-size: inherit; }

ul, ol { list-style: none; padding: 0; }

/* Anything hidden from AT but needed for layout/announcements. */
.u-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Skip link — first tab stop. */
.skip-link {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -120%);
  z-index: var(--z-loader);
  padding: 12px 22px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  transition: transform .25s var(--ease-out);
}
.skip-link:focus-visible { transform: translate(-50%, 0); }
