@import url("https://fonts.cdnfonts.com/css/ia-writer-duospace");
@import url("https://rsms.me/inter/inter.css");

:root {
  /* font-family: "iA Writer Duospace", sans-serif; */
  font-family: "Inter var", "sans-serif";
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

td:first-of-type {
  padding-right: 2em;
}

article :where(h1, h2, h3, h4, h5) {
  font-size: 1.2rem;
  font-weight: 500;
  margin-top: -3rem;
  padding-top: 4rem;
}

aside h5 {
  font-size: 1rem;
  font-weight: normal;
  margin: 0 0 0.5rem 0;
}

thead th {
  text-align: left;
}

img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: contain;
  object-position: left;
}

code {
  font-family: "iA Writer Duospace", sans-serif;

  color: black;
  background: rgb(230, 230, 230);
  padding: 0.1em 0.3em;
  font-size: 0.9em;
}

ol,
ul {
  padding: 0;
  margin: 0;
}

a,
a:visited {
  color: blue;
}

li {
  list-style-position: inside;
}

h2::before {
  content: counter(h2) ". ";
}

h2 {
  counter-increment: h2;
  counter-reset: h3;
}

h3::before {
  content: counter(h2) "." counter(h3) ". ";
}

h3 {
  counter-increment: h3;
}

img {
  width: 100%;
}

.wrapper.documentation {
  display: grid;
  grid-template-columns: minmax(500px, 1000px) auto;
  gap: 4rem;
}

.sub-pages ol {
  list-style-type: upper-alpha;
}

nav.contents {
  display: block;
  position: sticky;
  top: 1rem;
}

.page {
  /* padding-top: 2rem; */
}

.date-modified {
  /* margin-top: 2rem; */
  margin-left: auto;
  /* font-size: 0.8rem; */
}

.page-title {
  position: sticky;
  display: flex;
  align-items: baseline;
  top: 0rem;
  background: white;
  margin: -1em 0 -1em 0;
  padding: 1em 0 2em 0;
  line-height: 1.2em;
  background: linear-gradient(white 0%, white 75%, transparent 100%);
}

.page-title h1 {
  margin: 0;
  padding: 0;
}

body {
  margin: 1rem;
}
