:where(*, *::before, *::after) {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:where(html) {
  font-family: var(--font-sans);
  font-size: 1.0625rem; /* 17px base — scales all rem values up */
  line-height: var(--leading-normal);
  color: var(--color-ink);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

:where(body) {
  min-block-size: 100dvh;
}

:where(h1, h2, h3, h4, h5, h6) {
  font-family: var(--font-display);
  line-height: var(--leading-tight);
  font-weight: 600;
}

:where(a) {
  color: var(--color-primary);
  text-decoration: none;

  &:hover {
    color: var(--color-primary-hover);
  }
}

:where(img, svg, video) {
  display: block;
  max-inline-size: 100%;
  block-size: auto;
}

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

:where(button) {
  cursor: pointer;
  background: none;
  border: none;
}

:where(ul, ol) {
  list-style: none;
}

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

:where(::placeholder) {
  color: var(--color-ink-muted);
}

[hidden] {
  display: none !important;
}
