Text this: Chemical thermodynamics of materials: macroscopic and microscopic aspects