@import url('/asset?u=https%3A%2F%2Ffonts.googleapis.com%2Fcss2%3Ffamily%3DInter%2BVariable%3Aopsz%2Cwght%406..144%2C1..1000%26display%3Dswap');

:root {
  font-family: "Inter Variable", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: 16px;
  --line-height: 1.5rem;
  --color-bg: #fff;
  --color-bg-code: #ddd;
  --color-fg: #333;
  --color-fg-muted: #666;
  --color-comment: #f5e87e;
}

html {
  background: var(--color-bg);
  color: var(--color-fg);
}

html,
body {
  line-height: var(--line-height);
  font-size: 1rem;
}

p {
  font-size: inherit !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: inherit;
  font-weight: 700;
  font-size: 1.25rem;
  margin: var(--line-height) 0;
  line-height: 1.3;

}

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

h2 {
  line-height: calc(var(--line-height) * 1.25);
}

a:link {
  color: var(--color-fg);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
}

a:visited {
  color: var(--color-fg);
}

strong {
  font-weight: 600;
}

blockquote {
  padding: 0 2ch;
  font-style: italic;
}

ul,
ol,
p {
  margin: calc(var(--line-height) / 2) 0;
  hyphens: auto;
  word-break: break-word;
  word-wrap: break-word;
}

ul, ol {
  padding: 0 4ch;
}

li > ul, li > ol {
  margin: 0;
}

li {
  margin: 0;
}

li > p {
  margin: 0;
}
li > p+p {
  margin: 1rem 0 0;
}

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

figcaption {
  margin: var(--line-height) 2ch 0;
  font-style: italic;
  text-align: center;
}

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

tr.divider td {
  font-style: italic;
}
sup {
  line-height: 1;
  font-size: .75rem;
}

dl {
  margin: var(--line-height) 0;
}

dt {
  font-weight: 600;
}

dd {
  margin-left: 2ch;
}

pre,
code {
  font-family: "BerkeleyMonoWeb", monospace;
  font-weight: normal;
  font-size: 1rem;
  line-height: var(--line-height);
}

p code {
  line-height: 1;
}

img, video, object {
  max-width: 100%;
}

code.sourceCode span {
  line-height: 1;
}

math {
  font-family: inherit;
  font-size: 1em;
}
math[display=block] {
  display: block;
  text-align: left;
  padding: 0 2ch;
}

body {
  max-width: 70ch;
  margin: 0 auto;
  padding: var(--line-height) 2ch;
}


body>.sourceCode,
body>pre {
  position: relative;
  margin: var(--line-height) 0;
  overflow-x: auto;
  padding: 0 2ch;
}

p code {
  display: inline-block;
  line-height: var(--line-height);
}


/*
 * Post
 */

#title-block-header {
  display: flex;
  margin: var(--line-height) 0;
  flex-wrap: wrap;
}

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

#title-block-header .author,
#title-block-header .date {
  margin: calc(var(--line-height) / 2) 0 0;
  color: var(--color-fg-muted);
}

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

.index-page header:after,
.post-nav.before:after,
.post-nav.after:before {
  display: block;
  content: "";
  height: calc(var(--line-height) / 2);
  padding: calc(var(--line-height) / 4) 0;
  margin: var(--line-height) 0;
  background: radial-gradient(var(--color-fg-muted) .5px,transparent 1px) 0 0/3px 3px, var(--color-bg);
}

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

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

.post-nav.before a,
.post-nav.after a {
  color: var(--color-fg-muted);
}

.post-nav.before a {
  text-decoration: none;
}

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

.post-nav a {
  color: var(--color-fg);
}

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

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

.index-page h1 {
  margin: 0;
}

.index li {
  display: flex;
  flex-direction: column;
  margin: 1.5rem 0;
}
.footnote-ref {
  text-decoration: none !important;
}
.footnote-ref sup:before {
  content: '[';
}
.footnote-ref sup:after {
  content: ']';
}

/* Syntax highlighting overrides */

code span.kw,
code span.cf,
code span.pp,
code span.im {
  font-weight: bold;
}

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

code span.co {
  background-color: var(--color-comment);
}

code span.st, code span.ss {
  color: color-mix(in hsl, #999 50%, var(--color-fg));
}

@media (prefers-color-scheme: dark) {
  code span.co {
    background: none;
    color: var(--color-comment);
  }
}

/* Custom class, not part of highlighting */
span.red {
  color: #A8334C;
}
span.blue {
  color: #286486;
}

@media print {
  :root, html, body {
  }
  .post-nav.after {
    display: none;
  }
}

@media screen and (max-width: 70ch) {
  body {
    padding: var(--line-height) 1ch;
  }
  h1 {
    font-size: 1.5rem;
  }
}

@media (prefers-color-scheme: dark) {
  :root { 
    --color-bg: #000;
    --color-bg-code: #555;
    --color-fg: #eee;
    --color-fg-muted: #aaa;
  }
  span.red {
    color: #DE6E7C;
  }
  span.blue {
    color: #6099C0;
  }
}

