Get an ebike! My commute is 24mi (28.6km) each way and it takes me about 1hr 15mins. With some bone conduction headphones and a podcast it's really enjoyable.
I used to commute a little shy of that as a teenager but I would agree with @Praxinoscope@lemm.ee on the ebike: That would make it totally doable timewise. The other part is being able to do it safely though.
Access to good public transit is pretty great. If you still wanted to ride a bit, you could look into a folding bike: Brompton, Tern, and Dahon all make good ones. The Packalope is also pretty amazing I've heard (if you're rich, same for Brompton). Alternately, maybe some kind of board or scooter?
Quite a few people bring electric scooters on the train and that seems like real fun and it would probably speed up the commute quite a bit because I could skip the bus and the walking. Unfortunately it seems a pain to bring it on the train each day. The train I take each day is also fairly small so I would be self conscious about taking up so much space for something that only benefits myself.
Either way, I don't mind public transport too much since I can listen to music or play games on my Steam Deck.
Being able to sit back and relax does sound pretty great. You could also maybe consider a skateboard, longboard, monowheel, or skates, but there's nothing wrong with walking either.
I actually enjoy walking quite a bit. I always walk to the train and I walk from the train if I have the time. Unfortunately I'm slow out of bed so I usually don't have the time. So I take the bus instead.