Combine the flour and salt in a large mixing bowl. Cut the cold butter into ½-inch cubes and toss in the flour. Flatten the butter pieces between your fingertips, leaving plenty of visible pieces to create flaky layers.
Gradually add the ice-cold water, mixing gently until a shaggy dough forms. Bring the dough together into a rough rectangle without kneading. Wrap and refrigerate for 30 minutes.
On a lightly floured surface, roll the dough into a rectangle approximately 8 × 16 inches (20 × 40 cm). Fold the bottom third toward the center, then fold the top third over it, like folding a letter. Rotate the dough 90 degrees, roll it out again and repeat the fold. Wrap and refrigerate for 30 minutes.
Repeat this process twice more, completing six letter folds in total, refrigerating for 30 minutes between each pair of folds. After the final folds, wrap and refrigerate for at least 1 hour before using.
Make the Custard
Prepare the custard during the final resting period of the pastry. Lightly grease a 9-inch square baking pan and line with two overlapping strips of parchment paper, leaving an overhang on all four sides.
Reserve approximately 100 ml of the milk and heat the remaining milk in a large saucepan over medium heat until steaming.
In a large heatproof bowl, whisk together the egg yolks, sugar, cornstarch, salt and reserved milk until smooth. Gradually pour the hot milk into the egg mixture, whisking continuously.
Return the mixture to the saucepan and cook over medium heat, whisking continuously, until very thick and gently bubbling. Continue cooking for approximately 2-3 minutes to ensure the cornstarch is thoroughly cooked. Remove from the heat and stir in the butter and vanilla bean paste until smooth.
Transfer the custard to the prepared pan and smooth the surface. Press plastic wrap directly against the custard to prevent a skin from forming. Allow to cool for 5–10 minutes, then refrigerate for 2–3 hours, or longer if necessary, until completely cold and firm enough to slice.
Bake the Pastry
Preheat the oven to 400°F. Line two baking sheets with parchment paper.
Divide the chilled pastry into two equal portions. Roll each portion into a square approximately 10 × 10 inches (25 × 25 cm) and ⅛ inch (3–4 mm) thick.
Transfer to the prepared baking sheets and prick all over with a fork. Cover each pastry sheet with another piece of parchment paper and a second baking sheet to restrict the rise. Refrigerate for 20–30 minutes.
Bake for 25 minutes, then remove the upper baking sheets and parchment. Bake for a further 5–10 minutes, until evenly golden brown and crisp on both sides. Transfer to a wire rack and allow to cool completely.
Assembly
Combine the sugar and water for the syrup in a small saucepan. Heat gently until the sugar dissolves, then set aside to cool.
Carefully lift the chilled custard out of the pan using the parchment overhang and transfer to a cutting board. Cut the custard into 10 equal rectangles using a slightly damp, sharp knife, wiping the blade clean between cuts.
Trim both pastry sheets to match the dimensions of the custard. Using a serrated knife, cut each sheet into 10 equal rectangles.
Lightly brush 10 pastry rectangles with sugar syrup and place a custard rectangle on each. Brush the underside of the remaining pastry rectangles with syrup and place on top, pressing gently to secure.
Combine the powdered sugar with 15 ml of water, gradually adding more water until a thick, smooth, spreadable icing forms. Spread a thin layer of icing over each custard slice and refrigerate until set.
Notes
Store-bought puff pastry: If preferred, use store-bought puff pastry instead of making your own. You'll need enough pastry for two 10-inch square sheets.Pastry hydration: The amount of water needed may vary depending on your flour and environment. Add the water gradually until the dough holds together without becoming sticky.Chilling the pastry: To speed up preparation, the pastry can be chilled in the freezer for 15–20 minutes between pairs of folds. Ensure the dough remains cold but pliable. If it resists rolling or springs back, allow additional resting time.Custard consistency: The custard is intentionally firm so it can be cut into individual portions. When cooked, it should be thick, smooth and glossy, holding visible ridges when stirred. It will firm up considerably as it chills.Make ahead: Both the rough puff pastry and vanilla custard can be prepared a day in advance and refrigerated until needed. For the crispest pastry, assemble the custard slices on the day of serving.Storage: Store in an airtight container in the refrigerator for up to 3 days. The pastry will gradually soften during storage. High-altitude baking: This recipe was developed and tested at approximately 8,600 feet in Woodland Park, Colorado. If baking at lower elevations, add the water to the pastry gradually until the dough just comes together, as you may need slightly less. Begin checking the pastry for doneness a few minutes earlier than the stated baking time.