body {
  font-family: sans-serif;
  line-height: 1.6;
  padding: 1rem;
  max-width: 650px;
  margin: auto;
}
img {
  max-width: 100%;
  height: auto;
}
/*
body {
  display: flex;
  max-width: 1200px;
  margin: auto;
  padding: 2rem;
  font-family: sans-serif;
}

main {
  flex: 3;
  padding-right: 2rem;
}

aside.toc {
  flex: 1;
  position: sticky;
  top: 2rem;
  height: max-content;
  border-left: 1px solid #ddd;
  padding-left: 1rem;
}

aside.toc ul {
  list-style: none;
  padding: 0;
}

.toc-link.active {
  font-weight: bold;
  color: steelblue;
} */

.toc {
  background: #f9f9f9;
  border-left: 4px solid #ccc;
  padding: 1em;
  margin-bottom: 2em;
  font-family: sans-serif;
  font-size: 1em;
}

/*
.toc h2 {
  margin-top: 0;
  font-size: 1.2em;
}

.toc ul {
  list-style: none;
  padding-left: 1em;
}

.toc ul li {
  margin: 0.3em 0;
}

.toc ul li a {
  text-decoration: none;
  color: #007acc;
}

.toc ul li a:hover {
  text-decoration: underline;
}

*/

nav {
  background-color: #fffff9;
  border: 1px solid lightgrey;
  border-radius: 5px;

  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 1rem;
}

.toc a {
  text-decoration: none;
  color: hsl(193, 46%, 39%);
}

.toc h2,
.toc ol {
  margin: 0;
}

.toc nav{
   /* same styles as before */

   padding: 1rem;
}
.toc ol {
  list-style-type: none;
  padding-inline-start: 2rem;
}

.toc > ol {
  padding: 0;
}
.toc ol {
  list-style-type: none;

  /* initialise counter */
  counter-reset: toc-counter;
}

/* .toc li {
  list-style-type: lower-alpha;
} */

.toc li::before {
  /* display the counter formatted as our ordinal style */
  content: counters(toc-counter, ".") " ";

  counter-increment: toc-counter;

  color: hsl(14, 51%, 54%); /* reddish brown color */
}
html {
	scroll-behavior: smooth;
}
