Preheat oven to 350°F and position the oven rack in the center.
Grease two 9-inch round cake pans thoroughly with nonstick spray.
Line the bottoms of the pans with parchment paper and spray lightly again.
Allow eggs and buttermilk to come to room temperature before mixing.
Whisk together flour, sugar, cocoa powder, baking soda, and salt in a large bowl.
Create a well in the center of the dry mixture.
Add oil, buttermilk, eggs, vinegar, vanilla extract, food coloring, and cooled coffee into the well.
Beat the wet ingredients together until the color is evenly distributed.
Gradually incorporate the dry ingredients while mixing on low speed.
Scrape the sides and bottom of the bowl to ensure no flour streaks remain.
Mix briefly until the batter is smooth and uniform in color.
Divide the batter evenly between the prepared cake pans.
Smooth the tops and tap the pans gently to release air bubbles.
Bake for 30–35 minutes until a toothpick inserted near the center shows one or two moist crumbs.
Allow cakes to cool in the pans for 15 minutes.
Run a knife around the edges and invert cakes onto wire racks.
Cool the cakes completely before frosting.
Allow cream cheese and butter to soften at room temperature.
Beat cream cheese and butter together until light and fluffy.
Sift powdered sugar and add it gradually to the frosting mixture.
Add vanilla extract and salt and beat until smooth and billowy.
Chill the frosting briefly until spreadable but firm.
Place a small amount of frosting on a serving plate to anchor the cake.
Place the first cake layer on the serving plate.
Spread an even layer of frosting over the first layer.
Top with the second cake layer and press gently into place.
Frost the top and sides of the cake with the remaining frosting.
Refrigerate the cake for at least 30 minutes before slicing and serving.