Media coverage of the referendum focused on the drama and dynamics of the campaign, the economics of leaving the EU and immigration.