/* ==========================================================================
   Atelier Noir — Minimal Reset
   ========================================================================== */

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@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;
    scroll-behavior: auto !important;
  }
}

/* Deliberately no `height: 100%` on html/body: paired with overflow-x on
   body that would force an implicit `overflow-y: auto` (the CSS overflow
   spec's visible/non-visible pairing rule), turning body into its own
   bounded scroll container and breaking `position: sticky` throughout the
   site. Body is left auto-height; the visual viewport does the scrolling. */

body {
  background: var(--color-paper);
  color: var(--color-ink);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

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

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

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

table { border-collapse: collapse; }

::selection {
  background: var(--color-ink);
  color: var(--color-paper);
}

:focus-visible {
  outline: 2px solid var(--color-ink);
  outline-offset: 3px;
}
