:root,
html {
  /* Generate the colors here: https://codepen.io/claviska/full/QWveRgL */
  --sl-color-primary-50: rgb(251, 249, 247);
  --sl-color-primary-100: rgb(241, 236, 227);
  --sl-color-primary-200: rgb(231, 221, 205);
  --sl-color-primary-300: rgb(219, 205, 182);
  --sl-color-primary-400: rgb(204, 183, 151);
  --sl-color-primary-500: rgb(184, 155, 111);
  --sl-color-primary-600: rgb(162, 126, 70);
  --sl-color-primary-700: rgb(133, 103, 57);
  --sl-color-primary-800: rgb(110, 85, 47);
  --sl-color-primary-900: rgb(78, 60, 34);
  --sl-color-primary-950: rgb(48, 37, 21);
}

ul,
li {
  margin: 0;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
    "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #0c0c0c;
  color: var(--sl-color-neutral-700);
}

main {
  padding: 1em 0.5em;
  height: calc(100vh - 84px);
  display: grid;
  gap: 1em;
  grid-template-areas: "sidenav content";
  grid-template-columns: 248px auto;
}

a {
  color: var(--sl-color-primary-500);
}

blockquote {
  border-left: 4px solid var(--sl-color-primary-900);
  padding: 0.2em 0.5em;
  color: var(--sl-color-primary-800);
  background-color: var(--sl-color-primary-300);
  font-style: italic;
  font-family: sans-serif;
}

pre {
  font-family: source-code-pro, Menlo, Monaco, "Fira Code", "Cascadia Code",
    Consolas, "Courier New", monospace;
  color: var(--sl-color-primary-50);
  padding: 1em 1.5em;
  max-width: 50vw;
  margin: 0.5em 2em;
  overflow: auto;
}

pre code {
  border-radius: 8px;
}

code:not([class]),
a[class=""] {
  background-color: var(--sl-color-amber-300);
  color: var(--sl-color-amber-900);
  padding: 2px 4px;
  border-radius: 5px;
}

.with-box-shadow {
  box-shadow: 0px 6px 6px 1px var(--sl-color-primary-900);
}

sl-tree {
  --indent-guide-color: var(--sl-color-primary-600);
  --indent-guide-width: 1px;
}

sl-tree-item {
  --sl-color-neutral-700: var(--sl-color-primary-600);
}

@media (prefers-color-scheme: light) {
  body {
    background-color: #f0f0f0;
    color: var(--sl-color-primary-900);
  }
  blockquote {
    color: var(--sl-color-primary-300);
    background-color: var(--sl-color-primary-800);
  }
  a {
    color: var(--sl-color-primary-800);
  }
  a:visited {
    color: var(--sl-color-primary-500);
  }
  sl-tree {
    --indent-guide-color: var(--sl-color-primary-600);
  }
}
