/* reset.css — the ONLY stylesheet shared by every tool.

   Hand-written rather than an npm dependency: this is a no-build static site,
   and a vendored reset means no package manager, no version drift, and nothing
   to install before a tool will render.

   It resets. It does not style. No colours, no fonts, no spacing opinions
   beyond removing defaults — every one of those decisions belongs to the
   individual tool's own stylesheet, which builds its identity on top of this.

   If you find yourself wanting to add a look-and-feel rule here, it belongs in
   the tool's tool.css instead. */

/* ---- box model ---- */

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

/* ---- strip default margins ---- */

body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, pre {
  margin: 0;
}

/* ---- lists that carry a role lose their markers ---- */

ul[role="list"], ol[role="list"] {
  list-style: none;
  padding: 0;
}

/* ---- document ---- */

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html:focus-within { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  min-height: 100svh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeSpeed;
}

/* ---- headings and short text should not be over-tight ---- */

h1, h2, h3, h4, button, input, label {
  line-height: 1.1;
}

h1, h2, h3, h4 {
  text-wrap: balance;
  font-size: inherit;
  font-weight: inherit;
}

p, li, figcaption { text-wrap: pretty; }

/* ---- links inherit until told otherwise ---- */

a:not([class]) { text-decoration-skip-ink: auto; }

a { color: inherit; }

/* ---- media ---- */

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

img, video { height: auto; }

/* ---- forms inherit type: browsers do not do this by default ---- */

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

textarea:not([rows]) { min-height: 8em; }

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

/* Never remove the focus ring without replacing it. Tools override the style,
   never the existence. */
:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* ---- tables ---- */

table { border-collapse: collapse; border-spacing: 0; }

/* ---- anchored targets get breathing room ---- */

:target { scroll-margin-block: 5ex; }

/* ---- respect reduced motion ---- */

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

/* ---- utilities every tool needs, no visual opinion ---- */

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

[hidden] { display: none !important; }
