Surrey recovered from a precarious 65-6 to reach 328 all out on day one of their County Championship match at Edgbaston. Ben Foakes and Tom Lawes led the fightback for the visitors.