Make the cranberry filling. Combine the cranberries, granulated sugar, and water in a medium saucepan over medium-high heat. Bring to a boil, then cook for 5-10 minutes, stirring occasionally, until the cranberries have broken down and the mixture is thick and syrupy. Remove from the heat and let cool for at least 20 minutes while preparing the shortbread.
3 cups fresh or frozen cranberries, 2/3 cup granulated sugar, 3 tablespoons water
Preheat the oven to 375°F (190°C). Line an 8×8-inch baking pan with parchment paper, leaving an overhang on two sides for easy removal.
Make the shortbread. In a medium mixing bowl, stir together and flour, cornstarch and salt and set aside.
2 cups flour, 2 tablespoons cornstarch, 3/8 teaspoon salt
In a large mixing bowl, beat the softened butter and brown sugar until light and fluffy. Mix in the almond or vanilla extract.
1 cup unsalted butter, 1/3 cup packed light brown sugar, 1 teaspoon almond or vanilla extract
Press about two-thirds of the shortbread dough evenly into the bottom of the prepared pan.
Spread the cooled cranberry filling evenly over the shortbread crust. Crumble the remaining dough over the filling, distributing it as evenly as possible. Gently press down any especially tall pieces of dough so they don't brown too quickly.
Bake for about 30 minutes, or until the shortbread topping is golden brown and the cranberry filling is bubbling around the edges.
Let the bars cool completely in the pan. For especially neat slices, refrigerate until firm before cutting. Lift the bars out using the parchment overhang and cut into 16 squares.
Store the bars in an airtight container at room temperature for up to 2 days or in the refrigerator for up to 1 week.