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

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

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--color-page);
  color: var(--color-text);
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.25; margin: 0 0 var(--space-3); letter-spacing: -0.01em; }
h1 { font-size: var(--font-size-title); font-weight: 700; }
h2 { font-size: var(--font-size-large); font-weight: var(--font-weight-bold); }
h3 { font-size: var(--font-size-base); font-weight: var(--font-weight-bold); }
p { margin: 0 0 var(--space-4); }

a { color: var(--color-primary); text-underline-offset: 0.15em; }
a:hover { color: var(--color-primary-strong); }

:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-small); }

small, .text-muted { color: var(--color-text-muted); font-size: var(--font-size-small); }

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

.section { margin-top: var(--space-6); }
.section__title { display: flex; align-items: baseline; gap: var(--space-2); margin-bottom: var(--space-3); }
.section__count { color: var(--color-text-muted); font-weight: normal; }

@media (min-width: 1024px) {
  h1 { font-size: var(--font-size-display); }
}
