In a bowl, mix flour, sugar, and salt until combined. Cut in cold butter using a pastry cutter or your fingers until the mixture resembles coarse crumbs. Add egg yolk and cold water gradually, stirring until a dough forms. Press this dough into a tart pan or square cake pan evenly and chill in the refrigerator for 20–30 minutes.
Preheat your oven to 350°F (175°C). Prick the base of your chilled crust with a fork to prevent bubbling during baking, then bake for 12–15 minutes until lightly golden brown on top. Allow it to cool slightly before adding your custard filling.
In a medium saucepan, whisk together granulated sugar, cornstarch, lemon zest, and egg yolks until smooth. Gradually add whole milk while continuously whisking to combine everything well. Cook over medium heat while stirring constantly until thickened; this will take about 5-7 minutes as it bubbles gently.
Once thickened, remove from heat and stir in fresh lemon juice, unsalted butter, and vanilla extract until fully incorporated and smooth in texture.
Pour your prepared lemon custard into the cooled pre-baked crust evenly across its surface. Bake in your preheated oven for approximately 25–30 minutes until just set but still slightly jiggly in center. Allow it to cool completely at room temperature before slicing into portions for serving.