How sex shaped a nation