@layer base {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  html {
    -webkit-text-size-adjust: 100%;
    -moz-tab-size: 4;
    tab-size: 4;
    scroll-behavior: smooth;
  }

  body {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-normal);
    line-height: 1.6;
    color: var(--color-ink-primary);
    background-color: var(--color-canvas-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-weight: var(--font-weight-semibold);
    line-height: 1.2;
    margin-bottom: var(--space-4);
  }

  h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
  }
  h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
  }
  h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
  }
  h4 {
    font-size: 1.125rem;
  }

  p {
    margin-bottom: var(--space-4);
  }

  a {
    color: var(--color-brand-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
  }

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

  a:focus-visible {
    outline: 2px solid var(--color-brand-primary);
    outline-offset: 2px;
  }

  button {
    font-family: inherit;
    font-size: inherit;
    border: none;
    background: none;
    cursor: pointer;
  }

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

  ul,
  ol {
    list-style: none;
  }

  input,
  textarea,
  select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
  }

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

  .skiplink {
    position: absolute;
    top: -100px;
    left: var(--space-4);
    z-index: var(--z-toast);
    padding: var(--space-3) var(--space-5);
    background: var(--color-brand-primary);
    color: white;
    border-radius: var(--radius-md);
    font-weight: var(--font-weight-semibold);
  }

  .skiplink:focus {
    top: var(--space-4);
  }
}
