/* Element styles and the page layout */
@layer base {
  html {
    font-family: var(--font-sans);
    background-color: var(--color-surface);
    color: var(--color-text);
  }

  *,
  *::before,
  *::after {
    border-color: var(--color-border);
  }

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

  code,
  kbd,
  pre,
  samp {
    font-family: var(--font-mono);
  }

  /* Icons from the `svg` helper (avo-icons). Scoped styles do not reach helper output,
     so an icon takes its size from the font size and its color from the text color
     of the element around it. */
  svg.icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    flex-shrink: 0;
    vertical-align: -0.125em;
  }

  /* The page content goes above the background decorations */
  .main {
    position: relative;
    z-index: 10;
  }

  /* The main column of the page */
  .container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-padding);
  }
}
