:root {
  color-scheme: light;
  --paper: #f5f1e8;
  --ink: #3a3226;
  --muted: #686257;
  --link: #1a4c96;
  --link-visited: #1a4c96;
  --link-hover: #2a6bd4;
  --line: #b8b2a7;
  --soft-line: #d5cfc3;
  --wash: #eae5da;
  --code: #eee9de;
  --selection: #d8e2fb;
  --terminal-paper: #16171a;
  --terminal-ink: #e6e6e6;
  --terminal-muted: #8e8e8e;
  --terminal-bar: #2a2c31;
  --terminal-edge: #34363b;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #1c1e22;
  --ink: #cbc6bc;
  --muted: #b1aba0;
  --link: #6397e4;
  --link-visited: #6397e4;
  --link-hover: #85aeea;
  --line: #66676a;
  --soft-line: #3e4045;
  --wash: #282b31;
  --code: #272a30;
  --selection: #34456e;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: var(--paper);
  scroll-padding-top: 24px;
}

body {
  max-width: 768px;
  margin: 0 auto;
  padding: 12px 36px 30px;
  color: var(--ink);
  background: var(--paper);
  font-family: serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  overflow-wrap: anywhere;
  -webkit-text-size-adjust: 100%;
}

:root[data-theme="dark"] body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--selection);
  color: var(--ink);
}

a {
  color: var(--link);
  text-decoration: none;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

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

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

:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 5px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 28.8px;
  font-weight: 400;
  line-height: 1.25;
}

h2 {
  font-size: 22.4px;
  font-weight: 400;
  line-height: 1.6;
}

h3 {
  font-size: 18.4px;
  font-weight: 700;
  line-height: 1.6;
}

p+p {
  margin-top: 18px;
}

button {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-height: 36px;
  gap: 5px 6px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 3px;
  color: var(--ink);
  background: transparent;
  font-size: 17px;
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:visited {
  color: var(--ink);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--wash);
}

.site-nav a[aria-current] {
  background: var(--wash);
}

.site-nav a:focus-visible {
  outline-offset: 2px;
}

.theme-toggle {
  display: grid;
  place-items: center;
  margin-left: auto;
  width: 36px;
  height: 36px;
  padding: 8px;
  border: 0;
  border-radius: 3px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.theme-toggle:hover {
  color: var(--link);
}

.theme-symbol {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
}

.theme-symbol svg {
  display: block;
  width: 20px;
  height: 20px;
}

main {
  padding-top: 31px;
}

main>section+section {
  margin-top: 38px;
}

.section-heading {
  margin-bottom: 12px;
  font-size: 28.8px;
  line-height: 1.25;
}

.post {
  padding: 13px 0 19px;
  border-bottom: 1px dotted var(--line);
}

.post:last-child {
  border-bottom: 0;
}

.post time {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font: 12px/1.6 monospace;
  white-space: nowrap;
}

.entry-title {
  font-size: 22.4px;
  font-weight: 400;
  line-height: 1.6;
}

.post-body {
  margin-top: 8px;
}

.page-header {
  margin-bottom: 12px;
}

.page-title {
  font-size: 28.8px;
  font-weight: 400;
  line-height: 1.25;
}

.page-header time {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font: 12px/1.6 monospace;
}

.home-content,
.section-intro {
  margin-bottom: 24px;
}

.prose>*+* {
  margin-top: 18px;
}

.prose p+p {
  margin-top: 18px;
}

.prose> :first-child {
  margin-top: 0;
}

.prose> :last-child {
  margin-bottom: 0;
}

.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
  margin-top: 28.8px;
  line-height: 1.6;
}

.prose h2 {
  margin-top: 38.4px;
  font-size: 22.4px;
  font-weight: 400;
}

.prose h3 {
  font-size: 18.4px;
  font-weight: 700;
}

.prose h4,
.prose h5,
.prose h6 {
  font-size: 18px;
  font-weight: 700;
}

.prose ul,
.prose ol {
  padding-left: 24px;
}

.prose img,
.prose video {
  display: block;
  max-width: 100%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
}

.prose figure {
  margin-left: 0;
  margin-right: 0;
}

.prose figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

.prose code {
  padding: 2px 5px;
  background: var(--code);
  color: var(--ink);
  font-family: monospace;
  font-size: calc(14em / 18);
}

