@layer defaults {
  html {
    font-size: 100%;
  }

  body {
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;

    color: var(--color-ink);
    background-color: var(--color-canvas);

    /* font-family: var(--font-sans); */
    interpolate-size: allow-keywords;

    /* line-height: 1.375; */
    max-inline-size: 100vw;
    scroll-behavior: auto;
    text-rendering: optimizelegibility;
    text-size-adjust: none;
  }

  a {
    text-decoration: none;
  }

  :where(ul, ol):where([role="list"]) {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  video {
    max-inline-size: 100%;
  }

  dialog {
    color: inherit;
    background: transparent;
  }

  :is(a, button, input, textarea, .switch, .btn) {
    transition-property: background-color, border-color, box-shadow, outline;
    touch-action: manipulation;

    /* Default disabled styles */
    &:where([disabled]) {
      cursor: not-allowed;
      opacity: 0.5;
      pointer-events: none;
    }
  }

  /* Printing */
  @page {
    margin: 1in;
  }

  @media print {
    .no-print {
      display: none;
    }
  }

  /* Turbo */
  turbo-frame,
  turbo-cable-stream-source,
  cable-ready-updates-for {
    display: contents;
  }

  /* Nicer scrollbars on Chrome 29+. This is intended for Windows machines, but */
  /* there's not a way to target Windows using CSS, so Chrome on Mac will have */
  /* slightly thinner scrollbars than normal. #C1C1C1 is the default color on Macs. */
  @media screen and (min-device-pixel-ratio:0) and (resolution >=.001dpcm) {
    * {
      scrollbar-color: #C1C1C1 transparent;
      scrollbar-width: thin;
    }
  }
}
