Things we learned from the Catalan referendum