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

html {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  background-color: var(--color-canvas);
  color: var(--color-text);
}

body {
  margin: 0;
  min-width: 0;
  background-color: var(--color-canvas);
}

.skip-link {
  position: fixed;
  z-index: 10;
  inset-block-start: var(--space-2);
  inset-inline-start: var(--space-2);
  padding: var(--space-2) var(--space-3);
  color: var(--color-surface);
  background: var(--color-primary-strong);
  border-radius: var(--radius-small);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

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

button,
input,
a {
  touch-action: manipulation;
}

:focus-visible {
  outline: 0.2rem solid var(--color-focus);
  outline-offset: 0.15rem;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  line-height: 1.15;
}

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