A Cold War–era nuclear submarine accidentally travels back in time and encounters a pirate ship from the 1700s.