Franklin was foundational in defining the American ethos as a marriage of the practical values of thrift, hard work, education, community spirit , self-governing institutions, and opposition to authoritarianism both political and religious, with the scientific and tolerant values of the Enlightenment .