@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 100 700;
  font-stretch: 85% 100%;
  font-display: swap;
  src: url("/fonts/IBMPlexSans-VariableFont_wdth-wght.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: italic;
  font-weight: 100 700;
  font-stretch: 85% 100%;
  font-display: swap;
  src: url("/fonts/IBMPlexSans-Italic-VariableFont_wdth-wght.woff2")
    format("woff2");
}
@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/EBGaramond-VariableFont_wght.woff2") format("woff2");
}
@font-face {
  font-family: "EB Garamond";
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/EBGaramond-Italic-VariableFont_wght.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/InterVariable.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/InterVariable-Italic.woff2") format("woff2");
}
@font-face {
  font-family: "FiraCode";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/fonts/FiraCode-Variable.woff2") format("woff2");
}

/* Sizes are in rem on a 10px base (62.5% of the browser's default). */
:root {
  --base-fg: 0, 0, 0;
  --color-fg: rgb(var(--base-fg));
  --color-text: rgb(29, 29, 31);
  --color-link-hover: #2b2be1;
  --color-background: #f7f6f2;
  --navbar-color: #f2efe6;
  --navbar-border-bottom: 0.5px solid rgba(0, 0, 0, 0.5);
  --footer-color: var(--navbar-color);
  --footer-border-top: 0.5px solid rgba(0, 0, 0, 0.2);
  --border-radius: 5px;
  --font:
    "IBM Plex Sans", Helvetica, Roboto, Noto, "Segoe UI", arial, sans-serif;
  --font-ui: "Inter", Helvetica, Roboto, Noto, "Segoe UI", arial, sans-serif;
  --font-vintage: "EB Garamond", Garamond, Georgia, serif;
  --font-title: "EB Garamond", serif;
  --font-mono:
    "FiraCode", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --fs-normal: 1.8rem;
  --fs-small: 1.6rem;
  --line-height: 1.65;
  --page-width: 760px;
  --gap: 1.8rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --base-fg: 255, 255, 255;
    --color-background: rgb(18, 18, 18);
    --color-text: #d1d1d1;
    --color-link-hover: #8585db;
    --navbar-color: rgb(12, 12, 12);
    --navbar-border-bottom: 0.5px solid rgba(255, 255, 255, 0.288);
    --footer-border-top: 0.5px solid rgba(255, 255, 255, 0.288);
  }
}
@media (max-width: 768px) {
  :root {
    --fs-normal: 1.72rem;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 62.5%;
  -webkit-text-size-adjust: 100%;
  background-color: var(--navbar-color);
}

body {
  display: grid;
  grid-template-rows: auto max-content;
  /* minmax(0, ...) lets the column shrink below its content's width, so a
     long code line scrolls inside its <pre> instead of widening the page. */
  grid-template-columns: minmax(0, 1fr);
  min-height: 100vh;
  font-family: var(--font);
  color: var(--color-text);
  font-size: var(--fs-normal);
  line-height: var(--line-height);
  letter-spacing: -0.01em;
  font-weight: 400;
  background-color: var(--color-background);
  overflow-wrap: anywhere;
}
@media (max-width: 768px) {
  body {
    letter-spacing: -0.008em;
  }
}
.body-top {
  display: grid;
  grid-template-rows: max-content auto;
  grid-template-columns: minmax(0, 1fr);
}

.wrap {
  width: 100%;
  max-width: var(--page-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gap);
  padding-right: var(--gap);
}
@media (max-width: 768px) {
  .wrap {
    padding-left: 16px;
    padding-right: 16px;
  }
}

a {
  color: inherit;
  font-weight: 435;
  text-decoration: underline;
  text-decoration-thickness: 0.1px;
  text-underline-position: under;
}
a:hover {
  color: var(--color-link-hover);
  text-decoration-thickness: from-font;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol {
  margin-bottom: var(--gap);
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  word-spacing: 0.05em;
}
h1 {
  font-size: 4.8rem;
  font-weight: 630;
  letter-spacing: -0.023em;
  line-height: 1.2;
}
h2 {
  font-size: 3.2rem;
  letter-spacing: -0.036em;
  line-height: 1.35;
}
h3 {
  font-size: 2.6rem;
  letter-spacing: -0.039em;
  line-height: 1.4;
}
h4 {
  font-size: 1.8rem;
  font-weight: 520;
  text-transform: uppercase;
  letter-spacing: 0.008em;
  line-height: 1.5;
}
@media (max-width: 768px) {
  h1 {
    font-size: 3.6rem;
  }
  h2 {
    font-size: 2.8rem;
  }
  h3 {
    font-size: 2.4rem;
  }
}

li {
  margin-bottom: calc(var(--gap) / 2);
}
li:last-child {
  margin-bottom: 0;
}
ul {
  list-style: none;
}
ul li {
  position: relative;
  padding-left: 2rem;
}
ul li::before {
  position: absolute;
  top: 0;
  left: 0;
  font-weight: 300;
  content: "–";
}
ol {
  list-style-position: inside;
}
li > ul,
li > ol {
  margin-top: calc(var(--gap) / 2);
  margin-bottom: 0;
}

blockquote {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 0 4rem;
  margin: calc(var(--gap) * 2) 0 !important;
  opacity: 0.7;
}
blockquote::before,
blockquote::after {
  display: block;
  position: absolute;
  font-size: 3.4rem;
  line-height: 0;
  font-family: var(--font-vintage);
}
blockquote::before {
  content: "\201C";
  top: var(--fs-normal);
  left: 0;
}
blockquote::after {
  content: "\201D";
  right: 0;
  bottom: var(--fs-normal);
}
blockquote p:nth-last-child(2) {
  margin-bottom: 0;
}
/* A quote's last paragraph, after the first, is its attribution. */
blockquote p:last-child {
  align-self: flex-end;
  margin: 0 0 0 10rem;
}
blockquote p:last-child::before {
  display: inline-block;
  content: "–";
  margin-right: var(--gap);
}
blockquote p:first-child {
  align-self: normal;
  margin-left: 0;
}
blockquote p:first-child::before {
  display: none;
}
@media (max-width: 768px) {
  blockquote {
    padding: 2.5rem 1.5rem;
  }
  blockquote::before,
  blockquote::after {
    font-size: 3rem;
  }
}

pre {
  overflow-x: auto;
  font-family: var(--font-mono);
  font-weight: 435;
  font-size: 1.4rem;
  background-color: rgba(var(--base-fg), 0.065);
  padding: var(--gap);
  border-radius: var(--border-radius);
  border: 1px solid rgba(var(--base-fg), 0.35);
  overflow-wrap: normal;
}
code {
  font-family: var(--font-mono);
  font-weight: 435;
  font-size: 0.85em;
  background-color: rgba(var(--base-fg), 0.065);
  padding: 0.1em 0.3em;
  border-radius: 3px;
}
pre code {
  font-family: inherit;
  font-size: inherit;
  background: none;
  padding: 0;
}

/* Syntax highlighting for fenced code blocks, rendered by Chroma with
   classes. Colors match the previous Hugo site (Chroma's github and
   github-dark styles). */
.chroma {
  tab-size: 2;
  background-color: #f7f1e7;
}
.chroma .line {
  display: flex;
}
.chroma .ln {
  white-space: pre;
  -webkit-user-select: none;
  user-select: none;
  margin-right: 0.4em;
  padding: 0 0.4em;
  color: #7f7f7f;
}
.chroma .err {
  color: #f6f8fa;
  background-color: #82071e;
}
.chroma .k,
.chroma .kc,
.chroma .kd,
.chroma .kn,
.chroma .kp,
.chroma .kr,
.chroma .kt {
  color: #cf222e;
}
.chroma .na,
.chroma .nc,
.chroma .nx,
.chroma .p,
.chroma .ge,
.chroma .go {
  color: #1f2328;
}
.chroma .nb,
.chroma .ni,
.chroma .nf {
  color: #6639ba;
}
.chroma .bp {
  color: #6a737d;
}
.chroma .no,
.chroma .nd,
.chroma .nt,
.chroma .m,
.chroma .mb,
.chroma .mf,
.chroma .mh,
.chroma .mi,
.chroma .il,
.chroma .mo,
.chroma .o,
.chroma .ow {
  color: #0550ae;
}
.chroma .nl {
  color: #900;
}
.chroma .nn {
  color: #24292e;
}
.chroma .nv,
.chroma .vc,
.chroma .vg,
.chroma .vi {
  color: #953800;
}
.chroma .s,
.chroma .sa,
.chroma .sb,
.chroma .sc,
.chroma .dl,
.chroma .sd,
.chroma .s2,
.chroma .se,
.chroma .sh,
.chroma .si,
.chroma .sx,
.chroma .sr,
.chroma .s1 {
  color: #0a3069;
}
.chroma .ss {
  color: #032f62;
}
.chroma .c,
.chroma .ch,
.chroma .cm,
.chroma .c1,
.chroma .cs,
.chroma .cp,
.chroma .cpf {
  color: #57606a;
}
.chroma .gd {
  color: #82071e;
  background-color: #ffebe9;
}
.chroma .gi {
  color: #116329;
  background-color: #dafbe1;
}
.chroma .gl {
  text-decoration: underline;
}
@media (prefers-color-scheme: dark) {
  .chroma {
    color: #e6edf3;
    background-color: #0d1117;
  }
  .chroma .ln {
    color: #6e7681;
  }
  .chroma .err {
    color: #f85149;
    background-color: transparent;
  }
  .chroma .k,
  .chroma .kd,
  .chroma .kn,
  .chroma .kr,
  .chroma .kt,
  .chroma .nn,
  .chroma .o,
  .chroma .ow,
  .chroma .gt {
    color: #ff7b72;
  }
  .chroma .kc,
  .chroma .kp,
  .chroma .no,
  .chroma .nl,
  .chroma .py,
  .chroma .nv,
  .chroma .ld,
  .chroma .sa,
  .chroma .dl,
  .chroma .se,
  .chroma .sh,
  .chroma .sr,
  .chroma .gh,
  .chroma .gu {
    color: #79c0ff;
  }
  .chroma .nc,
  .chroma .ne {
    color: #f0883e;
  }
  .chroma .nd,
  .chroma .nf {
    color: #d2a8ff;
  }
  .chroma .ni {
    color: #ffa657;
  }
  .chroma .nt {
    color: #7ee787;
  }
  .chroma .l,
  .chroma .s,
  .chroma .sb,
  .chroma .sc,
  .chroma .sd,
  .chroma .s2,
  .chroma .si,
  .chroma .sx,
  .chroma .s1,
  .chroma .ss,
  .chroma .m,
  .chroma .mb,
  .chroma .mf,
  .chroma .mh,
  .chroma .mi,
  .chroma .il,
  .chroma .mo {
    color: #a5d6ff;
  }
  .chroma .c,
  .chroma .ch,
  .chroma .cm,
  .chroma .c1,
  .chroma .cs,
  .chroma .cp,
  .chroma .cpf {
    color: #8b949e;
    font-style: italic;
  }
  .chroma .gd {
    color: #ffa198;
    background-color: #490202;
  }
  .chroma .ge {
    font-style: italic;
  }
  .chroma .gr {
    color: #ffa198;
  }
  .chroma .gi {
    color: #56d364;
    background-color: #0f5323;
  }
  .chroma .go,
  .chroma .gp {
    color: #8b949e;
  }
  .chroma .gl {
    text-decoration: underline;
  }
  .chroma .na,
  .chroma .nb,
  .chroma .bp,
  .chroma .nx,
  .chroma .vc,
  .chroma .vg,
  .chroma .vi,
  .chroma .p {
    color: inherit;
  }
}

hr {
  border: none;
  border-top: 1px solid rgba(var(--base-fg), 0.5);
}

/* Footnotes. References show as [1]. */
sup,
.footnote-backref {
  font-size: 1.4rem;
}
sup a {
  text-decoration: none;
}
sup a::before {
  content: "[";
}
sup a::after {
  content: "]";
}
sup a:hover {
  text-decoration: underline;
  color: var(--color-link-hover);
}
sup a:hover::before,
sup a:hover::after {
  color: var(--color-link-hover);
}
.post .footnotes {
  opacity: 0.7;
  padding-top: var(--gap);
}
.post .footnotes hr {
  margin-bottom: var(--gap);
}
.post .footnotes ol {
  margin: 0;
}
/* Inline, so each note's text runs on from its number rather than starting
   a line of its own. */
.post .footnotes ol li * {
  display: inline;
}
img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
}
table {
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
}
th,
td {
  border: 1px solid rgba(var(--base-fg), 0.3);
  padding: 0.4rem 0.8rem;
}

/* Navbar */
.navbar {
  border-bottom: var(--navbar-border-bottom);
  background-color: var(--navbar-color);
  font-family: var(--font-ui);
}
.navbar-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 var(--gap);
  min-height: 55px;
}
.navbar-title {
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: -0.065em;
  text-decoration: none;
}
.navbar-right {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--gap);
}
.navbar-right a {
  font-size: 1.75rem;
  font-weight: 425;
  letter-spacing: -0.028em;
  text-decoration: none;
}
.navbar a:hover {
  color: inherit;
}
.navbar-right a:hover {
  text-decoration: underline;
}
@media (max-width: 400px) {
  .navbar-content,
  .navbar-right {
    column-gap: 1.4rem;
  }
}

