A triangle has sides A, B, and C. The angle between sides A and B is π8. If side C has a length of 1 and the angle between sides B and C is π12, what is the length of side A?