/* ==== Fonts (open licences, files in public/fonts) ==== */

@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/source-serif-4/source-serif-4-latin-ext-400-italic.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/source-serif-4/source-serif-4-latin-400-italic.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/source-serif-4/source-serif-4-latin-ext-400-italic.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/source-serif-4/source-serif-4-latin-400-italic.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/source-serif-4/source-serif-4-latin-ext-400.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/source-serif-4/source-serif-4-latin-400.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/source-serif-4/source-serif-4-latin-ext-400.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/source-serif-4/source-serif-4-latin-400.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Hanken Grotesk";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/hanken-grotesk/hanken-grotesk-latin-ext-400-italic.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Hanken Grotesk";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/hanken-grotesk/hanken-grotesk-latin-400-italic.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/hanken-grotesk/hanken-grotesk-latin-ext-400.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/hanken-grotesk/hanken-grotesk-latin-400.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/hanken-grotesk/hanken-grotesk-latin-ext-400.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/hanken-grotesk/hanken-grotesk-latin-400.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/hanken-grotesk/hanken-grotesk-latin-ext-400.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/hanken-grotesk/hanken-grotesk-latin-400.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/ibm-plex-mono/ibm-plex-mono-latin-ext-400.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/ibm-plex-mono/ibm-plex-mono-latin-400.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/ibm-plex-mono/ibm-plex-mono-latin-ext-500.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/ibm-plex-mono/ibm-plex-mono-latin-500.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Saira";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/saira/saira-latin-ext-400.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Saira";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/saira/saira-latin-400.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Saira";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/saira/saira-latin-ext-400.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Saira";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/saira/saira-latin-400.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Saira";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/saira/saira-latin-ext-400.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Saira";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/saira/saira-latin-400.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==== Tokens, base, lists of posts ==== */

:root {
  font-synthesis: none;
  --brand-white: #FFFFFF;
  --brand-off-white: #F3F3F2;
  --brand-light-gray: #969696;
  --brand-gray: #676767;
  --brand-dark-gray: #282828;
  --brand-black: #000000;
  --brand-cobalt: #0155BF;
  --brand-azure: #0387E7;
  --brand-emerald: #0E9972;
  --brand-lime: #9CC355;
  --brand-yellow: #FFCE52;
  --brand-amber: #F7A224;
  --brand-red: #EF402C;
  --mark-bg: color-mix(in srgb, var(--brand-yellow) 28%, transparent);
  --mark-bg-strong: color-mix(in srgb, var(--brand-yellow) 75%, transparent);
  --brand-lime-deep: color-mix(in srgb, var(--brand-lime) 70%, var(--brand-dark-gray));
  --brand-amber-deep: color-mix(in srgb, var(--brand-amber) 75%, var(--brand-dark-gray));
  --content-pad: 1.3rem;
  --content-max: calc(660px + 2 * var(--content-pad));
  --bg_h: white;
  --bg: white;
  --bg_s: white;
  --bg_code: #f3f3f2;
  --bg1: #ebdbb2;
  --bg2: #d5c4a1;
  --bg3: #bdae93;
  --bg4: #a89984;
  --fg: #282828;
  --fg_code: #64a24e;
  --fg1: #3c3836;
  --fg2: #504945;
  --fg3: #6b6866;
  --fg4: #676767;
  --fg5: #969696;
  --red: #AD2111;
  --green: #9CC355;
  --yellow: #b57614;
  --blue: #0E9EE4;
  --purple: #8f3f71;
  --aqua: #427b58;
  --orange: #af3a03;
  --gray: #817d79;
  --red-dim: #cc2412;
  --green-dim: #98971a;
  --yellow-dim: #d79921;
  --blue-dim: #458598;
  --purple-dim: #b16286;
  --aqua-dim: #689d6a;
  --orange-dim: #d65d0e;
  --gray-dim: #817d79;
  --tinker-spool: color-mix(in srgb, var(--brand-dark-gray) 20%, var(--brand-white));
  --hover-bg: rgba(128, 128, 128, .12);
  --font-sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-sans-fallback: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --font-serif: "Source Serif 4", Georgia, serif;
  --font-logo: "Saira", sans-serif;
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --control-height: 2.5rem;
  --control-height-sm: 2.25rem;
  --control-height-lg: 2.75rem;
  --control-padding-inline: 1.125rem;
  --site-header-height: 50px;
  --global-top-offset: 0px;
}

@media(min-width:769px) {
  :root {
    --site-header-height: 54px;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-y: scroll;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--fg4) var(--bg);
  scroll-padding-top: calc(var(--site-header-height) + 1rem);
}

body {
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.6;
  background-color: var(--bg);
  color: var(--fg);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-x: clip;
}

a {
  text-decoration: none;
  transition: color .3s ease-in-out,opacity .3s ease-in-out;
}

a:link {
  color: var(--fg4);
}

a:hover,
a:visited {
  color: var(--fg4);
  opacity: 1;
}

::selection {
  background-color: #0000001f;
}

time {
  color: var(--fg4);
  min-width: 5rem;
}

hr {
  background-color: var(--fg4);
  margin-top: 1rem;
  margin-bottom: 1rem;
  border: 0;
  height: 1px;
}

#wrapper {
  background-color: var(--bg);
  display: flex;
  flex-direction: column;
  font-family: var(--font-serif);
  min-height: 100vh;
  overflow-wrap: break-word;
  padding: var(--site-header-height) 1rem 0;
}

@media screen and (max-width:768px) {
  #wrapper {
    padding-left: .33rem;
    padding-right: .33rem;
  }
}

.paginator {
  align-items: center;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-top: 3.5rem;
  position: relative;
}

.paginator #back-to-top {
  position: absolute;
  left: 50%;
  transform: translate(-50%);
}

::-webkit-scrollbar {
  background-color: var(--bg);
  height: 8px;
  width: 8px;
}

::-webkit-scrollbar-thumb {
  background-color: var(--fg4);
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--fg1);
}

main {
  margin: 0;
  flex: 1;
  padding-left: 1rem;
  padding-right: 1rem;
}

#main {
  align-self: center;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  width: 100%;
  margin: auto;
  max-width: 680px;
  padding: 1rem;
  animation: fadeIn .6s ease-in-out;
}

@media screen and (max-width:768px) {
  #main {
    width: 100%;
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

#main.index.content {
  max-width: var(--content-max);
}

#main.content>article.content {
  max-width: 660px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

#main.index.list {
  max-width: var(--content-max);
}

#main.index.list .blog-page-title,
#main.index.list .content {
  max-width: 660px;
  margin-left: 0;
  margin-right: 0;
}

#main.index.content ul {
  list-style-type: none;
  margin-left: 0;
  padding-left: 0;
}

#main.index.content ul li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: .75rem;
}

#main.index.content ul li a {
  color: var(--fg);
  text-decoration: none;
  position: relative;
  transition: color .3s ease-in-out;
}

#main.index.content ul li a:after {
  background-color: var(--fg);
  content: "";
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: .5px;
  bottom: 0;
  margin-bottom: 2px;
  left: 0;
  transform-origin: bottom right;
  transition: transform .2s ease-out;
}

#main.index.content ul li a:hover:after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

@media(max-width:600px) {
  #main.index.content ul li {
    flex-direction: column;
    align-items: flex-start;
  }
  #main.index.content h2[style*="text-align: center"] {
    text-align: left!important;
  }
}

#main.index.content p {
  margin-bottom: 1.8rem;
}

#main.index.content h1,
#main.index.content h2,
#main.index.content h3,
#main.index.content h4,
#main.index.content h5,
#main.index.content h6 {
  text-align: left!important;
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 400;
  letter-spacing: -.02em;
}

#main.index.content h2 {
  margin-top: 2.8rem;
  margin-bottom: 1rem;
}

#main.index.content h3 {
  margin-top: 2.5rem;
  margin-bottom: .8rem;
}

@media(max-width:1170px) {
  #main.index,
  #main.content {
    padding-left: var(--content-pad);
    padding-right: var(--content-pad);
  }
}

.blog-page-title {
  font-family: var(--font-sans);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: -.015em;
  text-align: left;
  margin: 0;
  padding-top: 1rem;
  line-height: 1.1;
}

#main.index.list .content {
  font-style: normal;
}

#main.index.list.section-blog>.content {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--fg4);
}

#main.index.list .content .news-index-contact {
  font-family: var(--font-sans);
  font-size: 15px;
  padding-top: 1.5rem;
}

.content figure svg,
figure svg {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  height: auto;
}

figure.half-width {
  margin-left: auto;
  margin-right: auto;
  max-width: 620px;
}

figure.half-width+figcaption,
figure>figcaption {
  text-align: center;
}

/* ==== Prose inside .content ==== */

.content {
  padding-top: .5rem;
}

