Preheat oven to 350°F/175°C. Line 3 8-inch cake pans with parchment paper rounds and spray the sides of the pans with non-stick cooking spray or baking spray. If you don't have 3 cake pans, the batter can sit at room temperature while the first layer(s) bake. Bake as many layers at a time as you can. Sift or whisk together 2 cups flour, 2 cups granulated sugar, 3/4 cup cocoa powder, 2 tsp baking powder, 1 1/2 tsp baking soda, 1 tsp fine salt, and 1 tsp instant espresso or coffee (optional) in a large bowl. Set aside.
In a separate, large bowl, add 1 cup warm water, 1 cup buttermilk, 1/2 cup oil, 2 eggs, and 1 tsp vanilla and whisk together until fully incorporated.
Whisk the dry ingredients into the wet ingredients until they're just combined, and the batter is smooth.
Divide the batter evenly between the prepared cake pans (about 475g per pan if you're making 3 layers) and bake for 23-25 minutes or until a toothpick comes out with a few moist crumbs.
Let the pans cool for 10 minutes, then run a small offset spatula around the perimeter of the pan to separate the cake from the pan.
Place the cake pans into the freezer for 30 minutes to accelerate the cooling process. This helps lock in the steam and makes the layers extra moist. If you don't have room in the freezer, place the cake pans on a wire rack and let them cool fully before removing them.
Once the layers are fully cooled, carefully flip the pans and remove the layers. These cake layers bake up pretty flat, so leveling them is optional, but I like to level them with a serrated knife to make the cake easier to fill and frost.
If you make these cake layers in advance and freeze them, let them thaw for about 15 minutes before making the cake. The cake layers should still be slightly cold to the touch, which will make it easier to assemble the cake.