Literature after Euclid: the geometric imagination in the long Scottish Enlightenment