@mattly @technomancy Success! Turns out there's a much simpler fix than we thought. The problem isn't that it's overridden, it's that we're setting background color on the body, but the margin color is coming from a top-level html { ... } rule. So this actually seems to fix it:
html { background-color: var(--base-bg); }That said, using pandoc metadata to set the injected styles may still be a good idea just to make it more bulletproof. The only downside to doing so is we'll have to remember that we depend on those CSS vars existing in places other than just fennel.css.