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

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

  body {
    margin: 0;
    min-height: 100vh;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: var(--size-16);
    line-height: var(--leading-normal);
  }

  h1,
  h2,
  h3,
  h4 {
    margin: 0 0 var(--space-3);
    color: var(--color-text);
    line-height: var(--leading-tight);
    font-weight: var(--weight-bold);
  }

  h1 {
    font-size: var(--size-36);
  }

  h2 {
    font-size: var(--size-24);
  }

  h3 {
    font-size: var(--size-20);
  }

  h4 {
    font-size: var(--size-18);
  }

  p {
    margin: 0 0 var(--space-4);
    max-width: 70ch;
  }

  a {
    color: var(--color-brand);
    text-underline-offset: 0.15em;
  }

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

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

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

  [tabindex="-1"]:focus:not(:focus-visible),
  h1[tabindex="-1"]:focus {
    outline: none;
  }

  .skip-link {
    position: absolute;
    left: var(--space-4);
    top: -100px;
    padding: var(--space-2) var(--space-4);
    background: var(--color-brand);
    color: var(--color-on-brand);
    border-radius: var(--radius-sm);
    z-index: 100;
  }

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

  .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}
