It can be tricky b/c Sun's azimuth at sunrise varies by a hundredth of a degree on days directly before and after the solstice.
Also fun fact: date of latest sunrise is slightly out of phase with seasons https://xkcd.com/2792/