Quick Trick: Using border-image to Apply and Overlay Gradient.
Really clever trick via Temani Afif.
https://codepen.io/t_afif/pen/vYbdVjb
Fill the entire element with a gradient overlay on top of any existing background, which can make it easier to read text set on top.