:root {
  color-scheme: dark;
  --ink: #f2f2f2;
  --muted: #a0a0a0;
  --line: #2b2b2b;
  --paper: #0c0c0c;
  --soft: #181818;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 2rem; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; line-height: 1.6; }
::selection { color: var(--paper); background: var(--ink); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--muted); }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
h1, h2, h3, h4 { font-weight: 500; line-height: 1.3; }
h1, h2, h3, p, ul, ol { margin-top: 0; }
h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); letter-spacing: -.025em; }
.shell { width: min(100% - 3rem, 800px); margin-inline: auto; }
.reading-width { max-width: 760px; margin-inline: auto; }
.skip-link { position: absolute; top: -5rem; left: 1rem; padding: .75rem 1rem; background: var(--ink); color: var(--paper); z-index: 1; }
.skip-link:focus { top: 1rem; color: var(--paper); }
.site-header { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.site-title { font-size: 1.125rem; font-weight: 500; text-decoration: none; }
.site-nav, .site-footer nav { display: flex; align-items: center; gap: 1.5rem; }
.site-footer nav { flex-wrap: wrap; }
.site-nav a, .site-footer a { font-size: .8125rem; text-decoration: none; }
.site-nav a:hover, .site-footer a:hover { text-decoration: underline; }
.language-switch { display: flex; gap: .75rem; }
.language-switch a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }
.language-switch a[aria-current] { color: var(--ink); text-decoration: underline; }
main { flex: 1; padding-block: 2rem 4rem; }
.home-header { margin-bottom: 2.5rem; max-width: 640px; color: var(--muted); }
.home-header p { margin-bottom: 0; }
.article-section > h1 { margin-bottom: 0; padding-bottom: 1rem; border-bottom: 1px solid var(--line); font-size: 1.25rem; letter-spacing: 0; }
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list > li { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 1.5rem; padding-block: 1.5rem; border-bottom: 1px solid var(--line); }
.post-meta { color: var(--muted); font-size: .8125rem; }
.post-list > li > time { padding-top: .15rem; }
.post-summary { min-width: 0; }
.post-summary h2 { margin-bottom: .5rem; font-size: 1.125rem; line-height: 1.5; }
.post-link { text-decoration: none; }
.post-link:hover { text-decoration: underline; }
.post-excerpt { margin-bottom: 0; color: var(--muted); font-size: .875rem; line-height: 1.7; }
.post-header { margin-bottom: 2rem; }
.post-header h1 { margin-bottom: 1rem; overflow-wrap: anywhere; }
.back-link { display: inline-block; margin-bottom: 1.5rem; color: var(--muted); font-size: .8125rem; }
.page-header { margin-bottom: 2rem; }
.post-content { overflow-wrap: anywhere; font-size: 1.0625rem; line-height: 1.85; }
.post-content p, .post-content ul, .post-content ol { margin-bottom: 1.5rem; }
.post-content h2 { margin: 2.5rem 0 1rem; font-size: 1.6rem; letter-spacing: -.02em; }
.post-content h3 { margin: 2rem 0 1rem; font-size: 1.25rem; }
.post-content li + li { margin-top: .4rem; }
.post-content img { display: block; max-width: 100%; height: auto; margin-inline: auto; }
.post-content iframe, .post-content video { max-width: 100%; }
blockquote { margin: 2rem 0; padding-left: 1.25rem; border-left: 2px solid var(--line); color: var(--muted); }
code, pre { background: var(--soft); font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: .85em; }
code { padding: .15em .35em; }
pre { padding: 1rem 1.25rem; overflow-x: auto; line-height: 1.65; }
pre code { padding: 0; font-size: 1em; overflow-wrap: normal; }
.highlight .c, .highlight .c1, .highlight .cm, .highlight .cp, .highlight .cs { color: #a0a0a0; font-style: italic; }
.highlight .k, .highlight .kd, .highlight .kn, .highlight .kp, .highlight .kr, .highlight .kt, .highlight .kc, .highlight .ow { font-weight: 600; }
.highlight .s, .highlight .s1, .highlight .s2, .highlight .sb, .highlight .sc, .highlight .sd, .highlight .se, .highlight .sh, .highlight .si, .highlight .sr, .highlight .ss { color: #c3c3c3; }
.highlight .err, .highlight .gd { color: #ffb4b4; background: #361d1d; }
.highlight .gi { color: #b8e0c2; background: #192c20; }
table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; margin-block: 2rem; font-size: .9em; }
th, td { padding: .75rem 1rem; border: 1px solid var(--line); text-align: left; }
th { background: var(--soft); font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin-block: 2rem; }
.post-end { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .8125rem; }
.site-footer { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-block: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .8125rem; }
@media (max-width: 640px) {
  .shell { width: calc(100% - 2.5rem); }
  .site-header { min-height: 76px; gap: 1rem; flex-wrap: wrap; }
  .site-nav { gap: 1rem; }
  main { padding-block: 1.5rem 3rem; }
  .home-header { margin-bottom: 2rem; }
  .post-list > li { grid-template-columns: minmax(0, 1fr); gap: .4rem; padding-block: 1.25rem; }
  .post-list > li > time { padding-top: 0; }
  .post-content { font-size: 1rem; }
  .post-content h2 { font-size: 1.4rem; }
  .site-footer { flex-wrap: wrap; }
}
