/* Reset and element defaults. Nothing here knows about a specific page. */

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

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

/* Smooth in-page jumps (Benefits, See What We Do) without fighting the sticky
   header or motion-sensitive visitors. */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
html { scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font: var(--t-body);
  color: var(--c-body);
  background: var(--c-surface);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

/* No `text-wrap: balance` on headings and no `pretty` on copy, however much
   they flatter the type. Both re-break lines the browser would otherwise fill
   greedily, and the clone — the thing we have to land on — wraps greedily. The
   MB hero's heading is the case that caught it: balance chose 238/367/367
   ("GENERATE / MORE QUOTING / OPPORTUNITIES") because that lowers the widest
   line, where the clone fills and gets 385/220/367 ("GENERATE MORE / QUOTING /
   OPPORTUNITIES"). Same height, same box, different words on every line, and
   nothing that measures boxes will ever see it. */
h1, h2, h3, h4 { color: var(--c-ink); }
h1 { font: var(--t-h1); letter-spacing: var(--ls-h1); color: var(--c-ink-strong); }
h2 { font: var(--t-h2); }
h3 { font: var(--t-h3); letter-spacing: var(--ls-h3); }

p + p { margin-top: 1rem; }

a { color: var(--c-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:where(a, button, input, summary):focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Visible only to screen readers, but still focusable. */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 8px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--c-accent);
  color: #fff;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: top .15s ease;
}
.skip-link:focus { top: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
