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

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

  body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--color-black);
    background: linear-gradient(135deg, var(--color-body-bg) 0%, oklch(var(--lch-canvas-warm) / 0.8) 100%);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: var(--line-height-tight);
    color: var(--color-gray-800);
  }

  h1 { font-size: var(--font-size-3xl); }
  h2 { font-size: var(--font-size-2xl); }
  h3 { font-size: var(--font-size-xl); }

  p {
    color: var(--color-gray-600);
    line-height: var(--line-height-relaxed);
  }

  a {
    color: var(--color-primary-600);
    text-decoration: underline;
  }

  a:hover {
    color: var(--color-primary-700);
  }

  :is(button, input, select, textarea, .btn) {
    &:where(:focus-visible) {
      outline: 2px solid var(--color-primary-500);
      outline-offset: 1px;
    }
  }

  :where(ol, ul):where([role="list"]) {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .sr-only {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
  }

  @media (min-width: 100ch) {
    html { font-size: 1.1875rem; }
  }
}
