head clearance.. minimum room size... just because there's a stairway going there doesn't mean it's a habitable space. If I drank wine, I could drink myself into a stupor, so a smoke detector and egress window could be required.. because now it's a sleeping room...