@layer base, components, utilities;
@layer base {
  *, *::before, *::after {
    box-sizing: border-box;
  }

  body {
    background-color: var(--color-bg);
    color: var(--color-text-main);
    font-family: var(--font-sans);
    font-size: var(--size-step-0);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
  }

  h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.1;
    color: var(--color-text-main);
    letter-spacing: -0.02em;
  }

  p {
    color: var(--color-text-muted);
  }

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

  ul, ol {
    list-style: none;
  }

  button, .btn {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
  }
}

@layer utilities {
  .l-container {
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: var(--space-m);
  }

  .l-stack > * + * {
    margin-top: var(--stack-space, 1em);
  }

  .text-gradient {
    background: linear-gradient(to bottom right, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}
