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

html {
  scrollbar-gutter: stable; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  position: relative;
  background: var(--background-primary);
  color: var(--typography-primary);
  font-family: var(--font-sans);
  font-size: var(--fs-text);
  line-height: 1.3;
  letter-spacing: var(--ls-text);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }

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

a { color: inherit; text-decoration: none; }

button, input, textarea { font: inherit; letter-spacing: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--typography-primary);
  outline-offset: 3px;
}

.dn-header :focus-visible,
.dn-hero :focus-visible,
.dn-footer :focus-visible {
  outline-color: var(--typography-tertiary);
}

.dn-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

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

.dn-skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--button-primary); color: var(--typography-primary);
  padding: 12px 20px; border-radius: var(--radius);
}
.dn-skip-link:focus { top: 16px; }
