/* Declares the order of the three layers: reset < tokens (tokens.css) <
   components (app.css). The layout (#10) links reset.css first, so this
   statement comes first. The reset sets the box
   model and clears the user-agent styles of the elements the components use;
   app.css styles them again on the tokens. */
@layer reset, tokens, components;

@layer reset {
  *, *::before, *::after {
    box-sizing: border-box;
  }
  body, h1, h2, h3, p, dl, dd, ol, ul, pre {
    margin: 0;
  }
  ol, ul {
    padding: 0;
  }
  ul {
    list-style: none;
  }
  [popover], dialog {
    padding: 0;
    border: 0;
    color: inherit;
    background: none;
  }
  html {
    /* Stops mobile browsers enlarging text on rotation; 100%, not none,
       keeps the user's zoom. */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
  button, input, select {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    font: inherit;
    color: inherit;
    text-align: inherit;
  }
  h1, h2, h3 {
    font-size: inherit;
    font-weight: inherit;
  }
  h1, h2, h3, p {
    overflow-wrap: break-word;
  }
  /* The disclosure triangle: ::marker of the list-item summary, and
     ::-webkit-details-marker in Safari before 18.4. */
  summary {
    list-style: none;
    &::-webkit-details-marker {
      display: none;
    }
  }
}
