Ben Foakes and Tom Lawes orchestrated a dramatic Surrey recovery at Edgbaston, helping their team bounce back from a precarious 65-6 to post 328 all out on day one of their County Championship clash against Warwickshire.