.content :last-child {
  margin-bottom: 0;
}

.content a:where(:not(.btn,.brand-logo,.rich-link__card,.social-post__plain-link)) {
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb,var(--fg4) 30%,transparent);
  transition: color .3s ease-in-out,text-decoration-color .3s ease-in-out;
}

.content a:where(:not(.btn,.brand-logo,.rich-link__card,.social-post__plain-link)):hover {
  color: var(--fg2);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb,var(--fg2) 30%,transparent);
}

.content a.footnote-ref {
  text-decoration: none;
}

.content a.footnote-ref:before {
  content: "[";
}

.content a.footnote-ref:after {
  content: "]";
}

.content blockquote:not(.epigraph):not(.twitter-tweet) {
  border-left: 2px solid color-mix(in srgb,var(--fg4) 35%,var(--bg) 65%);
  color: var(--fg2);
  font-style: normal;
  margin: 1.6rem 0 1.6rem 1rem;
  padding: .1rem 0 .1rem 1.25rem;
}

.content blockquote blockquote {
  background-color: var(--bg1);
}

.content blockquote.epigraph {
  background: transparent;
  border: none;
  color: var(--fg2);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.5;
  margin: 1.2rem 0 1.2rem 1rem;
  max-width: 100%;
  padding: 0 1.25rem;
  position: relative;
}

.content blockquote.epigraph:before {
  content: "";
  position: absolute;
  left: 0;
  top: .2rem;
  bottom: .2rem;
  width: 3px;
  background-color: var(--fg5);
  opacity: .6;
}

.content pre {
  background-color: var(--bg_code)!important;
  border-radius: .45rem;
  font-family: var(--font-mono);
  position: relative;
  overflow-x: auto;
  padding: 1rem 2rem 1rem 1rem;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  font-variant-ligatures: none;
  font-weight: 400;
}

.content pre:has(code[data-lang]) {
  padding-top: 2rem;
}

.code-block-wrapper {
  position: relative;
}

button.copy-button {
  position: absolute;
  top: .5rem;
  right: .5rem;
  left: auto;
  background-color: transparent;
  color: var(--fg4);
  border: none;
  border-radius: .3rem;
  padding: .4rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity .2s ease-in-out,background-color .15s ease-in-out,color .15s ease-in-out;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: .25rem;
}

.code-block-wrapper:hover .copy-button,
.content pre:hover button.copy-button {
  opacity: 1;
}

button.copy-button:hover {
  opacity: 1!important;
  background-color: color-mix(in srgb,var(--fg4) 8%,transparent);
  color: var(--fg2);
}

button.copy-button svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.content pre code {
  padding: 0;
  color: var(--fg3);
  font-family: inherit;
  padding: 0 .8rem 0 .2rem;
  font-size: 13px;
  white-space: pre;
  word-break: normal;
  overflow-wrap: normal;
  display: block;
  line-height: 1.4;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  letter-spacing: 0;
  font-weight: 400;
}

.content pre::selection,
.content pre code::selection,
.content pre *::selection {
  background-color: #d0d0d0;
}

.content pre::-moz-selection,
.content pre code::-moz-selection,
.content pre *::-moz-selection {
  background-color: #d0d0d0;
}

.content pre code[data-lang]:before {
  content: attr(data-lang);
  position: absolute;
  top: .45rem;
  left: .75rem;
  z-index: 5;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: .02em;
  color: var(--fg4);
  padding: 0;
  text-transform: lowercase;
  pointer-events: none;
}

.content :is(code,kbd,samp) {
  color: inherit;
  font-family: var(--font-mono);
  padding: 0;
  font-size: .9em;
  font-variant-numeric: normal;
  line-height: inherit;
  text-wrap: wrap;
  display: inline;
}

.content code {
  color: var(--red);
}

.content :is(code,kbd,samp) :is(code,kbd,samp) {
  font-size: 1em;
}

.content :is(strong,b) :is(code,kbd,samp),
.content :is(code,kbd,samp) :is(strong,b) {
  font-weight: 500;
}

@supports (font-size-adjust: ex-height 1) and (line-height: 1lh) {
  .content :is(code,kbd,samp):where(:not(pre *)) {
    font-size: 1ex;
    font-size-adjust: ex-height 1;
    line-height: 1lh;
  }
}

.content mark {
  background-color: var(--mark-bg);
  color: var(--fg);
  border-radius: 0;
  padding: 0;
}

.content table {
  display: block;
  overflow-x: auto;
  margin: auto;
  background-color: var(--bg);
  border-collapse: collapse;
  border: none;
}

.content table td,
.content table th {
  border: var(--fg4) 1px solid;
  padding: .75rem;
}

.content table td {
  vertical-align: top;
}

.content table th {
  background-color: var(--bg_s);
  font-weight: 700;
}

#main.content table th {
  text-align: left;
  vertical-align: top;
}

#main.content table td,
#main.content table th {
  min-width: 18ch;
}

#main.content table {
  --edge-fade: 2rem;
  mask-image: none;
  animation: table-edge-fade linear both;
  animation-timeline: scroll(self inline);
}

@keyframes table-edge-fade {
  0% {
    mask-image: linear-gradient(to right,#000 0%,#000 var(--edge-fade),#000 calc(100% - var(--edge-fade)),transparent 100%);
  }
  to {
    mask-image: linear-gradient(to right,transparent 0%,#000 var(--edge-fade),#000 calc(100% - var(--edge-fade)),#000 100%);
  }
}

.content ul {
  list-style: square;
  margin-left: 1.5rem;
  margin-top: 1rem;
  margin-bottom: 1.2rem;
}

.content ul>li {
  margin-bottom: .2rem;
}

.content ol {
  list-style: decimal;
  margin-left: 2rem;
  margin-top: 1rem;
  margin-bottom: 1.2rem;
}

.content ol>li {
  margin-bottom: .2rem;
}

.content ol ol {
  list-style-type: lower-alpha;
}

.content dt {
  font-weight: 700;
}

.content dd {
  margin-left: 1rem;
}

.content blockquote,
.content div,
.content h1:where(:not([data-typography])),
.content h2:where(:not([data-typography])),
.content h3:where(:not([data-typography])),
.content h4:where(:not([data-typography])),
.content h5:where(:not([data-typography])),
.content h6:where(:not([data-typography])),
.content p:where(:not([data-typography])),
.content pre,
.content table,
.content dl,
.content video {
  margin-top: 0rem;
  margin-bottom: 1.333rem;
}

.content h1:where(:not([data-typography])) {
  font-size: 1.75rem;
  margin: 1.25em 0 .6em;
  font-weight: 700;
  line-height: 1.4;
}

#main.content article.content h1:where(:not([data-typography])) {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 30px;
  line-height: 1.4;
}

#main.content article.content h1:where(:not([data-typography])):first-child {
  text-align: center;
  max-width: 480px;
  margin: 1.5rem auto 0;
}

#main.content article.content h1:where(:not([data-typography]))+h3 {
  margin-top: .4rem;
  margin-bottom: 1.2rem;
  text-align: center;
}

.content h2:where(:not([data-typography])) {
  font-size: 1.45rem;
  margin: 1.25em 0 .6em;
  font-weight: 600;
  line-height: 1.4;
}

.content h3:where(:not([data-typography])) {
  font-size: 1.35rem;
  margin: 1.4em 0 .5em;
  font-weight: 400;
  font-style: italic;
  line-height: 1.4;
}

.content h4:where(:not([data-typography])) {
  font-size: .97rem;
  margin: 1.4em 0 .7em;
  font-weight: 400;
  font-style: italic;
}

.content h5:where(:not([data-typography])) {
  font-size: .76rem;
  margin: 1.4em 0 .7em;
  font-weight: 400;
  font-style: italic;
}

.content h6:where(:not([data-typography])) {
  font-size: .6rem;
  margin: 1.4em 0 .7em;
  font-weight: 400;
  font-style: italic;
}

.content figure+h1,
.content figure+h2,
.content figure+h3,
.content figure+h4,
.content figure+h5,
.content figure+h6 {
  margin-top: 2rem;
}

.content img {
  max-width: 100%;
}

#back-to-top:hover {
  text-decoration: underline!important;
}

/* ==== Article and news post ==== */

#main.post .post-title {
  max-width: 710px;
  margin: 1.5rem auto 0;
  text-wrap: balance;
}

#main.post .post-heading.news-post .post-title {
  max-width: 600px;
}

#main.post .post-subtitle {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 24px;
  color: var(--fg4);
  margin-top: .5rem;
  margin-bottom: 1rem;
  font-style: italic;
}

#main.post .post-heading {
  text-align: center;
}

#main.post .post-heading .publish-metadata {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--fg3);
  font-size: 15px;
  line-height: 17px;
  margin-top: 1rem;
  margin-bottom: 2rem;
  font-family: var(--font-sans);
}

