The senate, and by extension the electoral college are fundamentally anti-democratic bodies that exist because our founding fathers were not all-knowing deities who agreed on everything but instead were men with quarrels and grudges who disagreed on much.
Part of that was how to yoke together two pieces of a new country that was failing in light of the looser articles of confederation. These two parts were a mercantile north and an agrarian south, both of which were dependent on slave labor in the homes and in the fields. Small and rural states are over represented in both the prior mentioned bodies.
That said, Hillary didn't make the positive case for her or the negative case against Trump strong enough that enough people in the right places could look into their hearts and minds to make the choice for her. As much as I hate the electoral college, those are the rules of the game. I went to bed hoping that I would be disappointed by the status quo being carried forward when there was a more left opponent in the primaries who seemed to generate more enthusiasm.
But I'm still in shock. Donald Trump was elected president, and as much as I wish this was some clever fiction like Man in the High Castle, it seems to be our reality. Going forward there will be much complaining, since we as always are alienated from so much of what goes on at a federal level. Even with gross dissatisfaction of the congress, incumbency is a huge advantage so the same people get sent back.
The bright sport for me is that so many of the nations youth voted overwhelming lefter than the general populace both in the primary and in the general. We can be sad, but we have to learn from the reality. Knock on doors, run for office, write your representatives. Don't mourn too long, then organize.