:root {
  font-family: 'Inter', sans-serif;
}

@supports (font-variation-settings: normal) {
  :root {
    font-family: 'Inter var', sans-serif;
  }
}

html {
  background: #fff;
  color: #000;
}

html,
body {
  line-height: 1.5;
  font-size: 16px;
}


h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-weight: 800;
  font-size: 2.5rem;
}

h2 {
  font-size: 1.75rem;
  margin: 2.5rem 0 1.5rem;
}

h3 {
  font-size: 1.25rem;
  margin: 2rem 0 1rem;
}

a:link {
  color: #000;
  text-decoration: underline;
}

a:visited {
  color: #888;
}

ul,
ol,
p {
  margin: 1rem 0;
}

li > ul, li > ol {
  margin: .75rem 0;
}

li {
  margin: 0.25rem 0;
}

figure {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

figcaption {
  margin-top: .5rem;
  text-align: center;
  font-style: italic;
}

th,
td {
  padding: .5rem;
  border-bottom: 1px solid #ddd;
}

tr.divider td {
  text-align: center;
  font-style: italic;
}
sup {
  font-size: .75em;
  line-height: 1;
}

dl {
  margin: 2rem 0;
}

dt {
  font-weight: 600;
  margin-top: .5rem;
}

dd {
  margin-left: 1rem;
}

pre,
code {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 400;
}

pre {
  padding: 1rem;
}

body {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
}

body>.sourceCode,
body>pre {
  margin: 1rem 0;
  overflow-x: auto;
}

body>.sourceCode,
body>pre {
  margin: 1rem -1rem;
}

/*
 * Post
 */

#title-block-header {
  display: flex;
  margin: 2rem 0 3rem 0;
  flex-wrap: wrap;
}

#title-block-header h1 {
  flex: 1 1 100%;
  margin: 0 0 .5rem;
}

#title-block-header .author,
#title-block-header .date {
  margin: 0;
  color: #666;
}

#title-block-header .date:before {
  content: '\2014';
  margin: 0 .25em;
}

.post-nav {
  color: #666;
}

.post-nav.before {
  margin: 0;
}

.post-nav.after {
  margin: 2rem 0 0;
}

.post-nav ul {
  display: flex;
  list-style-type: none;
  margin: 0;
  padding: 0;
  gap: 1rem;
}

.post-nav a {
  color: inherit;
}

/*
 * Index
 */
.index-page header {
  padding: 4rem 0 2rem 0;
}

.index-page h1 {
  font-size: 3rem;
}

.index-page p {
  font-size: 1.25rem;
}

.index {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

.index li {
  display: flex;
  flex-direction: column;
  margin: 1.5rem 0;
}

@media screen and (max-width: 800px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.375rem;
  }

  h3 {
    font-size: 1.25rem;
  }
}

@media (prefers-color-scheme: dark) {
  html {
    background: #111;
    color: #fff;
  }

  a:link {
    color: #fff;
  }

  a:visited {
    color: #ccc;
  }

  #title-block-header .author,
  #title-block-header .date {
    color: #aaa;
  }
}
.footnote-ref {
  text-decoration: none !important;
}
.footnote-ref sup:before {
  content: '[';
}
.footnote-ref sup:after {
  content: ']';
}

/* Syntax highlighting overrides */

code span.im {
  font-weight: bold;
}

code span.at,
code span.dt {
  text-decoration: none;
  font-style: italic;
}

code span.co {
  color: #999;
}

code span.st, code span.ss {
  color: #444;
}

@media (prefers-color-scheme: dark) {
  code span.st, code span.ss {
    color: #ccc;
  }
}
