/* Base: how plain HTML looks before any component styles. Tokens only. */

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--c-text);
  background-color: var(--c-page);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: var(--lh-heading);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
h5 { font-size: var(--fs-lead); }
h6 { font-size: var(--fs-body); }

small { font-size: var(--fs-small); }

a {
  color: var(--c-action);
  text-underline-offset: 0.2em;
}

/* iPhone Safari: never below 16px, or it zooms into the field on focus. */
input,
select,
textarea {
  font-size: var(--fs-body);
}

/* Visible keyboard focus on everything clickable (mouse clicks do not show it): Bootstrap's soft ring.
   The transparent outline still shows in Windows high-contrast mode, which hides box-shadows. */
:focus-visible {
  outline: var(--border-1) solid transparent;
  box-shadow: var(--focus-ring);
}

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