#main.post .post-heading:has(~.post-cover) .publish-metadata {
  margin-bottom: 0rem;
}

#main.post .post-heading .publish-metadata .author {
  font-size: 15px;
  line-height: 21px;
  letter-spacing: .24px;
  color: var(--fg);
  font-family: var(--font-sans);
  text-transform: none;
  text-wrap: balance;
  overflow-wrap: normal;
  display: block;
  max-width: 680px;
}

#main.post .post-heading .publish-metadata .author a {
  color: inherit;
  text-decoration: none;
}

#main.post .post-heading .publish-metadata .author a:hover {
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb,var(--fg) 20%,transparent);
  text-underline-offset: 2px;
}

#main.post .post-heading .publish-metadata svg {
  display: inline-block;
  margin: auto;
}

#main.post .post-heading .publish-metadata>span {
  display: inline-block;
  padding-top: .6em;
  font-family: var(--font-sans);
}

#main.post .post-heading .publish-metadata.date-only>span {
  padding-top: 0;
}

#main.post article h1 {
  text-align: left;
  margin-top: 2.8rem;
  margin-bottom: 1rem;
}

#main.post .post-cover {
  text-align: center;
  margin: 2rem 0;
}

#main.post .post-cover svg {
  display: block;
  width: 80%;
  max-width: min(80%,100vw);
  height: auto;
  margin-left: auto;
  margin-right: auto;
}

#main.post .post-cover .cover-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
  border-radius: 0;
  box-shadow: none;
}

#main.post .post-cover .cover-video {
  width: 100%;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

#main.post .post-cover .cover-video-poster {
  appearance: none;
  aspect-ratio: 16 / 9;
  background: transparent;
  border: 0;
  border-radius: inherit;
  color: inherit;
  cursor: pointer;
  display: block;
  margin: 0;
  overflow: hidden;
  padding: 0;
  position: relative;
  width: 100%;
}

#main.post .post-cover .cover-video.is-cover-video-playing .cover-video-poster {
  pointer-events: none;
  visibility: hidden;
}

#main.post .post-cover .cover-video-poster-image {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

#main.post .post-cover .cover-video-play {
  align-items: center;
  background: #000000d1;
  border-radius: 999px;
  color: #fff;
  display: flex;
  height: clamp(46px,6vw,64px);
  justify-content: center;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%,-50%);
  width: clamp(46px,6vw,64px);
}

#main.post .post-cover .cover-video-play:before {
  background: #ffffffd6;
  content: "";
  display: block;
  height: 38%;
  margin-left: 5%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12.959 13.0371'%3E%3Cpath d='M1.30859 11.8262C1.30859 12.6367 1.76758 13.0273 2.33398 13.0273C2.57812 13.0273 2.8418 12.9492 3.0957 12.8125L12.0117 7.63672C12.7246 7.2168 12.959 6.95312 12.959 6.51367C12.959 6.07422 12.7246 5.81055 12.0117 5.39062L3.0957 0.214844C2.8418 0.078125 2.57812 0 2.33398 0C1.76758 0 1.30859 0.390625 1.30859 1.20117Z' fill='black' fill-opacity='.85'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12.959 13.0371'%3E%3Cpath d='M1.30859 11.8262C1.30859 12.6367 1.76758 13.0273 2.33398 13.0273C2.57812 13.0273 2.8418 12.9492 3.0957 12.8125L12.0117 7.63672C12.7246 7.2168 12.959 6.95312 12.959 6.51367C12.959 6.07422 12.7246 5.81055 12.0117 5.39062L3.0957 0.214844C2.8418 0.078125 2.57812 0 2.33398 0C1.76758 0 1.30859 0.390625 1.30859 1.20117Z' fill='black' fill-opacity='.85'/%3E%3C/svg%3E") center / contain no-repeat;
  width: 38%;
}

#main.post .post-cover .cover-video-poster:hover .cover-video-play,
#main.post .post-cover .cover-video-poster:focus-visible .cover-video-play {
  background: #000000d1;
}

#main.post .post-cover .cover-video-poster:focus-visible {
  outline: 3px solid color-mix(in srgb,var(--fg) 42%,transparent);
  outline-offset: 4px;
}

#main.post .post-cover .cover-video iframe {
  display: block;
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
  border: 0;
  border-radius: inherit;
}

#main.post .post-cover.compact .cover-image {
  max-width: min(88%,860px);
}

#main.post .post-cover .post-cover-caption {
  font-family: var(--font-serif);
  font-size: var(--post-caption-font-size);
  line-height: 1.4;
  text-align: center;
  color: var(--fg-muted, #666);
  margin-top: .4rem;
  margin-bottom: 0;
}

#main.post .post-cover .post-cover-caption a {
  color: inherit;
  text-decoration: none;
}

#main.post .post-cover .post-cover-caption a:hover {
  color: var(--fg2);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb,var(--fg2) 40%,transparent);
  text-underline-offset: 2px;
}

#main.post {
  margin-left: auto;
  margin-right: auto;
  max-width: 950px;
  position: relative;
  --post-caption-font-size: 13px;
  --post-caption-gap: 13px;
  --post-block-padding-y: .75rem;
  --post-code-block-padding-y: .2rem;
  --post-formula-padding-y: .45rem;
  --media-breakout: 220px;
  --post-wide-rail-width: min( calc(100vw - 4rem) , 1160px);
  --sidenote-width: 230px;
  --sidenote-gap: 64px;
  --toc-width: 210px;
  --toc-gap: 34px;
}

@media(min-width:1200px) {
  #main.post {
    max-width: 970px;
    --sidenote-width: 240px;
  }
}

@media(min-width:1400px) {
  #main.post {
    max-width: 990px;
    --sidenote-width: 250px;
  }
}

@media(min-width:1600px) {
  #main.post {
    max-width: 1010px;
    --sidenote-width: 275px;
  }
}

@media(min-width:1800px) {
  #main.post {
    max-width: 1030px;
    --sidenote-width: 300px;
  }
}

#main.post article.content {
  margin-left: auto;
  margin-right: auto;
  max-width: 660px;
  position: relative;
  overflow: visible;
  font-variant-numeric: proportional-nums lining-nums;
}

#main.post article.content :where(code,pre,table,.katex) {
  font-variant-numeric: normal;
}

#main.post article.content p:where(:not(.social-post p,[data-owned-figure] p)) {
  margin-bottom: 1.45rem;
}

#main.post article.content .post-inline-video {
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 6px;
  margin: .9rem 0 1.15rem;
  overflow: hidden;
  position: relative;
}

#main.post article.content .post-inline-video .youtube-video-poster {
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: inherit;
  color: inherit;
  cursor: pointer;
  display: block;
  height: 100%;
  margin: 0;
  overflow: hidden;
  padding: 0;
  position: relative;
  width: 100%;
}

#main.post article.content .post-inline-video.is-youtube-video-playing .youtube-video-poster {
  pointer-events: none;
  visibility: hidden;
}

#main.post article.content .post-inline-video .youtube-video-poster-image {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

#main.post article.content .post-inline-video .youtube-video-play {
  align-items: center;
  background: #000000d1;
  border-radius: 999px;
  color: #fff;
  display: flex;
  height: clamp(46px,6vw,64px);
  justify-content: center;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%,-50%);
  width: clamp(46px,6vw,64px);
}

#main.post article.content .post-inline-video .youtube-video-play:before {
  background: #ffffffd6;
  content: "";
  display: block;
  height: 38%;
  margin-left: 5%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12.959 13.0371'%3E%3Cpath d='M1.30859 11.8262C1.30859 12.6367 1.76758 13.0273 2.33398 13.0273C2.57812 13.0273 2.8418 12.9492 3.0957 12.8125L12.0117 7.63672C12.7246 7.2168 12.959 6.95312 12.959 6.51367C12.959 6.07422 12.7246 5.81055 12.0117 5.39062L3.0957 0.214844C2.8418 0.078125 2.57812 0 2.33398 0C1.76758 0 1.30859 0.390625 1.30859 1.20117Z' fill='black' fill-opacity='.85'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12.959 13.0371'%3E%3Cpath d='M1.30859 11.8262C1.30859 12.6367 1.76758 13.0273 2.33398 13.0273C2.57812 13.0273 2.8418 12.9492 3.0957 12.8125L12.0117 7.63672C12.7246 7.2168 12.959 6.95312 12.959 6.51367C12.959 6.07422 12.7246 5.81055 12.0117 5.39062L3.0957 0.214844C2.8418 0.078125 2.57812 0 2.33398 0C1.76758 0 1.30859 0.390625 1.30859 1.20117Z' fill='black' fill-opacity='.85'/%3E%3C/svg%3E") center / contain no-repeat;
  width: 38%;
}

