Preheat the oven to 340°F (170°C). Lightly grease an 8-inch (20 cm) square baking pan and line it with parchment paper, leaving some overhang so you can lift the brownies out easily.
Melt the butter and dark or semi-sweet chocolate together in a heatproof bowl over a double boiler or in the microwave in short intervals, stirring between each interval. Once smooth, stir in the powdered sugar and light brown sugar, followed by the warm milk. Mix until well combined..
Add the all-purpose flour, cocoa powder, baking powder, and salt. Whisk gently until no dry streaks remain, taking care not to overmix.
Pour the batter into the prepared pan and spread it evenly into the corners. Bake for 25–30 minutes, checking toward the end of the baking time. The top should look set, and a skewer inserted into the center should come out with moist crumbs rather than wet batter.
Let the brownies cool completely in the pan before adding the pistachio layer.