:root {
  color-scheme: light dark;
  supported-color-schemes: light dark;
}

body {
  text-align: center;
  font-family: -apple-system, ui-sans-serif, system-ui, Arial, Helvetica, sans-serif;
  color: #333;
  margin-bottom: 60px;
}

#root_link {
  position: absolute;
  top: 20px;
  left: 20px;
}

#root_link a {
  color: hsl(210, 75%, 45%);
  font-size: 16px;
}

a {
  text-decoration: none;
  color: hsl(210, 75%, 45%);
}

a:hover {
  text-decoration: underline;
}

h1 {
  display: inline-block;
  background-color: #b0d0ff;
  padding: 6px 12px;
  border-radius: 12px;
}

h2 {
  display: inline-block;
  font-size: 15pt;
  font-weight: 600;
  padding: 4px 8px;
  border-bottom: 1px solid #888;
  margin-bottom: 0px;
}

h4 {
  border-left: 4px solid #666;
  padding-left: 8px;
  margin-top: 40px;
}

h5 {
  font-size: 12pt;
  margin-top: 20px;
  margin-bottom: 0px;
}

ul li {
  line-height: 140%;
  margin-bottom: 8px;
}

article {
  width: 800px;
  text-align: left;
  margin: 10px auto;
  padding-top: 10px;
  padding-left: 75px;
  line-height: 150%;
}

hr {
  border-top: 1px solid #888;
  border-bottom: 0;
  margin: 30px 0px;
}

code {
  font-size: 10pt;
  font-family: ui-monospace, Menlo, Monaco, monospace;
  font-weight: 500;
  margin-left: 5px;
  margin-right: 2px;
  border: 1px solid #d0d0d0;
  padding: 1px 5px;
  border-radius: 4px;
}

.update {
  font-size: 10pt;
  color: #333;
  font-weight: 300;
  margin-top: 20px;
}

@media (prefers-color-scheme: dark) {
  body {
    color: #ddd;
  }

  a {
    color: hsl(210, 80%, 60%);
  }

  #root_link a {
    color: hsl(210, 80%, 60%);
  }

  h1 {
    background-color: hsl(215, 65%, 50%);
  }

  h2 {
    border-bottom-color: #666;
    padding-bottom: 5px;
  }

  h4 {
    border-left-color: #888;
  }

  hr {
    border-top-color: #666;
  }

  code {
    color: #ddd;
    border-color: #555;
    background-color: #242424;
  }

  .update {
    color: #999;
  }
}
