Begin by preheating your oven to 350°F (175°C). Prepare two 8-inch (20 cm) round or three 6-inch (15cm)round cake pans by greasing & lining with baking paper.
In a medium bowl, mix milk and vinegar, then let it sit for 5 minutes. It’ll curdle slightly, creating a buttermilk substitute that adds tenderness and a slight tang to your cake.
Whisk cane sugar, brown sugar, oil, and vanilla into the curdled milk until smooth. In a separate bowl, sift flour, cocoa, baking soda, baking powder, and salt to combine evenly and avoid lumps.
Gradually whisk the dry ingredients into the wet mixture until smooth. Then add hot coffee or boiling water and mix well this enhances the chocolate flavor and makes the cake extra moist.
Divide the batter evenly into prepared pans, smooth the tops, and bake for 25–30 minutes. The cakes are done when a toothpick comes out clean and the tops spring back gently.
Let the cakes cool in the pans for 10 minutes, then transfer to a wire rack to cool completely. This ensures a smooth finish and prevents the frosting from melting.