* {
  box-sizing: border-box;
}

body {
  color: #f6f6f6;
  background-color: #1d1b20;
  font: 90% system-ui;
  margin: 0;

  justify-content: center;
  justify-self: center;
  justify-items: center;

  align-items: center;
  align-content: center;
  align-self: center;

  vertical-align: middle;

  display: flex;
  flex-direction: column;

  height: 100dvh;
  width: 100dvw;

  overflow: hidden;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  -webkit-tap-highlight-color: transparent;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

::backdrop {
  background-color: var(--c-surface-container-lowest);
}

html {
  height: 100dvh;
  width: 100dvw;
  overflow-x: hidden;
}

img {
  width: 1.5em;
  height: 1.5em;
  filter: invert(100%);
  user-select: none;

  &.tint-light {
    filter: invert(70%) sepia(49%) saturate(1681%) hue-rotate(201deg)
      brightness(111%) contrast(112%);
  }

  &.tint-dark {
    filter: invert(18%) sepia(34%) saturate(2853%) hue-rotate(237deg)
      brightness(90%) contrast(108%);
  }
}

a {
  color: #222;
  text-decoration: none;
  /*transition: text-decoration 0.5s, filter 0.5s;*/
  display: inline;
}

@media (prefers-color-scheme: dark) {
  body {
    color: var(--c-surface-on);
    background: var(--c-surface-container-lowest);
  }

  body a {
    color: var(--c-surface-on);
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  padding: 0;
  margin: 0.25em;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-corner {
  width: 0;
  height: 0;
}

::-webkit-scrollbar-thumb {
  background-color: #d0bcff80;
  border-radius: 1em;
}

::-webkit-scrollbar-track-piece:start {
  background: transparent;
}

::-webkit-scrollbar-track-piece:end {
  background: transparent;
}

blockquote {
  border-left: 0.1em #aba5ad solid;
  margin: 1em;
  padding: 0.001em 1em 0.001em 1em;
}
