@layer base {
  body {
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: none;
    background: var(--color-surface);
    color: var(--color-text);
    interpolate-size: allow-keywords;
    line-height: 1.375;
    max-inline-size: 100vw;
    scroll-behavior: auto;
    text-rendering: optimizeLegibility;
    text-size-adjust: none;
  }

  :where(ul, ol) {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  :where(button, [type=submit], .btn) {
    border: none;
    padding: var(--block-space-half) var(--inline-space);

    &:where(:focus-visible) {
      outline: 2px solid oklch(10% 0 0);
      outline-offset: 2px;
    }
  }

  a {
    color: var(--color-link);
    text-decoration: none;

    &:not([class]) {
      text-decoration: underline;
      text-decoration-skip-ink: auto;
    }
  }

  hr {
    color: var(--color-text-softest);
    height: 1px;
    width: 100%;
    margin: 0;
    opacity: 0.5;
  }
}