html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
body {
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--font-size-300);
  line-height: var(--line-height-body);
  overflow-x: hidden;
}
body:has(dialog[open]) { overflow: hidden; }
h1, h2, h3 { font-family: var(--font-display); font-kerning: normal; font-weight: 500; text-wrap: balance; }
h1 { font-size: var(--font-size-800); line-height: var(--line-height-tight); letter-spacing: -0.032em; }
h2 { font-size: var(--font-size-700); line-height: var(--line-height-heading); letter-spacing: -0.026em; }
h3 { font-size: var(--font-size-500); line-height: 1.2; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration-thickness: 0.06em; text-underline-offset: 0.2em; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
address { font-style: normal; }
::selection { background: var(--color-primary); color: var(--color-white); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
