Spoiler font on my website

I’m playing with CSS to get spoiler-text hidden unless selected on my website. Let’s see if it works! I’m putting double pipes around it so people browsing in dark mode know where to highlight.

|| This is a spoiler. ||

Could I create a more elaborate solution to this problem? YES! But I’m not really interested in doing so.

Kimberly Hirsh, PhD @kimberlyhirsh