I (think) I can get this border effect with CSS but I'm uncertain how

Using coothead’s border-image method it is possible to set the border-width at any size you want or use relative or dynamic units to allow the width to scale in a responsive page.
I have an example here, study the code and see if you can make sense of it.