/* First cascade file - declares layer order once for the whole app. */
@layer base, tokens, layout, components, content, themes, vendor;

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

  html {
    scroll-behavior: smooth;
  }

  body {
    background: var(--color-bg);
    color: var(--color-on-surface);
    font-family: var(--font-body);
    font-weight: var(--weight-regular);
    line-height: var(--leading-normal);
    overflow-x: hidden;
  }
}

/* Utilities live outside all layers so they always win. */
.hidden {
  display: none !important;
}

.sr-only {
  --sr-only-size: 1px;

  position: absolute;
  width: var(--sr-only-size);
  height: var(--sr-only-size);
  padding: 0;
  margin: calc(var(--sr-only-size) * -1);
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
