/* Shared local foundations. */
*, *::before, *::after { box-sizing: border-box; }

html { font-family: var(--an-font-sans); }

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--an-font-sans);
  font-size: var(--an-type-body-size);
  line-height: var(--an-type-body-line);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button, input, select, textarea { font: inherit; }
img, svg { max-width: 100%; }
a { color: inherit; }

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

.an-shell {
  width: min(calc(100% - 4rem), var(--an-shell));
  margin-inline: auto;
}

.an-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

[hidden] { display: none !important; }

@media (max-width: 700px) {
  .an-shell { width: min(calc(100% - 1.75rem), var(--an-shell)); }
}

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