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

  html {
    font-size: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    scroll-behavior: smooth;
  }

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

    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }

  body {
    font-family: var(--mv-font-sans);
    font-size: var(--mv-font-size-base);
    font-weight: var(--mv-font-weight-normal);
    line-height: var(--mv-line-height-relaxed);
    color: var(--mv-color-text);
    background-color: var(--mv-color-background);
    min-height: 100vh;
    overflow-x: hidden;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-weight: var(--mv-font-weight-bold);
    line-height: var(--mv-line-height-tight);
    text-wrap: balance;
    margin-bottom: var(--mv-spacing-md);
  }

  h1 {
    font-size: var(--mv-font-size-4xl);
  }

  h2 {
    font-size: var(--mv-font-size-3xl);
  }

  h3 {
    font-size: var(--mv-font-size-2xl);
  }

  h4 {
    font-size: var(--mv-font-size-xl);
  }

  h5 {
    font-size: var(--mv-font-size-lg);
  }

  h6 {
    font-size: var(--mv-font-size-base);
  }

  p {
    text-wrap: pretty;
    margin-bottom: var(--mv-spacing-md);
  }

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

  a:hover {
    color: var(--mv-color-primary-dark);
    text-decoration: underline;
  }

  a:focus-visible {
    outline: 2px solid var(--mv-color-primary);
    outline-offset: 2px;
    border-radius: var(--mv-radius-sm);
  }

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

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

  button {
    cursor: pointer;
    background: none;
    border: none;
  }

  ul[role="list"],
  ol[role="list"] {
    list-style: none;
  }

  .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;
  }
}
