In a large bowl, whisk together the flour, cocoa powder, baking powder, baking soda, and salt.
In a medium bowl, whisk together the egg, granulated sugar, brown sugar, oil, and vanilla.
Pour half of the wet ingredients into the dry ingredients, along with half the buttermilk. Whisk for a few seconds. Repeat with the remaining wet ingredients and buttermilk. Stir just until combined; avoid overmixing.
Spoon the batter into the cupcake liners to 1/2 full.
Bake for 18-20 minutes, or until a toothpick inserted in the center comes out clean.
Remove from oven and allow to cool completely in the pan.