Actually, even presidential elections are state functions. We don’t have federally administered elections. Each state allows the people to express their choice for president and, in turn, sends a slate of electors to DC who are the ones who elect the president and vice president.
Right. Popular vote for president is a choice by state legislatures. They could flip a coin.