Preheat the oven to 350°F. Line two 8x8-inch cake pans with parchment paper, leaving an overhang for easy removal.
Mix wet ingredients (3 min): In a large bowl, use a spatula or wooden spoon to combine the soft butter and sugar until no butter clumps remain and the mixture is smooth. Add the almond extract and vanilla extract and mix to combine. Alternately, use an electric hand mixer or stand mixer with the paddle attachment and mix on low.
1 cup (2 sticks; 227g) unsalted butter, 2/3 cup (135g) granulated sugar, 1 teaspoon almond extract, 1 teaspoon vanilla extract
Stir in dry ingredients (5 min): Add the dry ingredients, including the flour, cornstarch, and salt to the butter mixture and stir until the dough starts to come together and pulls away from the sides of the bowl. You may need to mix with your hands to combine. The dough should hold together in a ball, but be slightly crumbly.
2 cups (240g) all-purpose flour, 1/4 cup (28g) cornstarch, 1/2 teaspoon salt
Bake (25 min): Divide the dough in half and press each half into the bottom of the prepared baking pans. Do your best to form the dough into an even flat layer. Bake in the preheated oven for 24-26 minutes, or until the edges are golden brown. If the cookies are browning too quickly, cover them with foil and continue baking until baked through.
Cool and slice (10 min): Remove the shortbread cookies and cool for 10 minutes. Carefully lift the cookies out of the pan with the parchment paper. The cookies are very delicate so if they look like they’re starting to bread while you take them out of the pan, stop and place a cooling rack on top and carefully flip them over onto the rack as a secondary option. Use a sharp knife to slice the shortbread cookies into 8 or 12 triangles.
Dip in chocolate (optional): Melt the chocolate in 30-second increments in the microwave until smooth. Dip the larger ends of the cookies into the chocolate and let them set on parchment paper. You can top the chocolate with chopped almonds or sea salt while it’s still wet.
8 ounces semi-sweet baking chocolate or dark chocolate, Chopped almonds and/or flaky sea salt for topping
Store in an airtight container for up to 3 days. Baked cookies (with or without chocolate) freeze well for up to 3 months. Thaw in the fridge and enjoy.