Well, the SCOTUS just decided that same sex unions are, in fact, weddings and sex is an existing protected class based on actual legislation and precedent. That means the baker would be discriminating illegally as a public accommodation on a federal level if they refused their service based on the sex of that event's participants.