@import 'code-colorful.css' (not (prefers-color-scheme: dark));
.highlight pre {
  overflow-x: auto;
}

:root {
  --text-primary: black;
  --text-hover: #2156a5;
  --text-date: #828282;
  --background-primary: white;
  --code-border: #bbb;
  --blockquote-border: #bbb;
}

html {
  font-family: "EB Garamond", serif;
  background-color: var(--background-primary);
  color: var(--text-primary);
}
body {
  margin: auto;
  max-width: 40em;
  padding: 0 1em

  text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

@media (min-width: 485px) {
  html {
    font-size: 1.125em
  }
}
@media (min-width: 840px) {
  html {
    font-size: 1.25em
  }
}

a {
  color: var(--text-primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

main {
  font-size: 1.2em;
}
main p {
  text-align: justify;
  line-height: 1.2em;
}
main a {
  color: var(--text-primary);
  text-decoration: underline;
}
main img {
  max-width: 100%;
  margin: 0 auto;
  display: block;
}
main a:hover {
  color: var(--text-hover);
}

code {
  border: solid 1px var(--code-border);
  padding: 0 3px;
}
pre > code {
  border: none;
}
code,pre {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size:80%;
}
blockquote {
  margin-left: 0;
  padding-left: 30px;
  border-left: solid 4px var(--blockquote-border);
}

header, main, .article-meta {
  padding: 0 5px;
}

header {
  display: flex;
  justify-content: space-between;
  align-content: center;
  flex-wrap: wrap;
}
header h1 {
  font-family: "EB Garamond", serif;
  flex-shrink: 0;
  margin-top: 10px;
  margin-bottom: 0px;
}
header nav {
  display: flex;
  gap: 15px;
}
header nav a {
  margin: auto 0;
}

footer {
  text-align: center;
  margin: 1em 0
}

.article-meta .date {
  margin-top: -26.8px;
}
.date {
  color: var(--text-date);
}
.list-item {
  margin: 5px 10px;
}
.list-item .title {
  font-size: 1.3em;
}

.callout {
  display: inline-block;

  height: 1em;
  font-size: 0.75em;
  line-height: 1.2em;
  padding: 0.2em;

  font-weight: bold;
  border-radius: 100%;
  background-color: var(--background-primary);
  color: var(--text-primary);
  text-align: center;
  aspect-ratio: 1 / 1;
}

table {
  border-collapse: collapse;
  margin: 0 auto;
}
td, th {
  border: 1px solid var(--text-primary);
  padding: 0 .2em;
  text-align: center;
}