#main.post article.content .post-inline-video .youtube-video-poster:hover .youtube-video-play,
#main.post article.content .post-inline-video .youtube-video-poster:focus-visible .youtube-video-play {
  background: #000000d1;
}

#main.post article.content .post-inline-video .youtube-video-poster:focus-visible {
  outline: 3px solid color-mix(in srgb,var(--fg) 42%,transparent);
  outline-offset: 4px;
}

#main.post article.content .post-inline-video iframe {
  border: 0;
  display: block;
  height: 100%;
  width: 100%;
}

#main.post article.content .post-inline-video[data-youtube-video] iframe {
  inset: 0;
  position: absolute;
}

#main.post article.content .post-inline-footnote {
  color: var(--fg3);
  font-family: var(--font-sans);
  font-size: var(--post-caption-font-size);
  font-weight: 400;
  line-height: 1.4;
  margin: .15rem 0 0;
}

#main.post .post-content-shell {
  align-items: start;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,660px) minmax(0,1fr);
}

#main.post .post-content-shell>article.content {
  grid-column: 2;
  width: 100%;
}

#main.post {
  counter-reset: sidenote-counter figure-counter;
}

#main.post .sidenote,
#main.post .marginnote {
  float: right;
  clear: right;
  width: var(--sidenote-width);
  margin-right: calc(-1 * var(--sidenote-width) - var(--sidenote-gap));
  margin-left: var(--sidenote-gap);
  margin-top: .3rem;
  margin-bottom: 20px;
  font-family: var(--font-serif);
  font-size: .9rem;
  line-height: 1.4;
  color: var(--fg);
  vertical-align: baseline;
  position: relative;
}

#main.post [data-toc-collision] {
  clear: right;
}

#main.post article.content ul+h2,
#main.post article.content ol+h2 {
  margin-top: .8rem;
  clear: none;
}

#main.post article.content li>p:last-child {
  margin-bottom: 0;
}

#main.post .left-toc {
  --toc-chevron-color: color-mix(in srgb, var(--fg4) 65%, var(--bg) 35%);
  --toc-chevron-gutter: 1.3rem;
  box-sizing: border-box;
  grid-column: 1;
  justify-self: end;
  position: sticky;
  top: calc(var(--global-top-offset) + 2rem);
  width: calc(var(--toc-width) + var(--toc-chevron-gutter));
  max-height: calc(100vh - var(--global-top-offset) - 3rem);
  margin: 0 var(--toc-gap) 0 0;
  overflow-y: auto;
  padding-left: var(--toc-chevron-gutter);
  transform: translateY(10px);
  font-family: var(--font-sans);
  font-size: var(--post-caption-font-size);
  line-height: 1.4;
  color: var(--fg2);
  scrollbar-width: none;
  z-index: 1;
  opacity: 1;
  transition: opacity .18s ease-in-out,visibility 0s linear 0s;
  visibility: visible;
}

#main.post .left-toc::-webkit-scrollbar {
  display: none;
}

#main.post .left-toc.is-collision-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease-in-out,visibility 0s linear .18s;
  visibility: hidden;
}

#main.post .left-toc ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

#main.post .left-toc li {
  margin: 0 0 .7rem;
  position: relative;
}

#main.post .left-toc ul ul {
  padding-left: .75rem;
  margin-top: .35rem;
}

#main.post .left-toc a {
  color: var(--fg4);
  text-decoration: none;
  transition: color .2s ease-in-out,opacity .2s ease-in-out;
  position: relative;
}

#main.post .left-toc a:hover {
  color: var(--fg1);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb,var(--fg1) 20%,var(--bg) 20%);
  text-underline-offset: 2px;
}

#main.post .left-toc a.is-active,
#main.post .left-toc a[aria-current=location] {
  color: var(--fg);
}

#main.post .left-toc .toc-active-marker {
  --toc-active-marker-size: 4px;
  background: var(--fg);
  border-radius: 50%;
  height: var(--toc-active-marker-size);
  left: calc((var(--toc-chevron-gutter) - var(--toc-active-marker-size)) / 2 - .05rem);
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  transform: translate3d(0,calc(var(--toc-active-marker-y, 0px) - 50%),0);
  transition: transform .28s cubic-bezier(.22,1,.36,1),opacity .16s ease-in-out;
  width: var(--toc-active-marker-size);
  will-change: transform,opacity;
  z-index: 0;
}

#main.post .left-toc.has-active-marker .toc-active-marker {
  opacity: 1;
}

#main.post .left-toc .toc-item.has-active-descendant>a {
  color: var(--fg2);
}

#main.post .left-toc .toc-item.is-marker-target>a {
  color: var(--fg);
}

#main.post .left-toc:has(.toc-item.is-marker-target.has-children:hover) .toc-active-marker,
#main.post .left-toc:has(.toc-item.is-marker-target.has-children>.toc-expander:focus-visible) .toc-active-marker {
  opacity: 0;
}

#main.post .left-toc .toc-expander {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 4px;
  color: var(--fg4);
  cursor: pointer;
  display: flex;
  font: inherit;
  height: 1.4em;
  justify-content: center;
  left: calc(-1 * var(--toc-chevron-gutter) + .15rem);
  line-height: 1;
  opacity: 0;
  padding: 0;
  position: absolute;
  top: 0;
  transition: box-shadow .2s ease-in-out,color .2s ease-in-out,opacity .2s ease-in-out;
  width: 1rem;
  z-index: 1;
}

#main.post .left-toc .toc-expander:focus {
  outline: none;
}

#main.post .left-toc .toc-expander-icon {
  display: block;
  font-size: 1.1em;
  transform: translate(-1px);
  transition: transform .2s ease-in-out;
}

#main.post .left-toc .toc-item.has-children>.toc-list {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-.2rem);
  transition: max-height .24s ease-in-out,margin-top .24s ease-in-out,opacity .18s ease-in-out,transform .24s ease-in-out,visibility 0s linear .24s;
  visibility: hidden;
}

#main.post .left-toc .toc-item.has-children:hover>.toc-expander,
#main.post .left-toc .toc-expander:focus-visible {
  color: var(--toc-chevron-color);
  opacity: 1;
}

#main.post .left-toc .toc-expander:focus-visible {
  box-shadow: inset 0 0 0 1px color-mix(in srgb,var(--fg4) 55%,transparent);
  outline: none;
}

#main.post .left-toc .toc-item.is-expanded>.toc-expander .toc-expander-icon {
  transform: rotate(90deg) translate(-1px);
}

#main.post .left-toc .toc-item.has-children.is-expanded>.toc-list {
  max-height: var(--toc-child-height, 18rem);
  opacity: 1;
  transform: translateY(0);
  transition: max-height .28s ease-in-out,margin-top .28s ease-in-out,opacity .2s ease-in-out,transform .28s ease-in-out,visibility 0s linear 0s;
  visibility: visible;
}

#main.post .left-toc .toc-level-2 {
  padding-left: .75rem;
  margin-top: 0;
}

#main.post .left-toc .toc-item.has-children.is-expanded>.toc-level-2 {
  margin-top: .35rem;
}

#main.post .left-toc .toc-level-3 {
  padding-left: 1.25rem;
  color: var(--fg4);
}

#main.post .sidenote-number {
  counter-increment: sidenote-counter;
  pointer-events: none;
}

#main.post .sidenote-number:after,
#main.post .sidenote:before {
  font-family: var(--font-serif);
  font-size: 1em;
  vertical-align: baseline;
  color: inherit;
  font-variant-position: super;
}

#main.post .sidenote-number:after {
  content: counter(sidenote-counter);
}

#main.post .sidenote-citation-separator {
  color: inherit;
  font-size: .6em;
  line-height: 0;
  vertical-align: .46em;
  white-space: pre;
}

#main.post .sidenote:before {
  content: counter(sidenote-counter);
  padding-right: .2rem;
}

#main.post .sidenote-number[data-note] {
  counter-increment: none;
}

#main.post .sidenote-number[data-note]:after,
#main.post .sidenote[data-note]:before {
  content: attr(data-note);
}

#main.post blockquote .sidenote,
#main.post blockquote .marginnote {
  text-align: left;
}

#main.post figure:where(:not([data-owned-figure])) {
  position: relative;
  counter-increment: figure-counter;
  overflow: visible;
  display: block;
  margin: 1.8rem 0;
  padding-block: var(--post-block-padding-y);
}

#main.post article.content .code-block-wrapper {
  margin: 1.2rem 0;
  padding-block: var(--post-code-block-padding-y);
}

#main.post article.content .code-block-wrapper>pre {
  margin: 0;
}

#main.post article.content .code-block-wrapper>.copy-button {
  top: calc(var(--post-code-block-padding-y) + .5rem);
}

