A classic French gâteau magique made from one simple batter that magically separates into three layers: a dense base, a creamy custard center, and a light sponge top.
Melt the butter over a low heat. Continue cooking for 5–10 minutes, until it foams and the milk solids at the bottom turn golden brown and smell nutty. Remove from the heat immediately, strain through a fine-mesh sieve, and leave to cool.
Mix the egg yolks with the sugar. They should triple in volume, at least. Add the flour and the melted butter and mix gently.
Gently warm the milk with the vanilla extract until just lukewarm (do not boil!) and gradually add it to the mixture, mixing continuously. The consistency will be fairly thin.
Whisk the egg whites with a pinch of salt until they become stiff. Add to the mixture with a spatula mixing gently. Do not overmix, even if the mixture is not fully smooth.
Preheat the oven to 160 °C (320 °F). Butter a 9½-inch (24 cm) square non-stick baking tray. Pour the mixture into the tray. Bake for 45-50 minutes, until a nice golden brown.
Leave the cake to cool in the tray for 1-2 hours and then slice it into delicious cubes. Dust with powdered sugar and serve with fresh blackberries, if desired.