Statistical Mechanics: From First Principles to Macroscopic Phenomena