#main.post article.content>pre {
  margin: calc(1.2rem + var(--post-code-block-padding-y)) 0;
}

#main.post figure:where(:not([data-owned-figure])) figcaption:where(:not([data-owned-caption])) {
  position: static;
  display: block;
  width: 100%;
  margin: var(--post-caption-gap) 0 0;
  font-size: var(--post-caption-font-size);
  line-height: 1.4;
  font-family: var(--font-sans);
  font-weight: 400;
  text-align: left;
  color: var(--fg3);
}

#main.post.news-post figure:where(:not([data-owned-figure])) figcaption:where(:not([data-owned-caption])),
#main.post.news-post .image-caption,
#main.post.news-post .post-cover .post-cover-caption {
  font-family: var(--font-sans);
  font-size: var(--post-caption-font-size);
}

#main.post figure:where(:not([data-owned-figure])) figcaption:where(:not([data-owned-caption])):before {
  content: "Figure " counter(figure-counter) ": ";
  font-weight: 500;
}

#main.post figure.half-width img {
  display: block;
  width: 70%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
}

#main.post article.content img {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

#main.post article.content .post-inline-video {
  content-visibility: auto;
  contain-intrinsic-size: auto 560px;
}

#main.post article.content .post-inline-video {
  contain-intrinsic-size: auto 371px;
}

input.margin-toggle {
  display: none;
}

label.sidenote-number {
  display: inline-block;
  max-height: 2rem;
  cursor: pointer;
}

label.margin-toggle:not(.sidenote-number) {
  display: none;
}

#main.post article.content svg:not(.octicon):where(:not(.btn svg,[data-owned-figure] svg)) {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

#main.post figure svg:where(:not(.btn svg,[data-owned-figure] svg)) {
  width: 100%;
  max-width: 100%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
}

#main.post .paginator {
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
  font-family: var(--font-sans);
  display: grid;
  grid-template-columns: repeat(3,1fr);
  align-items: center;
  font-size: 15px;
  width: 100%;
}

#main.post .paginator a {
  font-family: var(--font-sans)!important;
  color: var(--fg4);
  text-decoration: none;
  transition: color .2s ease-in-out,opacity .2s ease-in-out;
  position: relative;
  display: block;
  padding: .5rem 0;
  text-align: center;
}

#main.post .paginator a:hover {
  color: var(--fg1);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb,var(--fg1) 20%,var(--bg) 20%);
  text-underline-offset: 2px;
}

#main.post .paginator a:first-child {
  text-align: left;
}

#main.post .paginator a:nth-child(2) {
  text-align: center;
}

#main.post .paginator a:last-child {
  text-align: right;
}

#main.post .paginator a:not([href]) {
  pointer-events: none;
}

#main.post .paginator #back-to-top:hover {
  color: var(--fg1);
  text-decoration: underline!important;
  text-decoration-color: color-mix(in srgb,var(--fg1) 20%,var(--bg) 20%)!important;
  text-underline-offset: 2px!important;
}

#main.post .paginator #back-to-top {
  position: static;
  left: auto;
  transform: none;
}

#main.post article.content h2,
#main.post article.content h3,
#main.post article.content h4,
#main.post article.content h5,
#main.post article.content h6 {
  position: relative;
}

#main.post article.content h2 {
  margin-top: 3.1rem;
  margin-bottom: 1.2rem;
}

#main.post article.content>:is(h2,h3,h4,h5,h6):first-child {
  margin-top: 0;
}

#main.post article.content h3 {
  margin-top: 2.8rem;
  margin-bottom: 1.05rem;
}

#main.post article.content h2+h3 {
  margin-top: .85rem;
}

#main.post article.content h4 {
  margin-top: 2.2rem;
  margin-bottom: .8rem;
}

#main.post article.content h5,
#main.post article.content h6 {
  margin-top: 2rem;
  margin-bottom: .7rem;
}

#main.post article.content .heading-text {
  position: static;
  display: inline;
}

#main.post article.content .heading-anchor {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: -1.2rem;
  opacity: 0;
  visibility: visible;
  pointer-events: auto;
  width: 1rem;
  text-align: center;
  color: color-mix(in srgb,var(--fg4) 65%,transparent);
  text-decoration: none;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1em;
  transition: opacity .15s ease-in-out,color .15s ease-in-out;
}

#main.post article.content h2:hover .heading-anchor,
#main.post article.content h3:hover .heading-anchor,
#main.post article.content h4:hover .heading-anchor,
#main.post article.content h5:hover .heading-anchor,
#main.post article.content h6:hover .heading-anchor {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#main.post article.content .heading-anchor:hover {
  color: color-mix(in srgb,var(--fg4) 80%,transparent);
  outline: none;
}

#main.post article.content .heading-anchor:hover,
#main.post article.content .heading-anchor:focus {
  opacity: 1;
  color: color-mix(in srgb,var(--fg4) 80%,transparent);
}

@media(max-width:1279px) {
  #main.post .sidenote,
  #main.post .marginnote {
    display: none;
    position: static;
    float: none;
    width: 95%;
    margin: 1rem 2.5%;
    clear: both;
  }
  #main.post .left-toc {
    display: none;
  }
  #main.post .post-content-shell {
    display: block;
  }
  #main.post .margin-toggle:checked+.sidenote,
  #main.post .margin-toggle:checked+.marginnote {
    display: block;
  }
  #main.post .sidenote-number {
    pointer-events: auto;
    cursor: pointer;
  }
  label.margin-toggle:not(.sidenote-number) {
    display: none;
  }
  #main.post figure:where(:not([data-owned-figure])) figcaption:where(:not([data-owned-caption])) {
    font-size: var(--post-caption-font-size);
    margin: var(--post-caption-gap) 0 0;
    color: var(--fg3);
  }
  #main.post article.content figure:not(.half-width):where(:not([data-owned-figure])) {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    transform: none;
  }
  #main.post article.content table {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    transform: none;
  }
  #main.post {
    margin-left: 0;
    margin-right: 0;
    padding-left: 1.3rem;
    padding-right: 1.3rem;
    max-width: 100%;
  }
  #main.post article.content {
    margin-left: auto;
    margin-right: auto;
    max-width: min(100%,660px);
  }
  #main.post .post-cover {
    margin-left: auto;
    margin-right: auto;
    max-width: min(100%,820px);
    width: min(100%,820px);
  }
  #main.post .post-cover.compact .cover-image {
    max-width: 100%;
  }
  #main.post .post-cover svg {
    width: 100%;
    max-width: 100%;
    height: auto;
    position: static;
    left: auto;
    transform: none;
    padding-left: 0;
    padding-right: 0;
    margin-top: 0;
  }
}

#main.post article.content table {
  display: table!important;
  overflow-x: visible!important;
  margin: calc(1.8rem + var(--post-block-padding-y)) auto;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: var(--post-caption-font-size);
  line-height: 1.5;
  width: 100%;
  max-width: 100%;
}

#main.post article.content figure:has(figcaption) table {
  margin: 0 auto;
}

@media(min-width:1171px) {
  #main.post article.content table.wide-table {
    width: min(calc(100% + var(--media-breakout)),calc(100vw - 3rem));
    max-width: none;
    margin-left: 50%;
    margin-right: 0;
    transform: translate(-50%);
  }
}

#main.post article.content th,
#main.post article.content td {
  font-family: var(--font-sans);
  font-size: inherit;
  padding: .75rem 1rem;
  text-align: left;
  border: none;
  border-bottom: 1px solid var(--benchmark-rule-color, color-mix(in srgb, var(--fg4) 25%, var(--bg) 75%));
}

#main.post article.content th {
  font-weight: 400;
  background-color: transparent;
  color: var(--fg3);
}

#main.post article.content tbody tr:last-child td {
  border-bottom: none;
}

#main.post article.content tbody tr:hover {
  background-color: color-mix(in srgb,var(--fg4) 3%,var(--bg) 97%);
}

#main.post article.content table.center-content th,
#main.post article.content table.center-content td {
  text-align: center;
}

/* ==== Text styles, post list, header, home logo, footer ==== */

:where(.typography) {
  margin: 0;
}

.typography {
  font: 400 1rem/1.5 var(--font-sans);
  letter-spacing: normal;
  text-transform: none;
}

.typography[data-typography=table-caption] {
  font-weight: 500;
}

.typography[data-typography=title] {
  font-family: var(--font-serif);
  font-size: clamp(2rem,3.6vw,2.75rem);
  line-height: 1.14;
}

.typography[data-typography=heading] {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  line-height: 1.3;
}

.typography[data-typography=subheading] {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.3;
}

.typography[data-typography=subheading-large] {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  line-height: 1.25;
}

.typography[data-typography=eyebrow] {
  letter-spacing: -.01em;
  font-feature-settings: "ss05";
  font-size: 1.375rem;
  font-weight: 500;
  line-height: normal;
}

