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

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  min-width: 20rem;
  margin: 0;
  color: var(--color-text);
  background: var(--color-paper);
  font-family: var(--font-sans);
  font-size: var(--type-body);
  font-synthesis: none;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p {
  margin-block-start: 0;
}

h1,
h2,
h3 {
  line-height: 1;
  text-wrap: balance;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

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

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

:focus-visible {
  outline: 0.125rem solid var(--color-text);
  outline-offset: 0.1875rem;
  box-shadow: 0 0 0 0.1875rem var(--color-brand);
}

.skip-link {
  position: fixed;
  z-index: 100;
  min-height: 2.75rem;
  inset-block-start: var(--space-2);
  inset-inline-start: var(--space-2);
  padding: var(--space-2) var(--space-3);
  color: var(--color-paper);
  background: var(--color-text);
  border-radius: var(--radius);
  transform: translateY(calc(-100% - var(--space-4)));
}

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

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

.data-value {
  font-variant-numeric: tabular-nums;
}
