@layer gfv-reset, gfv-base;

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

  * {
    margin: 0;
  }

  body {
    line-height: var(--gfv-line-height-normal);
    -webkit-font-smoothing: antialiased;
  }

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

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

  p,
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    overflow-wrap: break-word;
  }

  #root,
  #__next {
    isolation: isolate;
  }
}

@layer gfv-base {
  html {
    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(--gfv-font-family-base);
    font-size: var(--gfv-font-size-base);
    font-weight: var(--gfv-font-weight-normal);
    color: var(--gfv-text-primary);
    background-color: var(--gfv-surface);
    transition: color var(--gfv-transition-base), background-color var(--gfv-transition-base);
  }

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

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

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

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

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

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

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

  p {
    text-wrap: pretty;
    line-height: var(--gfv-line-height-relaxed);
  }

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

  a:hover {
    color: var(--gfv-brand-700);
    text-decoration: underline;
  }

  [data-theme="dark"] a:hover {
    color: var(--gfv-brand-300);
  }

  img {
    height: auto;
  }

  button {
    cursor: pointer;
  }

  input,
  textarea {
    background-color: var(--gfv-surface);
    color: var(--gfv-text-primary);
  }

  :focus-visible {
    outline: 2px solid var(--gfv-brand-500);
    outline-offset: 2px;
  }
}
