Link colour based on player decisions

Twine Version: 2.3.9
Story Format: Harlowe

I’m wondering if there’s a way for me to change the colour of all links in the story based a choice the player makes. I can change all the link colours arbitrarily, and all the links in passages with a specific passage tag, using the style sheet, but those are all things you choose, not things the player controls.