@layer base {
  @font-face {
    font-family: "Architects Daughter";
    src: url("../../ArchitectsDaughter-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
  }

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

  html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
    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(--wga-font-family-primary), var(--wga-font-family-fallback);
    font-size: var(--wga-font-size-base);
    font-weight: var(--wga-font-weight-normal);
    line-height: var(--wga-line-height-normal);
    color: var(--wga-color-text-primary);
    background-color: var(--wga-color-bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-block-size: 100vh;
    min-block-size: 100dvh;
  }

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

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

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

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

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

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

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

  p {
    text-wrap: pretty;
    max-inline-size: 70ch;
  }

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

  a:hover {
    color: var(--wga-color-forest-light);
    text-decoration: underline;
  }

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

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

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

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

  ul,
  ol {
    list-style-position: inside;
  }

  details summary {
    cursor: pointer;
    user-select: none;
  }

  details summary::-webkit-details-marker {
    display: none;
  }

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

  ::selection {
    background-color: var(--wga-color-forest-light);
    color: var(--wga-color-text-inverse);
  }
}
