He extensively researched bomb-making manuals, sniper attacks, “killing school,” firearms and tactical gear, and incels, and downloaded the manifestos of far-right terrorists.