Fundamentals of stick-slip