/* Element resets and typographic defaults. No layout or component rules here. */
@layer base {
  /* Self-hosted under app/static/vendor/fonts/ (VENDOR.md pins the source
     URLs and explains the latin-only subset and the IBM Plex Mono
     exception). Referenced by --font-serif/--font-sans/--font-mono in
     tokens.css. */
  @font-face {
    font-family: "Fraunces";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../vendor/fonts/fraunces-variable-latin.woff2") format("woff2");
  }

  @font-face {
    font-family: "Source Sans 3";
    font-style: normal;
    font-weight: 200 900;
    font-display: swap;
    src: url("../vendor/fonts/source-sans-3-variable-latin.woff2") format("woff2");
  }

  @font-face {
    font-family: "IBM Plex Mono";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../vendor/fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
  }

  @font-face {
    font-family: "IBM Plex Mono";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../vendor/fonts/ibm-plex-mono-600-latin.woff2") format("woff2");
  }

  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

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

  body {
    margin: 0;
    background: var(--color-paper);
    color: var(--color-ink);
    font-family: var(--font-sans);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    -webkit-font-smoothing: antialiased;
  }

  h1,
  h2,
  h3,
  h4 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: var(--line-height-tight);
  }

  h1,
  h2,
  h3,
  h4,
  p,
  figure,
  ul,
  ol {
    margin: 0;
  }

  img,
  picture,
  svg,
  video,
  canvas {
    display: block;
    max-width: 100%;
  }

  button,
  input,
  select,
  textarea {
    font: inherit;
    color: inherit;
  }

  a {
    color: var(--color-brand-strong);
  }

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

  [hidden] {
    display: none !important;
  }

  /* Keeps a native control (e.g. a file input triggered by its <label>) usable
     by assistive tech and the keyboard while invisible on screen. */
  .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}
