/* =========================================================
   Modern Reset — V3
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  tab-size: 4;
  scroll-behavior: smooth;
  color-scheme: dark;
}

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

body {
  min-height: 100dvh;
  line-height: var(--lh-normal);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11", "kern";
}

img, picture, video, canvas, svg {
  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; }

p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }
ul, ol { list-style: none; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--blue);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: var(--r-sm);
  z-index: var(--z-modal);
  transition: top var(--dur-2) var(--ease-out-expo);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.skip-link:focus { top: 1rem; }

*:focus-visible {
  outline: 2px solid var(--blue-hi);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--blue);
  color: #fff;
}
