Overall, I like it. That said, this suggestion caught my eye.
Trying to choose a text element’s background sometimes feels like the search for the perfect shade of light grey.
var(--primary-not-so-light-you-cant-see-it-but-not-so-dark-it-looks-clunky)
But it looks like you’re close, and, overall, I like it.