Preheat oven to 350°F. Line a standard muffin pan with cupcake liners.
In a medium bowl, whisk together the flour, cocoa powder, baking powder, baking soda, salt, and espresso powder.
In a large bowl, whisk together the granulated sugar, brown sugar, oil, eggs, and vanilla extract until smooth and glossy.
Whisk in the buttermilk.
Slowly whisk in the hot brewed espresso or strong coffee.
Fold the dry ingredients into the wet ingredients using a spatula. Mix only until combined. Do not overmix.
Fill cupcake liners about 2/3 full.
Bake for 17–19 minutes or until the tops spring back lightly and a toothpick inserted into the center comes out with a few moist crumbs.
Allow cupcakes to cool in the pan for 5 minutes before transferring to a cooling rack. Cool completely before frosting.