Nationalism and modernity