:root {
  color-scheme: light;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #202020;
  background: #fff;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; font-size: 1rem; line-height: 1.68; }
a { color: inherit; text-decoration-color: #aaa; text-underline-offset: .25em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.blog-shell { width: min(100% - 3rem, 46rem); margin: 0 auto; padding: 4.5rem 0; }
.archive-header, .post-header { border-bottom: 1px solid #e6e6e6; padding-bottom: 2.5rem; margin-bottom: 2.5rem; }
.archive-header { max-width: 38rem; }
.archive-kicker, .post-meta, .back, .post-list time, .post-list span, .comment time, .archive-footer {
  color: #616161;
  font: .8125rem/1.6 ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}
.archive-kicker { margin: 0 0 1rem; }
h1 { margin: 0 0 1.25rem; font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1.08; letter-spacing: -.045em; font-weight: 500; }
h2 { margin: 2.75rem 0 1rem; font-size: 1.55rem; line-height: 1.2; letter-spacing: -.025em; }
h3 { margin: 2.25rem 0 .75rem; font-size: 1.2rem; line-height: 1.3; }
h4 { margin: 2rem 0 .5rem; font-size: 1rem; }
p { margin: 0 0 1.15rem; }
.archive-header > p:last-child { font-size: 1.15rem; }
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: .15rem 1rem; border-bottom: 1px solid #ececec; padding: 1rem 0; }
.post-list a { font-weight: 500; }
.post-list span { grid-column: 2; font-size: .72rem; }
.back { margin-bottom: 2.5rem; }
.post-header h1 { max-width: 40rem; }
.post-content { overflow-wrap: anywhere; }
.post-content img { display: block; max-width: 100%; height: auto; margin: 1.75rem auto; }
.post-content figure { max-width: 100%; margin: 2rem 0; }
.post-content figcaption { color: #616161; font-size: .82rem; text-align: center; }
.post-content blockquote { border-left: 2px solid #aaa; margin: 1.5rem 0; padding-left: 1.25rem; color: #4b4b4b; }
.post-content pre { overflow-x: auto; border: 1px solid #ddd; background: #f7f7f7; padding: .85rem 1rem; font: .86rem/1.55 ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, monospace; white-space: pre-wrap; }
.post-content code { font-family: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, monospace; }
.post-content table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; }
.post-content th, .post-content td { border: 1px solid #ddd; padding: .55rem .7rem; text-align: left; }
.post-content iframe { max-width: 100%; }
.comments { border-top: 1px solid #e6e6e6; margin-top: 3.5rem; padding-top: .5rem; }
.comment { border-bottom: 1px solid #ececec; padding: 1.25rem 0 .5rem; }
.comment header { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.archive-footer { border-top: 1px solid #e6e6e6; margin-top: 4rem; padding-top: 1.5rem; }

@media (max-width: 36rem) {
  .blog-shell { padding: 2.5rem 0; }
  .post-list li { grid-template-columns: 1fr; }
  .post-list span { grid-column: 1; }
  .comment header { display: block; }
  .comment time { display: block; margin-top: .25rem; }
}

@media screen and (prefers-color-scheme: dark) {
  :root { color-scheme: dark; color: #e4e4e7; background: #151517; }
  .archive-header, .post-header, .comments, .archive-footer { border-color: #303034; }
  .post-list li, .comment { border-color: #303034; }
  .archive-kicker, .post-meta, .back, .post-list time, .post-list span, .comment time, .archive-footer, .post-content figcaption { color: #a1a1aa; }
  a { text-decoration-color: #71717a; }
  .post-content blockquote { border-color: #71717a; color: #c7c7cc; }
  .post-content pre { border-color: #3f3f46; background: #202023; }
  .post-content th, .post-content td { border-color: #3f3f46; }
}

@media print {
  .blog-shell { width: 100%; padding: 0; }
  .back, .archive-footer { display: none; }
}
