A rigorous look at entropy, Gibbs energy, and chemical equilibrium through a molecular lens.