/* Footer */
.footer {
  border-top: var(--footer-border-top);
  background-color: var(--footer-color);
  font-family: var(--font-ui);
}
.footer-body {
  display: flex;
  justify-content: space-between;
  gap: 0 var(--gap);
  padding: 1.5rem 0 1rem;
  font-size: 1.5rem;
}
.footer-body p {
  margin: 0 0 calc(var(--gap) / 2);
}
.footer-links {
  opacity: 0.9;
}
.footer-links .dot {
  margin: 0 0.5rem;
}
.footer-link a {
  text-decoration: none;
}
.footer-link a:hover {
  color: inherit;
  text-decoration: underline;
}
.footer-link:last-of-type .dot {
  display: none;
}
.footer-cr {
  opacity: 0.7;
  font-size: 1.4rem;
}
@media (max-width: 768px) {
  .footer-body {
    flex-direction: column;
  }
  .footer-links {
    display: flex;
    flex-wrap: wrap;
  }
}

/* Post lists */
.posts-list-item a {
  text-underline-position: under;
}
.posts-list-item-date {
  margin-left: 1rem;
  font-size: var(--fs-small);
  opacity: 0.6;
}
.posts-list-item-date::before {
  content: "(";
}
.posts-list-item-date::after {
  content: ")";
}

.posts-list.is-big .posts-list-item {
  display: flex;
  flex-direction: column-reverse;
  margin-bottom: var(--gap);
  padding-left: 0;
}
.posts-list.is-big .posts-list-item::before {
  display: none;
}
.posts-list.is-big .posts-list-item a {
  font-size: 2.2rem;
  line-height: 1.4;
  letter-spacing: -0.039em;
  text-decoration: none;
}
.posts-list.is-big .posts-list-item a:hover {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
}
.posts-list.is-big .posts-list-item-date {
  margin-left: 0;
  opacity: 0.8;
}
.posts-list.is-big .posts-list-item-date::before,
.posts-list.is-big .posts-list-item-date::after {
  display: none;
}
.posts-list.is-serif-font .posts-list-item a {
  font-family: var(--font-vintage);
  font-size: 2.8rem;
  font-weight: 420;
  letter-spacing: normal;
}
.latest-essays .posts-list-item a {
  font-family: "EB Garamond", serif;
  font-size: 2.4rem;
}
@media (max-width: 768px) {
  .posts-list.is-big .posts-list-item a {
    font-size: 2.4rem;
  }
  .posts-list.is-serif-font .posts-list-item a {
    font-size: 2.6rem;
    letter-spacing: -0.014em;
  }
}

