Hormone-dependent control of developmental timing through regulation of chromatin accessibility