mez, What’s your favourite way to add working examples of code in your blog posts that isn’t CodePen? Both for CSS and JS example code.
Thinking a basic web component with declarative shadow DOM might do it nicely since it will fully encapsulate the code? Maybe wrap it in @zachleat browser-window or resize-asaurus component.