/* auto-design base — linked by every page before the client's tokens.css.
   Reset, sensible defaults, focus and motion handling. No visual opinions. */

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body, system-ui, sans-serif);
  font-size: var(--text-md, 1rem);
  line-height: var(--leading-body, 1.55);
  color: var(--color-ink, #141414);
  background: var(--color-surface, #fff);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, ul, ol, dl {
  margin: 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-display, inherit);
  line-height: var(--leading-tight, 1.1);
  text-wrap: balance;
}

p {
  max-width: var(--measure, 65ch);
  text-wrap: pretty;
}

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

a {
  color: inherit;
}

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

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--color-accent, currentColor);
  outline-offset: 3px;
}

:focus:not(:focus-visible) {
  outline: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@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;
  }
}