.prose pre {
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--terminal-edge);
  border-radius: 8px;
  background: var(--terminal-paper);
  color: var(--terminal-ink);
  font: 14px/1.6 monospace;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.prose pre::before {
  content: attr(data-title);
  display: block;
  height: 30px;
  color: var(--terminal-muted);
  background:
    radial-gradient(circle at 18px 50%, #ff5f57 5.2px, transparent 5.8px),
    radial-gradient(circle at 36px 50%, #febc2e 5.2px, transparent 5.8px),
    radial-gradient(circle at 54px 50%, #28c840 5.2px, transparent 5.8px),
    var(--terminal-bar);
  font-size: 12px;
  line-height: 30px;
  text-align: center;
}

.prose pre code {
  display: block;
  overflow-x: auto;
  padding: 14px 16px 16px;
  background: transparent;
  color: inherit;
  font-size: inherit;
}

.prose pre .demo-note {
  color: var(--terminal-muted);
}

.prose blockquote {
  margin-left: 0;
  margin-right: 0;
  padding-left: 18px;
  border-left: 3px solid var(--line);
  color: var(--muted);
  font-style: italic;
}

.prose .quote p+p {
  margin-top: 4px;
}

.prose table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 16px;
}

.prose th,
.prose td {
  padding: 8px 12px;
  border: 1px solid var(--line);
  text-align: left;
}

.prose th {
  background: var(--wash);
}

.prose th:first-child,
.prose td:first-child {
  white-space: nowrap;
}

.prose hr {
  margin: 28px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.prose hr.break {
  height: auto;
  margin: 38.4px 0 28px;
  overflow: visible;
  border: 0;
  color: var(--muted);
  font-size: 22.4px;
  line-height: 1;
  text-align: center;
}

.prose hr.break::before {
  content: "* * *";
  padding-left: 0.3em;
  letter-spacing: 0.3em;
}

.prose sup {
  font-size: 0.7em;
  line-height: 0;
}

.prose .footnote-definition {
  color: var(--muted);
  font-size: 15px;
}

.prose :not(.footnote-definition)+.footnote-definition {
  margin-top: 48px;
  padding-top: 18px;
  background: linear-gradient(to right, var(--line) 1px, transparent 1px) top left / 7px 1px repeat-x;
}

.prose .footnote-definition p {
  display: inline;
}

.prose .footnote-definition-label {
  margin-right: 3px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-top: 41px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 11px/1.7 monospace;
}

.footer-copyright {
  grid-column: 1;
  justify-self: start;
  text-align: left;
}

.footer-social {
  grid-column: 2;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 4px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--muted);
}

.footer-social a:hover {
  color: var(--link);
}

.footer-social svg {
  display: block;
  width: 16px;
  height: 16px;
}

.footer-social .icon-linkedin {
  width: 14px;
  height: 14px;
}

.footer-social .icon-email {
  width: 20px;
  height: 20px;
}

.footer-home,
.footer-home:visited {
  color: inherit;
  text-decoration: none;
}

.footer-home:hover {
  color: var(--link);
  text-decoration: underline;
}

@media (max-width: 540px) {
  body {
    padding: 12px 21px 24px;
  }

  .site-header {
    column-gap: 8px;
  }

  .site-nav {
    column-gap: 4px;
  }

  .site-nav a {
    padding-inline: 8px;
    font-size: 16px;
  }

  main>section+section {
    margin-top: 31px;
  }
}

@media (max-width: 360px) {
  .site-nav a {
    padding-inline: 5px;
  }
}

@media (pointer: coarse) {
  .theme-toggle {
    width: 44px;
    height: 44px;
  }

  .site-nav a {
    min-height: 44px;
  }

  .footer-social a {
    width: 44px;
    height: 44px;
  }
}

@media print {

  :root,
  :root[data-theme="dark"] {
    color-scheme: light;
    --paper: #fff;
    --ink: #000;
    --muted: #444;
    --link: #000;
    --link-visited: #000;
    --link-hover: #000;
    --line: #aaa;
    --wash: #f5f5f5;
    --code: #f5f5f5;
  }

  body {
    max-width: none;
    padding: 0;
    font-size: 11pt;
  }

  a {
    text-decoration: underline;
  }

  .theme-toggle {
    display: none !important;
  }

  .post {
    break-inside: avoid;
  }

  .prose pre {
    border-color: var(--line);
    background: #fff;
    color: #000;
  }

  .prose pre::before {
    display: none;
  }

  .prose pre .demo-note {
    color: var(--muted);
  }
}