Preheat oven to 350°F. Prepare an 8-inch square pan by lightly greasing it and lining it with parchment paper. For a thinner cake, use a 9-inch square pan.
In a medium bowl, whisk the flour, cocoa powder, espresso powder, baking powder, and salt. Set aside.
2 cups flour, 2 1/4 tsp baking powder, 1/3 cup unsweetened cocoa powder, 1/4 tsp salt, 2 tsp espresso powder
In a large bowl, add eggs, brown sugar, white sugar, and vanilla. Whisk until thickened and pale. You may use an electric mixer or do it by hand.
4 eggs, 1/2 cup white sugar, 1/2 cup brown sugar, 1 tbsp vanilla
Add the oil to the egg/sugar mixture and continue whisking.
3/4 cups oil
Alternate and add in half of the dry ingredients to the wet and fold. Then add in all of the milk. Finish off by adding the rest of the dry ingredients and mix until there are no dry streaks. Do not overmix!
1/3 cup milk
Bake for 35-40 minutes, or until a toothpick inserted into the center comes out with just a couple of crumbs.
Slightly open your oven door and allow the hot air to escape. After 10 minutes remove from oven and cool the cake completely on your counter before frosting.
Chocolate frosting: To make the frosting begin by melting the dark chocolate over a double boiler or in the microwave. Allow to cool for 10 minutes. In the meantime, whisk the coffee and cocoa powder together and set aside. Then beat the butter and powdered sugar until light and fluffy. Add in the slightly cooled melted chocolate and continue beating. Add the cocoa powder/coffee mixture until smooth. Finally, add the cream. The frosting should be thick.
1 dark chocolate bar, 1/2 cup butter, 1 1/2 cups powdered sugar, 2/3 cups unsweetened cocoa powder, 1/2 cup strong brewed coffee, 1 1/2 tbsp heavy cream
Remove the cake from the pan and spread frosting generously on top. Top the cake with flakey sea salt or chocolate sprinkles and enjoy!