Why can't a Bitcoin fork take over?
I hope that "longestt chain" actually means "most proof of work" rather than "most blocks"!


It is exactly that: the "longest chain" is the one with the most work, not the largest block height. 

If it wasn't like that, then an attack like the one you described could work.