Text this: Maximal coherence and the resource theory of purity