* { box-sizing: border-box }
body { margin: 0; color: #242728; font: 17px/1.7 system-ui,sans-serif }
header, main { max-width: 68rem; margin: auto; padding: 1rem }
header { border-bottom: 1px solid #ddd }
nav a { margin-right: 1rem }
a { color: #245887 }
article { min-width: 0; overflow-wrap: anywhere; padding-bottom: clamp(4rem, 12vh, 8rem) }
article img { max-width: 100%; height: auto }
article blockquote {
  margin: 1.25rem 0;
  padding: .75rem 1rem;
  border-left: .25rem solid #5c7e9b;
  background: #f2f5f8;
}
article blockquote > :first-child { margin-top: 0 }
article blockquote > :last-child { margin-bottom: 0 }
pre { overflow-x: auto }
.reading { display: grid; grid-template-columns: 14rem minmax(0,1fr); gap: 2rem }
aside { position: sticky; top: 1rem; align-self: start; max-height: 92vh; overflow: auto }
aside ul { padding-left: 1.3rem }
time, .meta { color: #555; font-size: .9em }
input { padding: .55rem; width: min(100%,32rem); font: inherit }
.post-list { list-style: none; padding: 0 }
.post-list > li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid #e1e5e8 }
.post-list time { padding-top: .2rem; white-space: nowrap }
.post-list h2 { margin: 0; font-size: 1.2rem; overflow-wrap: anywhere }
.post-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; min-height: 1.6rem }
.post-tags a { display: inline-block; padding: .1rem .5rem; border: 1px solid #cbd3da; border-radius: .2rem; background: #f5f7f9; font-size: .8em; text-decoration: none }
.post-tags a:hover, .post-tags a:focus-visible { background: #e8eef3; text-decoration: underline }
.post-description { margin: .5rem 0 0; min-height: 1.7em; color: #555; overflow-wrap: anywhere }
.pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .4rem; margin: 2rem 0 }
.pagination:empty { display: none }
.pagination a, .pagination button, .pagination span { display: inline-block; min-width: 2.3rem; margin: 0; padding: .35rem .7rem; border: 1px solid #cbd3da; border-radius: .2rem; background: #f5f7f9; color: #245887; font: inherit; text-align: center; text-decoration: none }
.pagination a, .pagination button { cursor: pointer }
.pagination [aria-current="page"] { background: #245887; border-color: #245887; color: white; font-weight: bold }
.pagination [aria-disabled="true"], .pagination button:disabled { opacity: .4; cursor: default }
.pagination .pagination-gap { border-color: transparent; background: transparent; padding-inline: .25rem; min-width: 1rem; color: #555 }
.pagination a:focus-visible, .pagination button:focus-visible { outline: 2px solid #245887; outline-offset: 2px }
@media(max-width:480px) { .post-list > li { grid-template-columns: 5.5rem minmax(0,1fr); gap: .5rem } }
@media(max-width:700px) { .reading { display:block } aside { position:static; max-height:none } }
.neighbors { display: flex; gap: 1rem; justify-content: space-between; border-top: 1px solid #ddd; padding-top: 1rem; margin-top: 2rem }
.neighbors a { max-width: 48%; margin: 0 }
.neighbors [rel=next] { margin-left: auto; text-align: right }

article pre {
  max-width: 100%;
  padding: .85rem 1rem;
  background: #f5f7f9;
  border: 1px solid #d8dfe5;
  border-radius: .35rem;
  line-height: 1.5;
}
article code { font-family: ui-monospace, monospace; font-size: .9em }
.code-block { position: relative; margin: 1rem 0; min-width: 0 }
.code-block pre { margin: 0 }
.copy-code {
  position: absolute;
  top: .5rem;
  right: .5rem;
  z-index: 1;
  padding: .2rem .65rem;
  border: 1px solid transparent;
  border-radius: .25rem;
  background: transparent;
  color: transparent;
  font: inherit;
  font-size: .85em;
  cursor: pointer;
}
.copy-code:hover, .copy-code:focus-visible { background: #e8eef3; border-color: #cbd3da; color: #245887 }
.copy-code:focus-visible { outline: 2px solid #245887; outline-offset: 2px }
article :not(pre) > code { background: #f5f7f9; padding: .1em .25em; border-radius: .2em }
/* Token classes emitted by Pandoc's syntax highlighter. */
.sourceCode .kw, .sourceCode .cf, .sourceCode .im { color: #71389b; font-weight: bold }
.sourceCode .st, .sourceCode .ch, .sourceCode .ss, .sourceCode .vs { color: #126238 }
.sourceCode .dv, .sourceCode .bn, .sourceCode .fl, .sourceCode .cn { color: #964500 }
.sourceCode .fu, .sourceCode .bu, .sourceCode .dt { color: #175c91 }
.sourceCode .co, .sourceCode .do { color: #52616a; font-style: italic }
article table { border-collapse: collapse; }
article th, article td { padding: .35rem .75rem; border: 1px solid #cbd3da }
article th { background: #f5f7f9 }
.table-scroll { overflow-x: auto; margin: 1rem 0 }
.tables-full-width table { width: 100% }
.numberSource > code > span > a:first-child::before {
  content: counter(code-line);
  counter-increment: code-line;
  display: inline-block;
  width: 4ch;
  margin-right: 1ch;
  text-align: right;
  color: #52616a;
  user-select: none;
}

.images-centered img { display: block; margin-inline: auto }
.images-centered figcaption { text-align: center }

.numberSource > code { counter-reset: code-line }

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: .75rem 1.25rem;
  padding: 2rem 0 4rem;
  line-height: 1.4;
}
.tag-cloud a { max-width: 100%; overflow-wrap: anywhere; text-decoration: none }
.tag-cloud a:hover, .tag-cloud a:focus-visible { text-decoration: underline }

.math.display { display: block; max-width: 100%; overflow-x: auto; padding-block: .35em }