.typography[data-typography=body-small] {
  font-size: .875rem;
  line-height: 1.5;
}

.typography[data-typography=body-large] {
  font-size: 1.25rem;
}

.typography[data-typography=body-legacy] {
  font-size: .9375rem;
}

.typography[data-typography=label] {
  letter-spacing: -.01em;
  line-height: 1.3;
}

.typography[data-typography=quote] {
  font-family: var(--font-serif);
  line-height: 1.5;
}

.typography[data-typography=meta] {
  font-size: .8125rem;
}

.typography[data-typography^=article-] {
  font: 400 1.0625rem/1.6 var(--font-serif);
  font-variant-numeric: proportional-nums lining-nums;
}

.typography[data-typography=article-title] {
  font-size: 1.875rem;
  font-weight: 600;
  line-height: 1.4;
}

.typography[data-typography=article-heading] {
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.4;
}

.typography[data-typography=article-subheading] {
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.4;
}

.typography[data-typography=article-sub-subheading] {
  font-weight: 600;
}

.typography[data-typography=article-note] {
  font-size: .9rem;
  line-height: 1.4;
}

.typography[data-typography=article-caption] {
  font: 400 var(--post-caption-font-size,.8125rem)/1.4 var(--font-sans);
}

.post-group {
  max-width: 660px;
  padding-top: 1.6rem;
  list-style-type: none;
  & li {
    padding-bottom: .4rem;
    position: relative;
  }
  & li+li {
    padding-top: .4rem;
  }
  & li+li:before {
    content: "";
    border-top: 1px solid color-mix(in srgb, var(--fg4) 10%, transparent);
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
  }
  & .post-item-link {
    color: inherit;
    cursor: pointer;
    border-radius: 8px;
    margin: 0 -1.6rem;
    padding: 1rem 1.6rem;
    line-height: 1.4;
    text-decoration: none;
    display: block;
    @media (width>=768px) {
      grid-template-columns: 7rem 1fr;
      align-items: baseline;
      gap: 1.5rem;
      margin: 0 -1.5rem;
      padding: 1.2rem 1.5rem;
      display: grid;
    }
  }
  & .post-info {
    flex-direction: column;
    align-items: flex-start;
    gap: .25rem;
    display: flex;
    @media (width>=768px) {
      grid-area: 1/2;
    }
  }
  & .post-title {
    color: var(--fg);
    text-wrap: balance;
    text-underline-offset: 2px;
    font-size: 17px;
    font-weight: 500;
    text-decoration: underline #0000;
    transition: color .2s,text-decoration-color .2s;
    display: inline-block;
  }
  & .post-subtitle {
    color: var(--fg1);
    font-size: .95em;
    line-height: 1.4;
    transition: color .2s;
  }
  & .author-date {
    color: var(--fg4);
    font-size: 15px;
    font-family: var(--font-sans);
    display: block;
  }
  & time {
    font-size: 15px;
    font-family: var(--font-sans);
    color: var(--fg4);
    margin-top: .25rem;
    transition: color .2s;
    display: block;
    @media (width>=768px) {
      text-align: left;
      white-space: nowrap;
      grid-area: 1/1;
      margin-top: 0;
    }
  }
  @media (hover:hover) {
    & .post-item-link:hover {
      & .post-title {
        color: var(--fg);
        text-decoration-color: color-mix(in srgb, var(--fg2) 20%, transparent);
      }
      & .post-subtitle {
        color: var(--fg);
      }
      & .author-date,
      & time {
        color: var(--fg3);
      }
    }
  }
}

.container {
  --container-content-width: 67.5rem;
  --container-gutter: clamp(1.3rem, 4vw, 3rem);
  box-sizing: border-box;
  inline-size: 100%;
  max-inline-size: calc(var(--container-content-width) + 2 * var(--container-gutter));
  min-inline-size: 0;
  padding-inline: var(--container-gutter);
  margin-inline: auto;
}

:root:has(site-navigation) {
  --global-top-offset: var(--site-header-height);
}

body:has(site-navigation[data-menu-open]) {
  overflow: hidden;
}

site-navigation {
  display: contents;
}

#header {
  background-color: var(--bg);
  box-sizing: border-box;
  flex-direction: column;
  align-items: center;
  display: flex;
}

.site-header {
  box-sizing: border-box;
  z-index: 1002;
  height: var(--site-header-height);
  background: var(--bg);
  justify-content: space-between;
  align-items: center;
  padding: 0 .6rem 0 1rem;
  transition: transform .22s cubic-bezier(.22,1,.36,1);
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

.site-header[data-scroll-hidden] {
  pointer-events: none;
  transform: translateY(-100%);
}

site-navigation[data-menu-open] .site-header,
.site-header:has(:focus-visible) {
  pointer-events: auto;
  transform: none;
}

.site-header:has(:focus-visible) {
  transition: none;
}

.navbar-logo {
  flex-shrink: 0;
}

.navbar-logo a,
.navbar-logo a:is(:link,:visited,:active,:hover) {
  letter-spacing: 1.7px;
  color: var(--fg4);
  font-family: var(--font-logo);
  font-size: 17px;
  font-style: normal;
  font-weight: 500;
  line-height: 25px;
  text-decoration: none;
  transition: opacity .3s ease-in-out;
}

.navbar-logo a:hover {
  opacity: .8;
}

.nav-group {
  align-items: center;
  gap: 0;
  display: flex;
}

.top-nav {
  font-family: var(--font-sans);
  align-items: center;
  gap: 1.2rem;
  display: none;
}

.top-nav a {
  font-family: var(--font-sans);
  color: var(--fg1);
  letter-spacing: -.01em;
  opacity: 1;
  align-items: center;
  height: 100%;
  font-size: 15px;
  font-style: normal;
  font-weight: 400;
  text-decoration: none;
  transition: opacity .3s ease-in-out;
  display: flex;
}

.top-nav a:hover {
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--fg) 20%, transparent);
  text-underline-offset: 2px;
}

.hamburger {
  z-index: 1001;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  background: 0 0;
  border: none;
  width: 40px;
  height: 40px;
  margin-left: .5rem;
  padding: 8px;
  display: inline-block;
  position: relative;
}

.hamburger span {
  background: var(--fg3);
  border-radius: 2px;
  height: 2px;
  transition: transform .25s,opacity .2s,top .25s,bottom .25s;
  position: absolute;
  left: 9px;
  right: 9px;
}

.hamburger span:first-child {
  top: 12px;
}

.hamburger span:nth-child(2) {
  top: 19px;
}

.hamburger span:nth-child(3) {
  bottom: 12px;
}

.hamburger.is-active span:first-child {
  top: 19px;
  transform: rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
  top: 19px;
  bottom: auto;
  transform: rotate(-45deg);
}

.mobile-menu-overlay {
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1000;
  justify-content: center;
  align-items: center;
  transition: opacity .25s,visibility .25s;
  display: flex;
  position: fixed;
  inset: 0;
}

.mobile-menu-overlay[hidden] {
  display: none;
}

.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu-nav {
  text-align: center;
  flex-direction: column;
  gap: 1.25rem;
  display: flex;
}

.mobile-menu-nav a {
  font-family: var(--font-sans);
  letter-spacing: -.01em;
  color: var(--fg);
  font-size: 20px;
  font-weight: 400;
  text-decoration: none;
}

@media (width>=641px) {
  .top-nav {
    gap: 1.5rem;
    display: flex;
  }
  .hamburger {
    display: none;
  }
  .site-header {
    padding-right: 1rem;
  }
}

@media (width>=769px) {
  .site-header {
    padding-inline: .33rem;
    left: 1rem;
    right: 1rem;
  }
  .top-nav {
    gap: 1.75rem;
  }
}

@media (prefers-reduced-motion:reduce) {
  .site-header,
  .mobile-menu-overlay,
  .hamburger span {
    transition: none;
  }
}

footer {
  --footer-inset: var(--content-pad);
  --footer-column-gap: clamp(1rem, 2.5vw, 2rem);
  --footer-max-width: 952px;
  color: var(--fg4);
  background-color: var(--bg);
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  margin-top: 9rem;
  padding: 0 0 2rem;
  display: flex;
}

footer[data-spacing=compact] {
  margin-top: 4.5rem;
}

footer[data-spacing=tight] {
  margin-top: 2rem;
}

footer:before {
  content: "";
  height: 1px;
  width: calc(100% - 2 * var(--footer-inset));
  max-width: var(--footer-max-width);
  background-color: color-mix(in srgb, var(--fg4) 10%, transparent);
  margin: 0 auto 2rem;
  display: block;
}

