Position a rack in the center of the oven and heat to 340°F. Line an 8-inch square pan with a parchment sling, leaving overhang on two sides.
In a large bowl, whisk together flour, sugar, salt, baking soda, and baking powder until evenly combined.
In a measuring jug, whisk cocoa powder and espresso powder with 1/2 cup of the very hot water until smooth and glossy. Stir in the remaining 1/2 cup hot water, oil, and vinegar.
Pour the cocoa mixture into the dry ingredients and whisk just until no dry spots remain. Scrape the bowl and tap it firmly on the counter a few times to release excess air.
Spread the batter into the prepared pan and rap the pan twice on the counter. Bake 24–29 minutes, or until the top springs back lightly and a toothpick comes out with a few moist crumbs.
Cool the cake in the pan for 15 minutes, then lift it out using the parchment and cool completely on a rack. For tidier frosting, chill the cooled cake for 10 minutes.
Make the frosting: Beat softened butter on medium speed for 1 minute until creamy. Sift powdered sugar and cocoa together, then add to the butter in two additions, mixing on low until incorporated. Beat in vanilla and salt, then add 1 tablespoon cooled coffee; beat until fluffy. Add more coffee 1 teaspoon at a time only if needed for a smooth, spreadable consistency.
Spread frosting generously over the cooled cake, swirl the top, slice into 9 squares, and serve.