/*
 * Page defaults every app gets with the tokens: theme colours on the page, the text face, the focus
 * ring, and no motion when the device asks for reduced motion. Components add their own styles on
 * top; nothing here styles a specific element beyond the document.
 */

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

body {
  margin: 0;
  background: var(--tw-color-bg);
  color: var(--tw-color-text);
  font: var(--tw-font-body);
  -webkit-font-smoothing: antialiased;
}

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

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

/* One focus ring for everything focusable (design/brief.md, "Chosen direction"). An outline, not a
   shadow, so forced-colours mode (Windows high contrast) still shows it. */
:focus-visible {
  outline: var(--tw-focus-width) solid var(--tw-focus-color);
  outline-offset: var(--tw-focus-gap);
}

/* Covers animations written without tokens too (C2 handoff, "Motion"). */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0s !important;
    animation-delay: 0s !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
}
