Looking to create a basic website with dynamic text based on user actions

I want to make a basic choose-your-own-adventure-style website.

I'm envisioning this taking the fairly basic approach of:

  • Put some text on the screen
  • Present some options, have the user select one
  • Remove the options and load the next set of text based on their response
  • Present more options (relevant to the route chosen), repeat until done.

I haven't done web development since the 90s, and I was a teen then just dabbling. So I know I have a lot (a ton) to learn. I'm okay with this, but need a few pointers to get me on the right track.

I am a software developer, thankfully, just not familiar and proficient in the language(s) here. More importantly, I don't know what's out there that's best suited to solve this problem (I can learn once I know what to learn).

I'm assuming that I'll be using a mix of HTML, CSS, and JavaScript. Pointers as to how I would be wanting to go about hooking these together, and how best to perform the dynamic loading would be very appreciated.

References to useful beginner's guides would be appreciated as well.

Thanks in advance!