/* Lehké základy jsou bezpečné pro postupnou migraci stránek bez frameworku. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:where(html) {
  background: var(--dr-surface-page);
  scroll-behavior: smooth;
}

:where(body) {
  min-width: 20rem;
  margin: 0;
  overflow-x: hidden;
  color: var(--dr-text-primary);
  background: var(--dr-surface-page);
  font-family: var(--dr-font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

:where(img, svg) {
  display: block;
  max-width: 100%;
}

:where(a) {
  color: inherit;
}

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

:where(:focus-visible) {
  outline: 3px solid var(--dr-focus-ring);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  :where(html) {
    scroll-behavior: auto;
  }

  :where(*, *::before, *::after) {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
