Principles for thriving in the face of adversity.