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

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font: var(--font-weight-regular) var(--font-size-body)/var(--line-height-text) var(--font-text);
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: var(--stroke-thin); }
a:hover { text-decoration-thickness: var(--stroke-strong); }

:focus-visible { outline: var(--focus-outline); outline-offset: var(--focus-outline-offset); }
main:focus-visible { outline: 0; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--font-weight-light);
  line-height: var(--line-height-tight);
  letter-spacing: -.01em;
  text-wrap: balance;
}

p, li, dd { text-wrap: pretty; }
p { margin: 0 0 var(--space-2); max-width: var(--text-max-width); }

.container {
  max-width: var(--container-max-width);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.section-title { font-size: var(--font-size-h2); margin-bottom: var(--space-4); }

.skip-link { position: absolute; left: var(--offscreen-position); }
.skip-link:focus { left: var(--space-2); top: var(--space-2); z-index: 50; padding: var(--space-1) var(--space-2); background: var(--color-paper); }

.visually-hidden,
.screen-reader-text,
.wpcf7 .screen-reader-response {
  position: absolute;
  width: var(--visually-hidden-size);
  height: var(--visually-hidden-size);
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
