Fade content for logged out users?

I found this more detailed suggestion for fading out preview content in a Forum post from '21. It’s down a bit in the thread as the OP’s initial question was about enabling a limited number of free articles (also would be a great feature if available/do-able in Ghost!):

https://forum.ghost.org/t/free-access-to-limited-number-of-articles-per-month-for-new-non-subscribers/25612/5

Any suggestion(s) on how to integrate this fully into the Headline theme via code injection? Thanks!