The surprising resilience of American democracy