html {
  color: var(--ts-color-ink);
  background: var(--ts-color-cream);
  font-family: var(--ts-font-display);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: inherit;
  background: inherit;
  font-size: var(--ts-font-size-body);
  line-height: var(--ts-line-body);
  text-rendering: optimizeLegibility;
}

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

img, svg, video { display: block; max-width: 100%; height: auto; }

h1, h2, h3, p { margin-block-start: 0; }

h1, h2, h3, a {
  overflow-wrap: anywhere;
  text-wrap: balance;
}

p { text-wrap: pretty; }

a { color: inherit; text-underline-offset: 0.2em; }

:focus-visible {
  outline: 3px solid var(--ts-color-amber);
  outline-offset: 4px;
}

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

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