Foundations of solid mechanics