.footer-columns {
  width: calc(100% - 2 * var(--footer-inset));
  max-width: var(--footer-max-width);
  text-align: left;
  margin: 0 auto;
  position: relative;
}

.footer-links {
  gap: 2rem var(--footer-column-gap);
  grid-template-columns: repeat(2,minmax(0,1fr));
  width: 100%;
  display: grid;
}

.footer-column {
  text-align: left;
  align-self: flex-start;
  min-width: 0;
}

.footer-column h4 {
  color: var(--fg4);
  margin: 0 0 .5rem;
}

.footer-column .footer-subheading {
  color: var(--fg4);
  margin: 2rem 0 .5rem;
}

.footer-column ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-column li {
  margin-bottom: .5rem;
}

.footer-column a,
.footer-column span {
  color: var(--fg1);
  text-decoration: none;
  transition: color .3s ease-in-out,opacity .3s ease-in-out;
}

.footer-column a:hover {
  color: var(--fg1);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--fg) 20%, transparent);
  text-underline-offset: 2px;
}

.footer-copyright {
  color: var(--fg4);
  text-align: left;
  width: calc(100% - 2 * var(--footer-inset));
  max-width: var(--footer-max-width);
  margin: 3rem auto 0;
}

.footer-copyright span {
  display: block;
}

@media (width>640px) {
  footer {
    padding-bottom: 1.75rem;
  }
}

@media (width>800px) {
  .footer-links {
    grid-template-columns: repeat(5,minmax(0,1fr));
    row-gap: normal;
  }
}

/* ==== Buttons ==== */

.btn-text {
  text-box: trim-both cap alphabetic;
}

@supports not (text-box:trim-both cap alphabetic) {
  .btn .btn-text {
    line-height: 1;
  }
}

.btn {
  --btn-padding-inline: 18px;
  appearance: none;
  padding: 0 var(--btn-padding-inline);
  min-height: 40px;
  color: var(--fg);
  font-family: var(--font-sans);
  cursor: pointer;
  transition: transform .45s cubic-bezier(.34,1.56,.64,1);
  transition-timing-function: linear(0, .44 10%, .94 20%, 1.32 30%, 1.5 40%, 1.28 50%, .94 60%, .75 70%, .82 78%, .96 86%, 1.03 93%, 1);
  border: none;
  border-radius: 100px;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  display: inline-flex;
  position: relative;
  overflow: hidden;
}

.btn:before {
  content: "";
  opacity: 0;
  pointer-events: none;
  border-radius: inherit;
  background: #000;
  transition: opacity .18s;
  position: absolute;
  inset: 0;
}

.btn:active {
  transition: transform .12s cubic-bezier(.4,0,.2,1);
  transform: scale(.96);
}

.btn[disabled],
.btn[aria-disabled=true] {
  opacity: .6;
  cursor: not-allowed;
}

.btn[aria-busy=true] {
  cursor: wait;
}

.btn.primary {
  color: #000;
  background: linear-gradient(#f3f2f2 0%,#e6e6e6 87.5%);
}

.btn.flat {
  background: color-mix(in srgb, var(--fg) 10%, var(--bg));
}

.btn.primary:hover:before,
.btn.overlay:hover:before,
.btn.overlay-dark:hover:before,
.btn.flat:hover:before {
  opacity: .04;
}

.btn.primary:active:before,
.btn.overlay:active:before,
.btn.overlay-dark:active:before,
.btn.flat:active:before {
  opacity: .08;
}

.btn.overlay,
.btn.overlay-dark {
  color: #000;
  background: #fff;
  min-height: 44px;
  box-shadow: 0 2px 8px #00000024;
}

.btn.overlay-dark {
  background: var(--brand-black);
  color: #fff;
}

.btn.overlay-dark:before {
  background: #fff;
}

.btn.overlay:focus-visible,
.btn.overlay-dark:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}

.btn.plain {
  color: var(--fg);
  background: 0 0;
}

.btn.plain:before {
  display: none;
}

.btn.plain:hover,
.btn.plain:focus-visible {
  background: #0000000d;
}

.btn.plain:active {
  background: #00000014;
}

.btn.text {
  --btn-padding-inline: 0px;
  background: 0 0;
  border-radius: 2px;
  min-height: 0;
  padding: 0;
  overflow: visible;
}

.btn.text:before {
  display: none;
}

.btn.text:focus-visible {
  outline-offset: 4px;
  outline: 2px solid;
}

.btn-with-chevron {
  white-space: nowrap;
  flex: none;
  gap: .25rem;
}

.btn-with-chevron svg {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  transition: transform .2s ease-in-out;
  display: block;
  translate: 0 1px;
}

.btn-with-chevron svg path {
  stroke: currentColor;
  stroke-width: .6px;
  stroke-linejoin: round;
  opacity: .4;
  transition: opacity .2s ease-in-out;
}

.btn-with-chevron:hover svg {
  transform: translate(3px);
}

.btn-with-chevron:hover svg path {
  opacity: .7;
}

.btn-with-external {
  gap: .375rem;
}

.btn-external {
  display: flex;
}

.btn-external svg {
  width: 11px;
  height: 11px;
  color: var(--fg3);
  transition: transform .2s ease-in-out,color .2s ease-in-out;
}

.btn-with-external:hover .btn-external svg {
  color: var(--fg2);
  transform: translate(1.5px,-1.5px);
}

@media (prefers-reduced-motion:reduce) {
  .btn,
  .btn:active,
  .btn-with-chevron svg,
  .btn-external svg {
    transition: none;
  }
}

/* ==== Code colours ==== */

:root {
  --code-red: #CB071D;
  --code-blue: #0277AA;
  --code-green: #7EAC21;
  --code-magenta: #AE166B;
  --code-comment: #6F7D8D;
  --astro-code-foreground: var(--fg2);
  --astro-code-background: #0000000a;
  --astro-code-token-keyword: var(--code-red);
  --astro-code-token-constant: var(--code-blue);
  --astro-code-token-string: var(--code-green);
  --astro-code-token-string-expression: var(--code-green);
  --astro-code-token-comment: var(--code-comment);
  --astro-code-token-link: var(--code-blue);
  --astro-code-token-parameter: var(--fg2);
  --astro-code-token-function: color-mix(in srgb, var(--fg2) 85%, white);
  --astro-code-token-punctuation: color-mix(in srgb, var(--fg2) 70%, transparent);
}

/* ==== Home page blocks: project cards and topic grid ==== */

.button-group {
  flex-wrap: wrap;
  flex-wrap: balance;
  justify-content: center;
  align-items: center;
  gap: 8px 32px;
  max-width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
}

.button-group>.btn.plain {
  margin-inline: calc(-1 * var(--btn-padding-inline));
}

.link-card {
  min-width: 0;
  padding: 20px var(--card-padding-inline,20px);
  color: inherit;
  text-decoration: none;
  transition: background .16s,border-color .16s;
  display: block;
  position: relative;
}

.link-card[data-appearance=plain] {
  border: 0;
  border-radius: 0;
}

.link-card[href]:hover {
  background: color-mix(in srgb, var(--fg) 3%, var(--bg));
  border-color: color-mix(in srgb, var(--fg) 3%, var(--bg));
}

.link-card:focus-visible {
  outline: 2px solid var(--fg3);
  outline-offset: 3px;
}

.card-eyebrow-empty~.card-title {
  padding-inline-end: 24px;
}

.link-card:is(:hover,:focus-visible) .card-arrow {
  opacity: 1;
}

.card-title {
  color: var(--fg);
  overflow-wrap: anywhere;
  margin: 0 0 6px;
}

.card-description {
  color: var(--fg3);
  max-inline-size: var(--card-description-measure,none);
  text-wrap: var(--card-description-wrap,balance);
  margin: 0;
}

.card-icon {
  float: inline-start;
  color: var(--fg3);
  margin-block-start: calc(.65em - 7px);
  margin-inline-end: 7px;
}

.card-icon svg {
  width: 14px;
  height: 14px;
  display: block;
}

.link-card:has(>.card-attribution) {
  flex-direction: column;
  display: flex;
}

@media (width<=440px) {
  .link-card {
    padding: 16px var(--card-padding-inline,16px);
  }
}

@media (prefers-reduced-motion:reduce) {
  .link-card {
    transition: none;
  }
}