/* Pages */
.page {
  display: flex;
  flex-direction: column;
  padding: 2rem 0;
}
.empty {
  opacity: 0.7;
}

.page-home > * {
  margin-bottom: var(--gap);
}
.home-intro-hi {
  font-family: var(--font-vintage);
  font-size: 3.2rem;
  font-weight: 500;
  letter-spacing: -0.052em;
  line-height: 1;
}
.page-home h2,
.list-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}
.page-home h2 {
  font-size: 2.6rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.page-home h2 a,
.list-title a {
  font-size: 1.3rem;
  text-decoration: none;
  text-transform: uppercase;
  border: 1px solid rgba(var(--base-fg), 0.45);
  padding: 3px 8px;
  border-radius: var(--border-radius);
}
.page-home h2 a:hover,
.list-title a:hover {
  color: inherit;
  border-color: var(--color-fg);
}

/* Posts */
.post-head {
  display: flex;
  flex-direction: column;
  margin-top: 2rem;
}
.post-title {
  margin: 0;
  font-family: var(--font-title);
  font-size: 6rem;
  font-weight: 625;
  letter-spacing: -0.023em;
  line-height: 1.3;
}
.post-date {
  margin-top: 0.6rem;
  font-size: var(--fs-small);
  opacity: 0.75;
}
.post-content {
  margin: 3rem 0;
}
.post-content > * {
  margin-bottom: var(--gap);
}
.post-content > :last-child {
  margin-bottom: 0;
}
@media (max-width: 768px) {
  .post-head {
    margin-top: 1rem;
  }
  .post-title {
    font-size: 4.7rem;
    letter-spacing: -0.025em;
  }
  .post-content {
    margin: 2rem 0;
  }
}

.post.is-essay .post-content {
  font-family: var(--font-vintage);
  font-size: 2.3rem;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: normal;
}
.post.is-essay .post-content h2 {
  letter-spacing: -0.028em;
}
.post.is-essay .post-content h3 {
  letter-spacing: -0.012em;
}
.post.is-essay .post-content h4 {
  font-size: 2rem;
  font-weight: 700;
}
.post.is-essay .lead-in {
  text-transform: uppercase;
}
/* Drop cap spanning two lines. initial-letter aligns it exactly; the float
   is an approximation for browsers without it (Firefox). */
.post.is-essay .post-content > p:first-of-type::first-letter {
  float: left;
  margin: 0.08em 0.06em 0 0;
  font-size: 3.4em;
  line-height: 0.8;
}
@supports (initial-letter: 2) or (-webkit-initial-letter: 2) {
  .post.is-essay .post-content > p:first-of-type::first-letter {
    float: none;
    margin: 0 0.08em 0 0;
    font-size: inherit;
    line-height: inherit;
    -webkit-initial-letter: 2;
    initial-letter: 2;
  }
}
@media (max-width: 768px) {
  .post.is-essay .post-content {
    line-height: 1.5;
    letter-spacing: -0.015em;
    font-weight: 440;
  }
}

.post.is-note .post-title {
  font-family: inherit;
  font-size: 3.6rem;
  font-weight: 500;
  letter-spacing: -0.0272em;
  line-height: 1.3;
}
@media (max-width: 768px) {
  .post.is-note .post-title {
    font-size: 3.2rem;
    letter-spacing: -0.025em;
  }
}

/* Static pages take a plain h1. */
.post.is-page .post-head {
  margin-top: 0;
}
.post.is-page .post-title {
  font-family: inherit;
  font-size: 4.8rem;
  font-weight: 630;
  letter-spacing: -0.023em;
  line-height: 1.2;
}
@media (max-width: 768px) {
  .post.is-page .post-title {
    font-size: 3.6rem;
  }
}

.page-not-found {
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 70vh;
}
.page-not-found h1 {
  margin-bottom: 0;
  font-size: 8rem;
  font-weight: 900;
}
