/* ==========================================================================
   Post body typography. Loaded by the page for markdown posts, and again inside
   the shadow root of an HTML post, so a post that brings its own <style> starts
   from the same defaults and cannot restyle anything outside itself. The colour
   tokens come from blog.css: custom properties inherit through the shadow edge.
   ========================================================================== */

:host{display:block}
*,*::before,*::after{box-sizing:border-box}
.prose img,.prose video,.prose svg,.prose canvas{max-width:100%; height:auto}
.prose{margin-top:36px; font:400 20px/1.62 var(--serif); color:var(--text); letter-spacing:-.003em; overflow-wrap:break-word}
@media (max-width:620px){ .prose{font-size:18px; line-height:1.6} }
.prose>*{margin:0}
.prose>*+*{margin-top:1.45em}
.prose h2,.prose h3{position:relative; font-family:var(--sans); color:var(--fg); letter-spacing:-.018em; line-height:1.25; text-wrap:balance}
.prose h2{font-size:1.32em; font-weight:700; margin-top:2.1em}
.prose h3{font-size:1.1em; font-weight:650; margin-top:1.8em}
.prose h2+*,.prose h3+*{margin-top:.6em}
.prose .anchor{position:absolute; left:-1.1em; width:1em; color:var(--muted); text-decoration:none; opacity:0; transition:opacity .2s}
.prose h2:hover .anchor,.prose h3:hover .anchor{opacity:1}
.prose a{color:inherit; text-decoration:underline; text-decoration-color:var(--accent); text-decoration-thickness:1px; text-underline-offset:3px}
.prose a:hover{color:var(--accent)}
.prose strong{font-weight:700; color:var(--fg)}
.prose ul,.prose ol{padding-left:1.4em}
.prose li+li{margin-top:.5em}
.prose li::marker{color:var(--muted)}
.prose blockquote{padding-left:1.1em; border-left:3px solid var(--fg); font-style:italic; color:var(--fg)}
.prose blockquote>*{margin:0}
.prose blockquote>*+*{margin-top:1em}
.prose hr{border:0; text-align:center; margin:2.4em 0; height:auto}
.prose hr::before{content:"···"; letter-spacing:.9em; color:var(--muted); font-size:22px}
.prose figure{margin-left:0; margin-right:0}
.prose figure img,.prose>p>img{display:block; margin:0 auto; border-radius:6px}
.prose figcaption{margin-top:10px; text-align:center; font:400 14px/1.5 var(--sans); color:var(--muted)}
@media (min-width:900px){ .prose figure{margin-left:-60px; margin-right:-60px} }
.prose code{font-family:var(--mono); font-size:.8em; background:var(--code-bg); padding:.15em .38em; border-radius:4px}
.prose pre{position:relative; padding:18px 20px; background:var(--code-bg); border:1px solid var(--line); border-radius:var(--radius);
  overflow-x:auto; font:400 14px/1.65 var(--mono); color:var(--fg); tab-size:2}
.prose pre code{background:none; padding:0; font-size:inherit; border-radius:0}
.prose pre[data-lang]::before{content:attr(data-lang); position:absolute; top:6px; right:12px; font-size:11px; color:var(--muted); text-transform:lowercase}
.copy{position:absolute; top:8px; right:8px; padding:4px 9px; border-radius:6px; border:1px solid var(--line-strong);
  background:var(--panel); color:var(--muted); font:500 12px/1.2 var(--sans); cursor:pointer; opacity:0; transition:opacity .2s}
.prose pre:hover .copy,.copy:focus-visible{opacity:1}
.prose pre[data-lang]:hover::before{opacity:0}
.prose table{display:block; overflow-x:auto; border-collapse:collapse; font:400 15px/1.5 var(--sans)}
.prose th,.prose td{padding:10px 14px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top}
.prose th{font-weight:650; color:var(--fg); border-bottom-color:var(--line-strong)}
.prose iframe{display:block; width:100%; aspect-ratio:16/9; border:0; border-radius:var(--radius)}
.prose mark{background:var(--accent-soft); color:inherit; padding:0 .15em}

