Text this: Ideas, institutions, and trade