.feature-grid {
  --columns: 4;
  grid-template-columns: repeat(var(--columns), minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.feature-grid[data-columns="1"] {
  --columns: 1;
}

.feature-grid[data-columns="2"] {
  --columns: 2;
}

.feature-grid[data-columns="3"] {
  --columns: 3;
}

.feature-grid>li {
  min-width: 0;
  display: grid;
  position: relative;
}

.feature-grid>li:before,
.feature-grid>li:after {
  content: "";
  z-index: 1;
  background: var(--lattice-rule,color-mix(in srgb, var(--fg) 7%, var(--bg)));
  pointer-events: none;
  position: absolute;
}

.feature-grid>li:before {
  height: 1px;
  top: 0;
  left: 0;
  right: 0;
}

.feature-grid>li:after {
  width: 1px;
  top: 0;
  bottom: 0;
  left: 0;
}

@media (width>1080px) {
  .feature-grid[data-columns="1"]>li:first-child:before,
  .feature-grid[data-columns="1"]>li:after {
    content: none;
  }
  .feature-grid[data-columns="1"]>li {
    --card-padding-inline: 0;
  }
  .feature-grid[data-columns="2"]>li:nth-child(-n+2):before,
  .feature-grid[data-columns="2"]>li:nth-child(odd):after,
  .feature-grid[data-columns="3"]>li:nth-child(-n+3):before,
  .feature-grid[data-columns="3"]>li:nth-child(3n+1):after,
  .feature-grid[data-columns="4"]>li:nth-child(-n+4):before,
  .feature-grid[data-columns="4"]>li:nth-child(4n+1):after {
    content: none;
  }
  .feature-grid[data-board]>li {
    aspect-ratio: 16/10;
    --card-description-measure: 21ch;
  }
}

@media (width<=1080px) {
  .feature-grid[data-columns] {
    --columns: 2;
  }
  .feature-grid[data-columns]>li:nth-child(-n+2):before,
  .feature-grid[data-columns]>li:nth-child(odd):after {
    content: none;
  }
}

@keyframes project-card-waffle-reveal {
  0% {
    opacity: 0;
    transform: translate(-5px)scale(.58);
  }
  68% {
    opacity: 1;
    transform: translate(0,0)scale(1.08);
  }
  to {
    opacity: 1;
    transform: translate(0,0)scale(1);
  }
}

.home-section {
  margin: 6rem auto 0;
}

@media (width>=641px) {
  .home-section {
    margin-top: 8rem;
  }
}

#main.content article.content .home-h2 {
  text-align: center;
  color: var(--fg);
  max-width: none;
  margin: 0 0 2rem;
}

#main.content article.content .home-topics .feature-grid {
  --card-description-wrap: pretty;
  margin-top: 2.5rem;
}

@media (width>=1081px) {
  #main.content article.content .home-topics .feature-grid>li:nth-child(3n+2):last-child {
    border-right: 1px solid var(--lattice-rule,color-mix(in srgb, var(--fg) 7%, var(--bg)));
  }
  #main.content article.content .home-topics .feature-grid>li:nth-child(3n+2):last-child:before {
    width: calc(200% + 2px);
    right: auto;
  }
}

#main.content article.content .home-topics .card-title {
  margin-bottom: 6px;
}

#main.content article.content .home-topics .card-icon {
  float: none;
  color: var(--fg);
  margin: 0 0 16px;
  display: block;
}

#main.content article.content .home-topics .card-icon svg {
  width: 24px;
  height: 24px;
}

#main.content article.content .home-section :is(div,p,h3) {
  margin-top: 0;
  margin-bottom: 0;
}

.project-cards {
  text-align: left;
  --project-card-padding: 1.1rem;
  --project-card-content-gap: 1rem;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  display: grid;
}

@media (width>=1100px) {
  .project-cards {
    --project-card-padding: 1.5rem;
    --project-card-content-gap: initial;
  }
}

@media (width>=840px) {
  .project-cards {
    grid-template-columns: repeat(3,1fr);
    gap: 1.5rem;
  }
  .project-cards .project-card {
    grid-row: span 5;
    grid-template-rows: subgrid;
    align-items: start;
    row-gap: 0;
    display: grid;
  }
}

.project-card {
  padding: var(--project-card-padding,1.5rem);
  background: color-mix(in srgb, var(--fg) 3%, var(--bg));
  --waffle-accent: var(--fg);
  --waffle-active: var(--waffle-accent);
  --waffle-filled: color-mix(in srgb, var(--waffle-accent) 48%, var(--bg));
  border-radius: 14px;
  flex-direction: column;
  display: flex;
  position: relative;
}

:is(.project-cards,#main.content article.content) .project-card-titlelink {
  color: inherit;
  text-decoration: none;
}

.project-card-titlelink:after {
  content: "";
  cursor: pointer;
  border-radius: 14px;
  position: absolute;
  inset: 0;
}

.project-card-links .btn {
  z-index: 1;
  position: relative;
}

@media (hover:hover) {
  .project-card:hover .project-card-cta svg {
    transform: translate(3px);
  }
  .project-card:hover .project-card-cta svg path {
    opacity: .7;
  }
}

.project-card:has(:focus-visible) {
  outline: 2px solid color-mix(in srgb, var(--fg) 42%, transparent 58%);
  outline-offset: 3px;
}

@supports selector(:has(*)) {
  .project-card-titlelink:focus-visible {
    outline: none;
  }
}

.project-card-head {
  align-items: center;
  gap: .65rem;
  display: flex;
}

:is(.project-cards,#main.content article.content) .project-card-title {
  color: var(--fg);
  text-align: left;
  max-width: none;
  font-size: clamp(18px,1.7vw,22px);
  font-weight: 400;
}

.project-card-body {
  color: color-mix(in srgb, var(--fg) 78%, var(--bg));
}

.project-card-links {
  flex-flow: wrap;
  align-items: center;
  gap: .6rem .5rem;
  display: flex;
}

:is(.project-cards,#main.content article.content) .project-card .project-card-head {
  margin: 0 0 1.1rem;
}

:is(.project-cards,#main.content article.content) .project-card .project-card-title {
  margin: 0;
}

:is(.project-cards,#main.content article.content) .project-card .project-card-body {
  margin: 0 0 var(--project-card-content-gap,1.5rem);
  font-size: .9rem;
  line-height: 1.5;
}

:is(.project-cards,#main.content article.content) .project-card .project-card-links {
  margin: auto 0 0;
}


/* ==== Site additions (not from the measured reference) ==== */

/* One frame width for the top bar, the home blocks and the footer. */

:root {
  --frame-max: 67.5rem;
  --frame-gutter: clamp(1.3rem, 4vw, 3rem);
}

/* Top bar: the logo and menu line up with the frame instead of the window edges. */

@media (width >= 769px) {
  .site-header {
    left: 0;
    right: 0;
    padding-inline: max(calc(1rem + var(--frame-gutter)), calc((100% - var(--frame-max)) / 2));
  }
}

@media (width < 769px) {
  .site-header {
    padding-left: calc(.33rem + var(--frame-gutter));
    padding-right: calc(.33rem + var(--frame-gutter) - 9px);
  }
}

/* Footer: the link columns keep their one-fifth width and sit on the right. */

footer#footer {
  --footer-max-width: var(--frame-max);
  --footer-inset: var(--frame-gutter);
}

@media (width > 800px) {
  .footer-links {
    grid-template-columns: repeat(var(--footer-count, 5), calc((100% - 4 * var(--footer-column-gap)) / 5));
    justify-content: end;
  }
}

/* Home page: a narrow intro column, then full-width blocks. */

#main.home {
  max-width: none;
  padding-inline: 0;
}

#main.home > article.content.home-intro {
  max-width: var(--content-max);
  padding-inline: var(--content-pad);
}

#main.content article.content .home-title {
  margin: 2.5rem 0 1rem;
  color: var(--fg);
}

#main.content article.content .home-socials {
  display: flex;
  gap: 18px;
  margin: 0 0 2rem;
}

.home-socials a {
  display: flex;
  color: var(--fg3);
}

.home-socials svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

#main.home > article.content.home-blocks {
  max-width: none;
  margin: 0;
  padding: 0;
}

#main.content article.content .home-section:first-child {
  margin-top: 4.5rem;
}

#main.content article.content .home-topics .card-icon svg {
  stroke-width: 1.5;
}

.home-blog {
  width: 100%;
  max-width: 660px;
}

.home-blog .post-group {
  list-style: none;
  margin: 0 auto;
  padding-top: 0;
}

.home-blog .post-group > li {
  margin-bottom: 0;
}

#main .home-blog h2.post-title {
  margin: 0;
}

/* Article header: link to where the piece was first published. */

#main.post .post-heading .publish-metadata .post-original a {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  color: inherit;
  text-decoration: none;
}

#main.post .post-heading .publish-metadata .post-original a:hover {
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--fg) 20%, transparent);
  text-underline-offset: 2px;
}

#main.post .post-heading .publish-metadata .post-original svg {
  width: 12px;
  height: 12px;
  margin: 0;
  fill: currentColor;
}

/* Side-note numbers: raised without relying on a font feature. */

#main.post .sidenote-number:after,
#main.post .sidenote:before {
  font-variant-position: normal;
  font-size: .7em;
  line-height: 0;
  vertical-align: super;
}
