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

  html {
    scroll-behavior: smooth;
    text-size-adjust: 100%;
  }

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

  body {
    margin: 0;
  }

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

  input, button, textarea, select {
    font: inherit;
  }
}

@layer base {
  body {
    font-family: var(--font-family-body);
    font-size: var(--font-size-body);
    line-height: var(--line-height-base);
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

  a {
    color: var(--color-primary);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
  }

  a:hover {
    color: var(--color-primary-hover);
  }

  :focus-visible {
    outline: 2px solid color-mix(in srgb, var(--color-primary), transparent 30%);
    outline-offset: 2px;
  }

  h1, h2, h3, h4 {
    font-family: var(--font-family-heading);
    line-height: var(--line-height-tight);
    margin: 0 0 var(--space-4);
    letter-spacing: -0.02em;
  }

  h1 { font-size: var(--font-size-h1); }
  h2 { font-size: var(--font-size-h2); }
  h3 { font-size: var(--font-size-h3); }
  h4 { font-size: var(--font-size-h4); }

  p {
    margin: 0 0 var(--space-4);
    overflow-wrap: break-word;
  }

  p:last-child {
    margin-bottom: 0;
  }

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

  hr {
    border: 0;
    border-top: 1px solid var(--color-border);
    margin: var(--space-8) 0;
  }
}

@layer utilities {
  .onepager-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}
