:root {
  color-scheme: light dark;
}

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  line-height: 1.7;
}

main {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.post-header h1 {
  margin: 0.25rem 0 1.5rem;
  line-height: 1.2;
}

.post-meta {
  margin: 0;
  font-size: 0.875rem;
  opacity: 0.75;
}

a {
  color: inherit;
}

article h2 {
  margin-top: 2.25rem;
  line-height: 1.3;
}

blockquote {
  margin: 1.5rem 0;
  padding: 0.25rem 1.25rem;
  border-left: 3px solid currentColor;
  opacity: 0.85;
  font-style: italic;
}

code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
}

:not(pre) > code {
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: light-dark(#0000000f, #ffffff1a);
}

pre {
  overflow-x: auto;
  line-height: 1.6;
}

.shiki,
.shiki span {
  color: var(--shiki-light, inherit);
  background-color: var(--shiki-light-bg, transparent);
}

@media (prefers-color-scheme: dark) {
  .shiki,
  .shiki span {
    color: var(--shiki-dark) !important;
    background-color: var(--shiki-dark-bg) !important;
    font-style: var(--shiki-dark-font-style) !important;
    font-weight: var(--shiki-dark-font-weight) !important;
    text-decoration: var(--shiki-dark-text-decoration) !important;
  }
}

.footnotes,
[data-footnotes] {
  margin-top: 3rem;
  font-size: 0.9rem;
  opacity: 0.85;
}

.footnotes-sep {
  border: none;
  border-top: 1px solid light-dark(#00000026, #ffffff33);
  width: 6rem;
  margin-left: 0;
}

.footnote-ref,
[data-footnote-ref] {
  font-size: 0.75em;
}

.post-footer {
  margin-top: 3rem;
  font-size: 0.9rem;
}
