In what ways does the United States Constitution manifest the principles of both republican and democratic forms of government? In what ways does it deviate from those principles?

In what ways does the United States Constitution manifest the principles of both republican and democratic forms of government? In what ways does it deviate from those principles?