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

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

body {
  margin: 0;
  background: var(--color-canvas);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
img, svg { display: block; flex-shrink: 0; }
table { border-collapse: collapse; }
a { color: var(--color-primary); text-underline-offset: 3px; }
a:hover { color: var(--color-primary-hover); }

:focus { outline: none; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); }
/* Fallback where :focus-visible is unsupported: keep a visible ring. */
@supports not selector(:focus-visible) {
  :focus { box-shadow: var(--focus-ring); }
}

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

.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 100;
  background: var(--color-surface); padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-control); box-shadow: var(--shadow-popover);
}
.skip-link:focus { top: var(--space-3); }

.num { font-variant-numeric: tabular-nums; }
.wrap-anywhere { overflow-wrap: break-word; }
.text-secondary { color: var(--color-text-secondary); }
.text-meta { font-size: var(--text-meta); line-height: var(--leading-meta); color: var(--color-text-secondary); }
.text-strong { font-weight: var(--weight-semibold); }

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