Text this: Nonsmooth Dynamics of Contacting Thermoelastic Bodies