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

/* VARIABLES */
 :root{
  color-scheme: light dark; 
  --fontsize: 1.6rem; 
  --font: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* BASE STYLES */
html, body {
  height: 100%;
}
html {
  font-size: 62.5%; 
  -webkit-text-size-adjust: 100%;

}
body {
  margin: auto;
  padding: 1.5rem;
  max-width: 65rem;
  font-family: var(--font);
  font-size: var(--fontsize); 
  font-weight: 200; 
  line-height: 1.6;
  letter-spacing: .05rem;
  color: light-dark(#1a1a1a, #efefef);
  background-color: light-dark(#efefef, #242424);
  transition: background-color 0.3s ease, color 0.3s ease;
}


figure, img, picture, video, canvas, svg {
  margin: 0;
  padding-bottom: .2rem;
  display: block;
  max-width: 100%;
  border-radius: .4rem;
}
figcaption{
  display: none;
}
audio{
  width: 100%;
  margin-bottom: 3rem;
}

ul>li {
  list-style-type: "› ";
}
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}
h1, h2, h3, h4, h5, h6 {
  margin-top: 2.2rem;
  margin-bottom: 1.6rem;
  font-weight: 500;
}
h1 {
  font-size: 2.2rem;
}
h2{
  font-size: 2rem;
  margin-bottom: 2rem;
}
b, strong {
  font-weight: 500;
}

p {
  margin-top: 0; 
}
a {
  text-decoration: none;
  border-bottom: none;
  color: var(--fontcolor);
} 
a:hover {
  border-bottom: .1rem solid;
  text-decoration: none;
  color: #00bfff;
}  

code {
  font-size: 90%;
  line-height: 1.5;
  letter-spacing: 0;
  white-space: nowrap;

 }
pre > code {
  display: block;
  padding: 1rem 1.5rem;
  white-space: pre;
  font-size: 80%; 
}

hr {
  margin-top: 3rem;
  margin-bottom: 3.5rem;
  border-width: 0;
  border-top: 1px solid #E1E1E1; 
}

/* HEADER */
header{
  padding-bottom: 3rem;
}
header h1 {
  font-size: 1.6rem;
  font-weight: normal;
}
header a, header a:hover,
footer a, footer a:hover {
  border-bottom: none;
  font-weight: bold;
}

/* FOOTER */

footer{
  padding-top: 10rem;
}
footer>p:last-of-type {
  padding-top: 10rem;
}

/* TOC */
.TOC ul>li {
  display: inline;
}
.TOC ul>li::after {
  content: " ⋅ ";
}
.TOC ul>li:last-of-type::after {
  content: none;
}

/* UTILITIES */
.hide {
  visibility: hidden;
}