Text this: John Quincy Adams and the foundations of American foreign policy.