/* ==========================================================================
   Modern reset — modest version of Andy Bell's reset.
   Strips browser defaults so we style from a known baseline.
   ========================================================================== */

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

* { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; }

html, body { height: 100%; }

/* Prevent any single element from pushing the page wider than the viewport.
   `overflow-x: clip` is preferred over `hidden` — no new scroll context. */
html, body { overflow-x: clip; }

body { line-height: 1.5; text-rendering: optimizeLegibility; }

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

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

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

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

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 { line-height: 1.15; text-wrap: balance; }

p { text-wrap: pretty; }

/* Respect reduced-motion preferences. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Focus ring — visible only for keyboard users. */
:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

:focus:not(:focus-visible) { outline: none; }
