:root {
  --color-bg: hsl(100, 15%, 90%);
  --color-bg-half: hsl(150, 15%, 80%);
  --color-txt: hsl(150, 45%, 22%);
  --color-txt-half: hsl(150, 15%, 50%);
  --font-family-mono: 'IBM Plex Mono', Courier, monospace;
  --font-family-sans: system-ui, -apple-system, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: hsl(150, 5%, 10%);
    --color-bg-half: hsl(150, 10%, 20%);
    --color-txt: hsl(150, 10%, 80%);
    --color-txt-half: hsl(150, 10%, 40%);
  }
}

* {
  box-sizing: border-box;
  font-family: var(--font-family-sans);
}
html {
  font-size: 100%;
  line-height: 1.5;
}
body {
  background: var(--color-bg);
  color: var(--color-txt);
  font-size: 1rem;
  margin: 0;
  padding: 0;
}

a {
  color: inherit;
  text-underline-offset: 2px;
}
a:hover {
  text-decoration: none;
}
h1 {
  text-align: center;
}
p {
  margin: 0;
}
ul {
  margin: 0;
  padding-left: 1.5ch;
}
ol {
  list-style-position: inside;
  margin: 0;
  padding: 0;
}
blockquote {
  border-left: 3px solid var(--color-txt-half);
  margin: 0;
  padding-block: 0.5rem;
  padding-left: 1ch;
}

main {
  margin: 3rem auto;
  max-width: 50rem;
}

header {
  text-align: center;
}
header h1 {
  font-size: 1.1rem;
  font-weight: inherit;
  line-height: 1.4;
  margin: 0.5rem 1rem;
}

footer {
  font-size: 0.9rem;
  margin: 1rem;
  text-align: center;
}

table {
  margin-block: 2rem;
  width: 100%;
}
table h1,
table h2,
table h3,
table h4 {
  margin: 0;
  text-align: left;
}

th {
  background: var(--color-txt);
  color: var(--color-bg);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.2rem;
  position: sticky;
  text-align: center;
  top: 0;
}

td {
  background: var(--color-bg-half);
  padding: 1rem;
  white-space: nowrap;
}

code {
  font-family: var(--font-family-mono);
  margin: 0;
}
code.stylized {
  background: var(--color-bg);
  border-radius: 0.3rem;
  padding-inline: 0.3rem;
}

@media (max-width: 660px) {
  td {
    padding-inline: 0.75rem;
  }
  th:nth-of-type(2),
  td:nth-of-type(2) {
    display: none;
  }
  .hidden-on-mobile {
    display: none;
  }
}
