Text this: A first course in the mathematical foundations of thermodynamics