:root {
  color-scheme: light dark;
  --background: #fff;
  --ink: #252525;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --max-width: 760px;
}
* { box-sizing: border-box; }
html { font-size: 18px; }
body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; border-radius: 2px; }
.site-header, main { width: min(calc(100% - 40px), var(--max-width)); margin: 0 auto; }
.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}
.brand { font-size: 1rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 20px; font-size: .83rem; }
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a[aria-current], .site-header nav a:hover { color: var(--ink); text-decoration: underline; }
.page-heading { padding: 48px 0 24px; }
h1 { margin: 0; font-size: clamp(1.9rem, 5vw, 2.55rem); line-height: 1.2; letter-spacing: -.035em; font-weight: 650; overflow-wrap: break-word; }
h2 { font-size: 1.4rem; line-height: 1.35; letter-spacing: -.025em; font-weight: 600; }
.page-heading > p { max-width: 600px; margin: 18px 0 0; color: var(--muted); }
.articles { padding-bottom: 80px; }
.article-preview { padding: 24px 0 30px; border-bottom: 1px solid var(--line); }
time { color: var(--muted); font-size: .78rem; }
.article-preview h2 { margin: 8px 0 12px; }
.article-preview h2 a { text-decoration: none; }
.article-preview h2 a:hover { text-decoration: underline; }
.article-preview p { margin: 0; max-width: 650px; color: var(--muted); }
.post { padding: 48px 0 80px; }
.post header { margin-bottom: 30px; }
.post h1 { margin-top: 12px; }
.post-content > :first-child { margin-top: 0; }
.post-content h2 { margin: 2em 0 .6em; }
.post-content p, .post-content ul, .post-content ol { margin: 0 0 1.3em; }
.post-content li { margin: .35em 0; }
.post-content img { display: block; width: auto; max-width: 100%; height: auto; margin: 2rem auto; }
.post-content pre { overflow-x: auto; padding: 16px; border: 1px solid var(--line); font-size: .85rem; }
code { font-size: .9em; overflow-wrap: break-word; }
.back { display: inline-block; margin-top: 24px; color: var(--muted); font-size: .85rem; }
.catalog { padding-bottom: 80px; }
.catalog .post-content { padding-top: 24px; }
.catalog .post-content > :last-child { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.pagination { display: flex; justify-content: space-between; padding: 0 0 80px; font-size: .85rem; }
.pagination span { color: var(--muted); }
.post-list { padding: 48px 0 80px; }
.post-list .article-card { padding: 24px 0; border-bottom: 1px solid var(--line); }
.post-list h3 { margin: 8px 0; font-size: 1.35rem; }
.post-list .eyebrow { display: none; }
.not-found { padding: 64px 0; }
.not-found a { display: inline-block; margin-top: 24px; }
.skip-link { position: absolute; top: -100px; left: 20px; padding: 8px 12px; background: var(--background); z-index: 2; }
.skip-link:focus { top: 12px; }
@media (max-width: 520px) {
  html { font-size: 16px; }
  .site-header { align-items: flex-start; gap: 12px; padding: 20px 0; }
  .site-header nav { justify-content: flex-end; gap: 8px 14px; }
  .page-heading { padding-top: 36px; }
  .post { padding-top: 36px; }
}
@media (prefers-color-scheme: dark) {
  :root { --background: #151515; --ink: #e5e5e5; --muted: #a0a0a0; --line: #353535; }
}
