.blog,
.blog-post {
  padding-top: 34px;
  overflow-wrap: anywhere;
}

.blog-title,
.post-title {
  font: 400 34px/1.3 var(--serif);
  letter-spacing: -.7px;
}

.blog-intro {
  margin-top: 10px;
  color: var(--muted);
}

.blog-empty {
  margin-top: 32px;
  color: var(--muted);
}

.post-list {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.post-list > li + li {
  margin-top: 26px;
}

.post-list-entry {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 20px;
}

.post-date {
  color: var(--muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.post-list-entry .post-date { padding-top: 3px; }

.post-list-title {
  padding: 0;
  border: 0;
  font: 400 22px/1.4 var(--serif);
  letter-spacing: -.2px;
}

.post-list-title a {
  color: var(--ink);
  text-decoration: none;
}

.post-list-title a:hover {
  color: var(--link);
  text-decoration: underline;
}

.post-summary {
  margin-top: 5px;
  color: var(--muted);
  font-size: 15px;
}

.back-link { font-size: 14px; }
.post-title { margin-top: 20px; }
.post-header .post-date { margin-top: 10px; }

.post-content {
  margin-top: 32px;
  line-height: 1.85;
}

.post-content > :first-child { margin-top: 0; }
.post-content > :last-child { margin-bottom: 0; }

.post-content p,
.post-content ul,
.post-content ol,
.post-content dl,
.post-content blockquote,
.post-content figure,
.post-content table,
.post-content pre,
.post-content .highlighter-rouge {
  margin: 0 0 1.35em;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  margin: 1.8em 0 .65em;
  padding: 0;
  border: 0;
  line-height: 1.4;
  letter-spacing: -.2px;
}

.post-content h1 { font: 400 30px/1.4 var(--serif); }
.post-content h2 { font: 400 26px/1.4 var(--serif); }
.post-content h3 { font: 400 22px/1.4 var(--serif); }
.post-content h4 { font-size: 18px; }
.post-content h5,
.post-content h6 { font-size: 16px; }

.post-content ul,
.post-content ol { padding-left: 1.5em; }
.post-content li + li { margin-top: .3em; }
.post-content li > ul,
.post-content li > ol { margin: .3em 0; }
.post-content li > p { margin-bottom: .5em; }
.post-content dt { font-weight: 600; }
.post-content dd { margin: .25em 0 1em 1.5em; }

.post-content img,
.post-content video,
.post-content svg {
  max-width: 100%;
  height: auto;
}

.post-content iframe { max-width: 100%; }
.post-content figure { margin-inline: 0; }
.post-content figcaption {
  margin-top: .5em;
  color: var(--muted);
  font-size: 14px;
}

.post-content blockquote {
  padding-left: 20px;
  border-left: 2px solid var(--rule);
  color: var(--muted);
}

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

.post-content code,
.post-content pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .875em;
}

.post-content code {
  padding: .15em .3em;
  background: #f0f0eb;
}

.post-content pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 16px 18px;
  background: #f0f0eb;
  line-height: 1.65;
  tab-size: 4;
  overflow-wrap: normal;
}

.post-content pre code {
  padding: 0;
  background: none;
  font-size: inherit;
}

.post-content .highlighter-rouge pre { margin-bottom: 0; }

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

.post-content th,
.post-content td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
}

.post-content th { font-weight: 600; }
.post-content caption { margin-bottom: .5em; text-align: left; }
.post-content hr {
  margin: 2em 0;
  border: 0;
  border-top: 1px solid var(--rule);
}

.post-content .footnotes {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 14px;
}

.post-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

.post-navigation a { font-size: 15px; }
.post-navigation span {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 12px;
}

.post-navigation-newer {
  grid-column: 2;
  text-align: right;
}

@media (max-width: 640px) {
  .blog,
  .blog-post { padding-top: 26px; }
  .blog-title,
  .post-title { font-size: 30px; }
  .post-list-entry { grid-template-columns: 1fr; gap: 4px; }
  .post-list-entry .post-date { padding-top: 0; }
  .post-content { margin-top: 26px; }
  .post-content th,
  .post-content td { padding: 8px 10px; }
}

@media print {
  .back-link,
  .post-navigation { display: none; }
  .post-content pre { white-space: pre-wrap; }
  .post-content table { display: table; width: 100%; }
  .post-title { margin-top: 0; }
}
